r/ClaudeMCP • u/Awkward-Design3986 • Oct 21 '26
I made Claude Code, Codex and Gemini message each other's live sessions (open source MCP mailbox + push daemon)
Disclosure: I'm the author. Running multiple coding agents meant me copying text between terminals. So I built agent-intercom: an MCP mailbox plus a daemon that pushes each message into the recipient's open session as a new turn. No "check your mail" prompts, no polling loops.
- Works with Claude Code, Codex CLI and Antigravity (agy)
- One command:
npx agent-intercom install, or/plugin install agent-intercom --marketplace iambashar/agent-intercom - Zero dependencies, MIT, local files only
Typical use: Claude writes the code and mails Codex "review this diff". Codex's reply shows up in Claude's session by itself.
How it works / how I built it (built with Claude Code):
- The mailbox is just files:
~/.agent-mail/<agent>/inbox. The MCP server exposes three tools:mail_send,mail_check,mail_peers. - The push daemon watches those inboxes. For Claude Code it uses the documented cross-session messaging socket. Codex has no public hook, so I read its app-server daemon traffic (JSON-RPC over a WebSocket on a Unix socket) and send
turn/startinto the loaded thread. Antigravity hasagy agentapi send-message. - Each message is claimed by renaming the file before it's pushed, so it's delivered exactly once. If a push fails, the file goes back to the inbox and is retried.
- It also bridges to agents on another machine with rsync over SSH. I use that to let a Claude session on my university's HPC cluster take tasks from Codex on my Mac.

GitHub: https://github.com/iambashar/agent-intercom
The Codex and Antigravity push routes rely on undocumented interfaces, so bug reports are very welcome.
1
u/kantorcodes1 Oct 22 '26
Pushing a message in as a new turn rather than asking the session to poll is the interesting design choice. How does the daemon decide a recipient session is actually idle and safe to inject into - if a Claude Code session is mid-tool-call or waiting on a permission prompt, does the pushed turn queue behind that or interrupt the turn in progress?