
agent-intercom
io.github.iambashar由 GitHub 帳號 iambashar 發布v0.2.5更新於 Oct 26, 2026
Lets Claude Code, Codex CLI and Antigravity message each other, with live push into open sessions.
概覽
本機信箱,讓 Claude Code、Codex CLI、Antigravity 等編碼代理互相傳訊息,並可選擇把訊息即時推送到已開啟的工作階段。
- 可以做什麼
- 把訊息投遞到另一個代理的收件匣,可附上回覆參照
- 讀取並消耗自己的訊息,或最多阻塞 300 秒等待新訊息
- 列出已知代理及其信箱名稱
- 依工作階段名稱定向投遞,或路由到最近活躍的工作階段
- 在支援的 CLI 上安裝、解除安裝並檢視設定狀態,包含推送常駐程式與未讀統計
- 適用情境
- 適合在同一台機器上同時執行多個編碼代理、希望它們互相交接工作的情況,例如請某個代理審查 diff 並等待它的回覆,而不必在終端機之間複製貼上。
- 執行需求
- 以 stdio 方式作為本機程序執行,從 npm 套件 agent-intercom 安裝,需要 Node 20 以上版本。安裝指令會為偵測到的每個 CLI 註冊此伺服器;即時推送需要全域安裝並執行背景常駐程式。需設定 AGENT_NAME 作為此代理的信箱名稱,可選設定 AGENT_MAIL_DIR 將信箱從預設資料夾移往他處。未宣告任何身分驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 agent-intercom,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[npm] [CI] [License: MIT] [GitHub stars]
[Node 20+] [Zero dependencies] [MCP] [Claude Code] [Codex CLI] [Antigravity]
Let 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
Using Claude Code only? Install it as a plugin instead:
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:
What install changes, per CLI
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
[圖片] How push works
-
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:
[!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.
Without the push daemon
- 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.
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:
[圖片] CLI
[圖片] 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.
[Saved you a copy-paste between agents? Star agent-intercom on GitHub]
🤝 Contributing
Contributions are welcome, from a typo fix to support for a new agent.
[Good first issues] [Help wanted] [Discussions]
Read CONTRIBUTING.md before opening a pull request. Everyone here follows the code of conduct.
Develop
Zero runtime dependencies; Node 20+. See CONTRIBUTING.md and the changelog.
MIT licensed · made for people who run more than one coding agent
來源:README.md,提交 610cc64
工具
0版本歷史
1- v0.2.5最新Oct 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
