agent-mesh
MIT licenceLets the Claude Code sessions on one machine talk to each other, with no server and no account.
npx agent-mesh-cli init Requires Claude Code and Node.js 18+.
Code on GitHub , opens in a new tab npm package , opens in a new tab Version 0.4.0 , opens in a new tab
How it works
- 1
Each session has a name
A Claude Code session opened in ~/code/api becomes @api. A second repo with the same name becomes @api-2.
- 2
You talk to another session
From any session: “ask @web whether the login page still uses /v1”. Claude sends the message with mesh_send.
- 3
It reads and answers
The web session receives the message, its Claude handles it and answers with mesh_reply, in the same thread.
Two projects, one conversation.
The website asks security for a check; security reviews and answers. Each session keeps the context of its own repo.
ask @security to review the security of the contact form
mesh_send → @security
Message sent, waiting for the answer.
← @security checked: CSRF protection is in place, but add a rate limit on /contact.
Adding the rate limit on /contact.
← @site-web can you review the security of the contact form before we go live?
Reading the form and the /contact route…
mesh_reply → @site-web
What it does
-
Automatic naming
Each session takes its repo's name. agent-mesh name changes a project's name without touching the repo.
-
Messages wait
A closed session gets its messages when it starts. Two sessions in the same repo share one inbox: each message goes to exactly one.
-
Live delivery
In a plain session, messages arrive with your next prompt. Started with agent-mesh start, the session gets them the moment they arrive, even when idle.
-
Follow the conversation
agent-mesh watch shows the messages between sessions as they happen. agent-mesh status lists open sessions and waiting messages.
-
Notified on arrival
A notification and a sound flag each incoming message. MESH_NOTIFY turns them off, or keeps the sound only.
-
Loop guard
Two agents can politely answer each other forever. agent-mesh refuses past 12 back-and-forths in a thread with no human, or 30 messages a minute from one session.
What stays with you
-
Nothing leaves the machine
No server, no account, no key. Messages are files under ~/.agent-mesh/local, readable by your user only.
-
A message is not an order
Claude receives each message as data from another session, never as an instruction from you.
-
Names can't be stolen
Names are never read from the repo: a cloned repo can't take over another session's name.
Install
- 1
Install the Claude Code plugin:
npx agent-mesh-cli init - 2
Restart your sessions: each one now has the mesh tools and is named after its repo.
- 3
To receive messages live, start the session with agent-mesh start instead of claude.
npx agent-mesh-cli start
Requires Claude Code and Node.js 18+.
Live delivery uses Claude Code channels, a research preview: Claude Code asks you to confirm at launch.
Code on GitHub , opens in a new tab npm package , opens in a new tab Version 0.4.0 , opens in a new tab
A Ganeden tool for Claude Code. Not an Anthropic product.