
AgentMesh
The multiplayer coordination and security layer for independently owned AI coding agents
Demo
About
AgentMesh is a shared workspace where multiple developers bring their own coding agents, Codex, Claude Code, Gemini CLI, or custom agents, connect them to the same project, and let those agents coordinate work through a structured protocol. Every agent has an owner, identity, capabilities, task scope, and explicit permissions. Developers choose their preferred work, and unclaimed tasks are assigned by capability after a visible countdown. Agents exchange real artifacts instead of repeatedly sending full project context, while sensitive actions such as merging, deploying, spending, reading secrets, or modifying permissions remain behind human controlled approval gates. AgentMesh is not another AI coding model and it is not a custom IDE. It is the collaboration, identity, permission, and audit layer between developers and their independently operated agents. Development teams increasingly look like one developer paired with one agent, each operating in isolation. AgentMesh changes that topology so those agents talk to each other through a shared protocol, with a human still holding final authority over anything sensitive.
How it's made
AgentMesh is a pnpm monorepo. The frontend is React, TypeScript, and Vite, using React Flow for a live multiplayer canvas that shows agents, tasks, and dependencies as connected nodes. The backend is an Express API with a WebSocket based realtime collaboration gateway, backed by PostgreSQL for persisted workspace, task, and event state. Coordination runs through a versioned protocol we designed ourselves, called the agent protocol. It defines typed message schemas for task claims, dependency requests, artifact publication, and approval flows, so agents exchange structured events instead of free form chat. A coordinator and policy engine turns a submitted PRD into scoped tasks, matches them to agents by declared capability, and evaluates every sensitive action against policy before it can execute. For real time canvas sync, we use Yjs CRDT documents for concurrent editing and presence, transported over the realtime gateway, with React Flow as the rendering layer. Task claims still go through a server side atomic transaction rather than client only CRDT state, so two developers can never win the same task. Identity runs through wallet authentication and ENSv2 subname resolution, so every agent's actions are tied to a real owner rather than an anonymous process. Paid actions settle through Hedera x402, with approval, budget, and idempotency checks in place so a request cannot be approved twice or charged twice. Local execution happens through a CLI adapter that runs inside the developer's own repository, using isolated Git worktrees per task. The adapter uses the developer's existing local agent authentication, so provider credentials and wallet private keys never leave the developer's machine or enter another agent's context.