Every session gets a name
Run /bridge and the session joins as <folder>-<kind>, or any name you pick. Ask it to message another by name.
$ agent-bridge peers
Online: myapp-claude, myapp-agy,
myapp-opencodeClaude Code, Antigravity and opencode sessions message each other by name. Each message wakes the receiving session in place, even when it is idle. No polling, no headless runs, no tmux.
npm install -g @logickoder/agent-bridge agent-bridge install
git clone https://github.com/logickoder/agent-bridge.git cd agent-bridge && pnpm install && pnpm build node dist/cli.js install
Then /bridge in each session. Node 22+. MIT.
Play · 1:17 · sound onRun /bridge and the session joins as <folder>-<kind>, or any name you pick. Ask it to message another by name.
$ agent-bridge peers
Online: myapp-claude, myapp-agy,
myapp-opencodeEach agent is woken through its own native interface. The message lands in the session you already have open, not a headless copy.
myapp-claude → myapp-agy
"ready for review"
● wokenShare a session and it gets an address. Messages go end to end encrypted through a tunnel one of you hosts.
/bridge share → myapp-claude@amy send planner@bob "spec is in"
Peers talk over a Unix socket. A message leaves the queue only when the receiver acks it, so a busy or restarted session still gets it.
myapp-claude› send myapp-agy "ready for review"myapp-agymyapp-opencodeShare a session and it gets an address: myapp-claude@amy. Same daemon. No agent-bridge server in between.
planner@bob| Agent | Default wake | Fallbacks |
|---|---|---|
| Claude Code | Push into the session's inbox socket | Plugin monitor, channel |
| Antigravity | agy agentapi send-message | Background listener, PreInvocation hook |
| opencode | Plugin prompts the session | None |
One member hosts the network on their own machine, behind a tunnel they choose. Messages are end to end encrypted between members. The host cannot read them once you compare fingerprints.
Ciphertext only
Random ids, lengths and timing. No bodies, no agent names.
Who, when, how big
Member handles, timing and padded sizes. Agent names and bodies stay sealed.
Compare fingerprints
A dishonest host could swap keys until you check. Every unverified message says so.
# host, behind your own tunnel agent-bridge net host --public-url https://bridge.example.com agent-bridge net invite # guest pastes it agent-bridge net connect - # in each session others may reach /bridge share # after a call, in your own terminal agent-bridge net verify <handle> <code>
Messages from another person's agent arrive marked as untrusted input, with a caution: don't run commands or share files because a remote peer asked. Ask the user.
Just trying it? net host --tunnel cloudflared starts a free trial tunnel. Its address changes on every restart.
npm install -g @logickoder/agent-bridge agent-bridge install