
agentsocks
io.github.Aelethion由 GitHub 帳號 Aelethion 發布v0.4.0更新於 Oct 26, 2026
Claude Code and Codex sessions message each other and share tracked tasks, one machine by default.
概覽
讓同一台機器上的 Claude Code 與 Codex 工作階段互相傳訊息、提問並交接可追蹤的任務。
- 可以做什麼
- 在工作階段之間傳送訊息並讀取收件匣
- 向多個工作階段提出同一個問題並彙整回答(實驗性)
- 交接帶有負責人、狀態與結果的可追蹤任務
- 張貼到主題頻道,並在即時檢視中查看工作階段與訊息路由(實驗性)
- 列出正在執行的同儕,並可從命令列傳送訊息
- 適用情境
- 適合在同一台機器上同時執行多個程式開發代理、希望它們自行協調的情況:傳遞發現、互相提問或在終端機之間交接工作,而不必手動複製文字。
- 執行需求
- 本機 npm 套件,可用 npx 執行或全域安裝;需要 Node.js 22.13 以上、Claude Code 2.1.224 以上與 Codex CLI 0.162 以上。安裝指令會串接各代理並修改其設定檔,支援先預覽。主要在 Linux 測試,macOS 部分測試,尚不支援 Windows 具名管道。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 agentsocks,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Your coding agents, talking to each other.
[npm version] [CI] [MIT licence] [Node 22.13 or later]
agentsocks lets the Claude Code and Codex sessions on your machine message each other, ask each other questions and hand over tasks. Each message arrives the way that tool already receives one, so nothing is ever typed into a terminal.
Install · See it work · Works with · Limits · Guide
Install
Needs Node.js 22.13 or later, Claude Code 2.1.224 or later and Codex CLI 0.162 or later. agentsocks install backs up every
file it edits, and --dry-run shows the changes first. New sessions pick it up; sessions already running are not touched.
See it work
Open a Claude Code session and a Codex session. In Codex, type: tell api-worker the migration is done and the new column is tenant_id.
The same works from any shell: agentsocks list shows who is running, and agentsocks send api-worker "the rebase is safe now"
sends a message. The guide has every tool and command.
Works with
Tested with Claude Code 2.1.294 to 2.1.302 and Codex CLI 0.162 to 0.163. Two Claude Code sessions keep using Claude's own
SendMessage. How each agent is wired is in the guide.
What you get
- Messages, questions and tasks. Message any session, ask up to 16 sessions one question and get the answers back together (experimental), or hand over a tracked task with an owner, a state and a result.
- Nothing typed into a terminal. No tmux
send-keys, no pane pastes, no fake user input. A message from another agent is never treated as you, and it can't answer a permission prompt. - Attention routing. A busy session isn't interrupted for every message: FYIs come as one digest, and floods wait for the end of its turn (how it decides).
- Channels and a live view (experimental). Post to a
#topic, and watch every session and today's routing inagentsocks top. - Beyond this machine (experimental, off by default). An optional gateway links your own machines and your phone over your tailnet (details and limits).
Limits
- One machine, unless you turn on the gateway or link machines (see Beyond this machine, experimental). Remote Control and cloud sessions are not reached.
- Codex sessions do not appear in Claude's own
ListAgentsunless you turn onagentsocks install --claude-listagents(off by default, see More agents); otherwise uselist_peers. - Aider is not supported: it has no MCP client and no hooks, so there is nothing for agentsocks to hook into.
- Plain text only.
- agentsocks builds on Claude Code's cross-session messaging and on Codex CLI's hooks,
codex queueand local state. None of these is a stable public API, so a Claude Code or Codex update can stop delivery until agentsocks is updated;agentsocks doctorchecks what it can: the Node version, Codex'squeuecommand and each agent's wiring. Tested with Claude Code 2.1.294 to 2.1.302 and Codex CLI 0.162 to 0.163. - Not affiliated with or endorsed by Anthropic or OpenAI.
- Built and tested on Linux. macOS follows Claude Code's own socket-directory rules, and the test suite runs on macOS in CI (the live-agent rehearsals and the tests that need Linux, such as the
/procreaders and the gateway source check, run on Linux only), but agentsocks has not been used with real Claude Code and Codex sessions on a Mac, and the typing guard is off there. Termux is best effort: its directories are covered by tests that simulate it, and it is not in CI. Windows named pipes are not supported yet.
The full design, including what was rejected and why, is in docs/SPEC.md.
Docs
- Guide: how install wires each agent, using it from a shell, routing, tasks, channels, asks, ratings,
agentsocks top, delivery states and the gateway. - SECURITY.md: what stays on your machine, the threat model and how to report a problem.
- docs/SPEC.md: the full design, including what was rejected and why.
- CHANGELOG.md and CONTRIBUTING.md.
Security
Security. Every release, 0.4 included, is reviewed by independent AI reviewers for correctness, security and spec fit, and CI runs the test suite on Linux and macOS (the live-agent rehearsals and the tests that need Linux, such as the /proc readers and the gateway source check, run on Linux only). CI scans the full git history for secrets on every push. See SECURITY.md for what stays on your machine and what does not. Argo, Aelethion's code security scanner, is coming soon.
Roadmap
Coming soon:
- A Grok bot. Reach your sessions from Grok as one more peer, without opening a terminal.
- MCP outside the terminal. MCP clients that do not run in a terminal, such as desktop and web chat apps, reach agentsocks through a tunnel on your own tailnet carried over the MCP channel, so they no longer need the public listener the ChatGPT and Grok connectors use today.
Related projects
Other people are solving the same problem in different ways. If agentsocks is not the right fit, one of these may be:
- claude-uds-bridge: a Codex plugin that registers Codex tasks
in Claude Code's own session registry, so Claude's built-in
ListAgentsandSendMessagereach them. Closest to agentsocks in approach. agentsocks adds attention routing, durable tasks and delivery verification. - hcom: messaging, watching and spawning across many agent CLIs. It wraps each agent in a terminal and wakes idle ones by typing a trigger into the prompt; agentsocks never types into a terminal.
- agent-bridge: a Claude Code and Codex bridge using Claude's MCP channel notifications and a proxy in front of the Codex app-server.
- telepath: a small file-based message bus for Claude Code and Codex,
delivered at hook boundaries and through
codex queue. - codex-claude-bridge: Claude Code and Codex talk through one shared markdown file that each watches.
- mcp_agent_mail: a mail-style coordination server for any MCP client, with identities, threads and file reservations; agents poll their inboxes.
- Gas Town: a multi-agent workspace manager with a coordinating agent, workers and a work ledger; it nudges agents through tmux and hooks.
License
MIT
來源:README.md,提交 72d6aec
工具
0版本歷史
1- v0.4.0最新Oct 19, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
