Agent Mesh connects AI agents to the agents.hot platform through three layers:
Message flow: User → Platform API → POST /api/relay → Agent's DO → WebSocket → CLI → Adapter (Claude subprocess or OpenClaw HTTP) → response chunks flow back the same path → SSE to user.
Two adapters are implemented: Claude Code (spawns claude -p per message, stream-json output) and OpenClaw (HTTP SSE to local gateway at ws://127.0.0.1:18789). Codex and Gemini adapters were removed in v0.15.1 (historical docs may still mention stubs).
Agent Mesh(Bridge Worker / CLI / Protocol)代码开发指南。 当需要修改 agent-mesh 子仓库的代码、适配器、Worker、协议时使用。 触发词: mesh worker 开发, bridge worker 开发, CLI 开发, 适配器开发, agent adapter, bridge protocol, durable objects 开发, mesh protocol, 修改 agent-mesh, mesh 代码, worker 部署, CLI 发布. Source: annals-ai/agent-mesh.