Enables Claude Code, Codex CLI, and Antigravity to exchange messages and land them directly into each other's open sessions via live push.
Also known as iambashar/agent-intercom
- Stars
- 1
- Tools
- β
- Downloads, 30 days
- β
- Latest version
- 0.2.5
- Last commit
- Oct 18, 2026
- License
- MIT
What is agent-intercom MCP?
agent-intercom enables Claude Code, Codex CLI, and Antigravity to exchange messages and land them directly into each other's open sessions via live push.
Summary generated from the project's README
About agent-intercom MCP server
agent-intercom acts as a central hub that allows different AI command-line agents to communicate with one another. It specifically enables Claude Code, Codex CLI, and Antigravity to exchange messages and deliver them directly into active sessions through a live push mechanism. This setup eliminates the need for manual polling by using a daemon to inject messages as new turns in an open session.
Developers can set this up locally using npx or by installing it globally to enable the push daemon. The server provides three specific tools: mail_send for dropping messages into an inbox, mail_check for reading and consuming messages, and mail_peers for listing available agents. It is designed to run on Node 20+ with zero external dependencies, relying on a simple folder of JSON files for its mailbox system. For workflows spanning different hardware, a bridge script can move messages over SSH to connect agents on remote machines like GPU clusters.
What you can do with it
- 1Cross-agent code reviewsAsk one agent to review a specific file diff and wait for the response from another agent.
- 2Automated agent collaborationSend a message to a specific agent to trigger a task in its current session.
- 3Remote agent connectivityConnect agents living on different machines or HPC clusters using SSH.
Written from the project's README. Every use case is checked against a quote from it.
How to install agent-intercom MCP
Formats verified 10 Nov 2026Install agent-intercom MCP in Claude Code
$ claude mcp add --env AGENT_NAME=<AGENT_NAME> agent-intercom -- npx -y agent-intercomInstall agent-intercom MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"agent-intercom": {
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Install agent-intercom MCP in VS Code
.vscode/mcp.json
{
"servers": {
"agent-intercom": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Install agent-intercom MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"agent-intercom": {
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Install agent-intercom MCP in Codex
~/.codex/config.toml
[mcp_servers.agent-intercom] command = "npx" args = ["-y", "agent-intercom"] [mcp_servers.agent-intercom.env] AGENT_NAME = "<AGENT_NAME>"
Install agent-intercom MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"agent-intercom": {
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Configuration
AGENT_NAMERequiredThis agent's mailbox name, e.g. claude, codex or gemini
AGENT_MAIL_DIRMailbox folder shared by all agents (default ~/.agent-mail)
BRIDGE_HOST
| Name | Description | |
|---|---|---|
| AGENT_NAME | This agent's mailbox name, e.g. claude, codex or gemini | Required |
| AGENT_MAIL_DIR | Mailbox folder shared by all agents (default ~/.agent-mail) | |
| BRIDGE_HOST | β |
Automated checks
Ran Nov 13, 2026Full report βPassed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachableiambashar/agent-intercom is public and reachablegithub.com/iambashar/agent-intercom βPass
- Package names this repository as its sourceagent-intercom names iambashar/agent-intercom as sourcenpmjs.com/package/agent-intercom βPass
- Build provenance (Sigstore attestation)Sigstore attestation for agent-intercomnpmjs.com/package/agent-intercom/v/0.2.5#provenance βPass
- Open source license (OSI)MITspdx.org/licenses/MIT.html βPass
- Commit or release in the last yearLast commit or release 2026-10-18github.com/iambashar/agent-intercom βPass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from agent-intercomPass
- No critical advisory in the package or its dependencies1 resolved dependencies checked; no critical advisoryosv.dev βPass
- No hidden instructions to the model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNot checked
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubLet Claude Code, Codex CLI and Antigravity (Gemini) message each other, and land each message straight in the other agent's open session.
If it saves you time, a β helps other people find it.
Get started Β· See it work Β· How push works Β· Across machines Β· CLI Β· Security Β· Contributing
Get started
npx agent-intercom install
Using Claude Code only? Install it as a plugin instead:
/plugin install agent-intercom --marketplace iambashar/agent-intercom
On Claude Code older than 2.1.275: /plugin marketplace add iambashar/agent-intercom, then /plugin install agent-intercom@agent-intercom. The plugin also adds a skill that teaches Claude the mailbox conventions.
The npx command registers the MCP server with every CLI it finds. Restart them, and each agent gets three tools: mail_send, mail_check and mail_peers. Then ask in plain words:
You β Claude: Ask codex to review the diff in
src/parser.tsand wait for its answer.
Turn on live push so nobody has to poll. Install it globally, because the daemon needs a stable path:
npm i -g agent-intercom
agent-intercom install --push
| CLI | Registration | Extra for push |
|---|---|---|
| Claude Code | claude mcp add, user scope |
nothing; uses Claude Code's peer socket |
| Codex CLI | a managed block in ~/.codex/config.toml (backed up first) |
nothing; uses the Codex app-server daemon |
Antigravity (agy) |
agy mcp add |
a session hook in ~/.gemini/config/hooks.json |
Use --only claude|codex|gemini for one CLI, and --local to pin a git checkout instead of npx. agent-intercom uninstall removes all of it, including the push daemon.
[!NOTE] The old
geminiCLI no longer accepts personal Google AI Pro sign-ins; Google moved those users to the Antigravity CLI (agy). Its agent is namedgeminihere by default.
See it work
Neither agent polls. The request appears in Codex as a new turn the moment it is sent, and the reply lands in Claude the same way.
What you get
Supported agents
| Agent | Mailbox name | How a message reaches the open session |
|---|---|---|
claude |
Claude Code's local peer-messaging socket, the channel SendMessage uses between sessions. Arrives labelled as from another session. |
|
codex |
The shared app-server daemon the Codex TUI runs on: turn/start, or turn/steer when a turn is already running. |
|
gemini |
agy agentapi send-message into the conversation. Each session registers itself once through a hook. |
|
| Any other MCP client | anything | No push. It reads with mail_check, or blocks with mail_check(wait_seconds=300). |
| Tool | What it does |
|---|---|
mail_send(to, body, reply_to?) |
Drop a message in another agent's inbox |
mail_check(wait_seconds?) |
Read and consume your messages; with wait_seconds (max 300) it blocks until one arrives |
mail_peers() |
List known agents |
How push works
sequenceDiagram
autonumber
participant C as Claude Code
participant M as ~/.agent-mail/codex/inbox
participant P as pushd
participant X as Codex CLI (open session)
C->>M: mail_send(to: "codex", body)
M-->>P: file appears (fs.watch, no polling)
P->>M: claim: rename to <id>.json.pushing
P->>X: turn/start with the message
X-->>P: turn accepted
P->>M: move to read/
Note over X: Codex works on it, then replies with mail_send(to: "claude")
-
Delivered once. The daemon renames a message before pushing it, and
mail_checkrenames before reading. Whoever wins the rename delivers it. -
Fails safe. A failed push puts the file back in the inbox and retries after 30 s. If no session is open, the message waits for
mail_check. -
Addressing. Pick a session with
claude.<session-name>,codex.<thread-id-prefix>orgemini.<conversation-prefix>. Otherwise the most recently active session gets it, or the one named in~/.agent-mail/routes.json:{ "claude": "api-server", "codex": "019f018a" }
[!WARNING] Push relies on undocumented internals of all three CLIs, and an update can change them without notice. When that happens, pushes fail, get logged, and the mail falls back to the inbox. Protocol details: docs/live-push.md.
- Claude Code: docs/claude-monitor.md.
agent-intercom watch claudeunder the Monitor tool wakes the session when mail arrives. - Codex: docs/codex-listen.md. A listener prompt that loops on
mail_check(wait_seconds=300).
Across machines
Agents on a machine with no shared filesystem, such as a GPU server or an HPC cluster, join over SSH with bridge.sh. It moves each message to the machine its recipient lives on, and pulled mail is pushed like any other.
BRIDGE_HOST=gpu-box REMOTE_AGENTS="claude-gpu" ./bridge.sh
flowchart LR
subgraph laptop["π» Laptop"]
A[claude] & B[codex] & G[gemini]
end
subgraph gpu["π₯οΈ gpu-box"]
R[claude-gpu]
end
laptop <-- "bridge.sh Β· rsync over SSH" --> gpu
More: docs/remote-bridge.md.
More than one session per CLI
Names are just AGENT_NAME. Give each session its own, for example claude-api and claude-web:
npx agent-intercom install --only claude --claude-name claude-api
CLI
agent-intercom install [--only claude|codex|gemini] [--claude-name N] [--codex-name N] [--gemini-name N] [--local] [--push]
agent-intercom uninstall MCP entries, agy hook and push daemon
agent-intercom push install push daemon as a login service (launchd / systemd --user)
agent-intercom push uninstall
agent-intercom push run push daemon in the foreground
agent-intercom status unread/read counts per agent
agent-intercom watch <name> one line per new message, without consuming it
agent-intercom serve the MCP server on stdio
Security
This is a local mailbox with no authentication. Any process running as you can write to ~/.agent-mail/*/inbox, and an agent treats a message as input to act on. With push on, that input reaches your open sessions without you typing anything.
- Treat inbox contents as untrusted text. Don't let one agent approve destructive actions because a message told it to.
- Pushed messages are labelled
[agent-intercom] message <id> from <sender>. Claude Code also marks them as from another session, not from you. - Push reads tokens only your user can read (
~/.claude/sessions/*.key, the agy session token) and talks only to local sockets. Nothing leaves the machine.
See SECURITY.md to report a problem. Set AGENT_MAIL_DIR to move the mailbox, for example into a project folder.
π€ Contributing
Contributions are welcome, from a typo fix to support for a new agent.
| I want to⦠| Start here |
|---|---|
| Fix something small | Good first issues |
| Support another coding agent | docs/adding-an-agent.md |
| Report a push that broke after a CLI update | Bug report |
| Ask a question or pitch an idea | Discussions |
Read CONTRIBUTING.md before opening a pull request. Everyone here follows the code of conduct.
Develop
git clone https://github.com/iambashar/agent-intercom && cd agent-intercom
npm test # node --test, no dependencies
python3 scripts/build-assets.py # rebuild the README artwork
Zero runtime dependencies; Node 20+. See CONTRIBUTING.md and the changelog.
MIT licensed Β· made for people who run more than one coding agent
agent-intercom MCP questions
How do I add agent-intercom MCP to Claude Code?
Run claude mcp add --env AGENT_NAME=<AGENT_NAME> agent-intercom -- npx -y agent-intercom in your terminal. Add --scope user to make it available in every project.
How do I add agent-intercom MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
How do I get started with agent-intercom?
You can install it by running npx agent-intercom install. If you are using Claude Code only, you can install it as a plugin instead.
Does it support live push so I don't have to poll for messages?
Yes, you can turn on live push by installing it globally and running the install command with the push flag.
Can I use agent-intercom across different machines?
Yes, you can use bridge.sh to move messages over SSH between machines that do not share a filesystem, such as a laptop and a GPU server.