Permite que o Claude Code, Codex CLI e Antigravity troquem mensagens e as entreguem diretamente em suas sessões abertas via live push.
Também conhecido como iambashar/agent-intercom
- Stars
- 1
- Ferramentas
- —
- Downloads, 30 dias
- —
- Versão mais recente
- 0.2.5
- Último commit
- 18 de out. de 2026
- Licença
- MIT
O que é o MCP agent-intercom?
agent-intercom é um MCP server. Permite que o Claude Code, Codex CLI e Antigravity troquem mensagens e as entreguem diretamente em suas sessões abertas via live push.
Resumo gerado a partir do README do projeto
Sobre o MCP server de agent-intercom
O agent-intercom atua como um hub central que permite que diferentes agentes de IA via linha de comando se comuniquem entre si. Ele permite especificamente que o Claude Code, Codex CLI e Antigravity troquem mensagens e as entreguem diretamente em sessões ativas por meio de um mecanismo de live push. Essa configuração elimina a necessidade de consultas manuais (polling) ao usar um daemon para injetar mensagens como novos turnos em uma sessão aberta.
Desenvolvedores podem configurar isso localmente usando npx ou instalando globalmente para habilitar o daemon de push. O servidor fornece três ferramentas específicas: mail_send para enviar mensagens para uma caixa de entrada, mail_check para ler e consumir mensagens, e mail_peers para listar os agentes disponíveis. Ele foi projetado para rodar no Node 20+ sem dependências externas, utilizando uma pasta simples de arquivos JSON para seu sistema de caixa de correio. Para fluxos de trabalho que abrangem hardwares diferentes, um script de bridge pode mover mensagens via SSH para conectar agentes em máquinas remotas, como clusters de GPU.
O que você pode fazer com ele
- 1Code reviews entre agentesPeça para um agente revisar o diff de um arquivo específico e aguarde a resposta de outro agente.
- 2Colaboração automatizada de agentesEnvie uma mensagem para um agente específico para disparar uma tarefa em sua sessão atual.
- 3Conectividade de agentes remotosConecte agentes que estão em máquinas diferentes ou clusters de HPC usando SSH.
Escrito a partir do README do projeto. Cada caso de uso é verificado com uma citação dele.
Como instalar o MCP agent-intercom
Formatos verificados em 10 nov 2026Adicionar ao CursorAdicionar ao GooseInstalar o MCP agent-intercom no Claude Code
$ claude mcp add --env 'AGENT_NAME=<AGENT_NAME>' agent-intercom -- npx -y agent-intercomInstalar o MCP agent-intercom no Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"agent-intercom": {
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Instalar o MCP agent-intercom no VS Code
.vscode/mcp.json
{
"servers": {
"agent-intercom": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Instalar o MCP agent-intercom no VS Code CLI
$ code --add-mcp '{"name":"agent-intercom","type":"stdio","command":"npx","args":["-y","agent-intercom"],"env":{"AGENT_NAME":"<AGENT_NAME>"}}'Instalar o MCP agent-intercom no Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"agent-intercom": {
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Instalar o MCP agent-intercom no Codex
$ codex mcp add agent-intercom --env 'AGENT_NAME=<AGENT_NAME>' -- npx -y agent-intercomInstalar o MCP agent-intercom no Codex config.toml
~/.codex/config.toml
[mcp_servers.agent-intercom] command = "npx" args = ["-y", "agent-intercom"] [mcp_servers.agent-intercom.env] AGENT_NAME = "<AGENT_NAME>"
Instalar o MCP agent-intercom no Gemini CLI
$ gemini mcp add -s user -e 'AGENT_NAME=<AGENT_NAME>' agent-intercom npx -- -y agent-intercomInstalar o MCP agent-intercom no Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"agent-intercom": {
"command": "npx",
"args": [
"-y",
"agent-intercom"
],
"env": {
"AGENT_NAME": "<AGENT_NAME>"
}
}
}
}Configuração
AGENT_NAMEObrigatórioThis agent's mailbox name, e.g. claude, codex or gemini
AGENT_MAIL_DIRMailbox folder shared by all agents (default ~/.agent-mail)
BRIDGE_HOST
| Nome | Descrição | Tipo |
|---|---|---|
| AGENT_NAME | This agent's mailbox name, e.g. claude, codex or gemini | Obrigatório |
| AGENT_MAIL_DIR | Mailbox folder shared by all agents (default ~/.agent-mail) | |
| BRIDGE_HOST | — |
Verificações automatizadas
Executado em 13 de nov. de 2026Relatório completo →Passou em nossas verificações automatizadas. Isso não é uma auditoria de segurança: leia o código e dê ao servidor o acesso mais restrito de que ele precisa. Como as verificações funcionam
- Repositório de origem vinculado e acessíveliambashar/agent-intercom is public and reachablegithub.com/iambashar/agent-intercom ↗Passou
- O pacote indica este repositório como sua origemagent-intercom names iambashar/agent-intercom as sourcenpmjs.com/package/agent-intercom ↗Passou
- Proveniência da build (atestação Sigstore)Sigstore attestation for agent-intercomnpmjs.com/package/agent-intercom/v/0.2.5#provenance ↗Passou
- Licença de código aberto (OSI)MITspdx.org/licenses/MIT.html ↗Passou
- Commit ou release no último anoLast commit or release 2026-10-18github.com/iambashar/agent-intercom ↗Passou
- OpenSSF ScorecardNão verificado
- Nome do pacote não é próximo a um pacote popularNo popular package one edit away from agent-intercomPassou
- Nenhum aviso crítico no pacote ou em suas dependências1 resolved dependencies checked; no critical advisoryosv.dev ↗Passou
- Sem instruções ocultas para o modelo0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPassou
- Ferramentas destrutivas estão rotuladasNão verificado
- O endpoint remoto responde ao handshake do MCPNão verificado
README
Ver no 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
Perguntas sobre o MCP agent-intercom
Como adiciono o MCP agent-intercom ao Claude Code?
Execute claude mcp add --env 'AGENT_NAME=<AGENT_NAME>' agent-intercom -- npx -y agent-intercom no seu terminal. Adicione --scope user para torná-lo disponível em todos os projetos.
Como adiciono o MCP agent-intercom ao Cursor?
Abra ~/.cursor/mcp.json e adicione o servidor em mcpServers, usando a configuração do Cursor mostrada na seção de instalação acima.
Como eu começo a usar o agent-intercom?
Você pode instalá-lo executando npx agent-intercom install. Se estiver usando apenas o Claude Code, você pode instalá-lo como um plugin.
Ele suporta live push para que eu não precise ficar consultando novas mensagens?
Sim, você pode ativar o live push instalando-o globalmente e executando o comando de instalação com a flag de push.
Posso usar o agent-intercom em máquinas diferentes?
Sim, você pode usar o bridge.sh para mover mensagens via SSH entre máquinas que não compartilham o mesmo sistema de arquivos, como um laptop e um servidor de GPU.