SuperAPIAI Directory

agentsocks

github.com · AI agents

agentsocks is an open-source tool that lets coding agent sessions such as Claude Code and Codex on the local machine communicate with each other. It supports sending messages between sessions, asking up to 16 sessions at once and aggregating the answers, and handing off tasks with an owner, status, and result. Messages are delivered through the channels each tool originally uses to receive messages; it does not need to simulate input into the terminal, does not treat messages from other agents as your instructions, and cannot respond to permission confirmations on your behalf. It provides attention routing, merging ordinary notifications into summaries and holding large volumes of messages until after the session turn ends; it also provides channels and a live view. Installation requires Node.js 22.13 or later, Claude Code 2.1.224 or later, and Codex CLI 0.162 or later. During installation it backs up modified files and supports --dry-run preview. By default it works only on the local machine; the cross-machine gateway is experimental and disabled by default; Aider is not supported, only plain text is supported, and Windows named pipes are not yet supported.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

agentsocks is a local messaging tool for coding agents, with the goal of enabling Claude Code and Codex sessions on the same machine to contact each other, ask questions, and hand off tasks.

Purpose It addresses the lack of a native communication channel between multiple coding agent sessions. With agentsocks, one session can send a message to another session, ask a question, or hand a task to the other party and track its status and result.

Main capabilities

  • Messages, questions, and tasks: send messages to any session; ask the same question to up to 16 sessions and aggregate the answers (experimental); hand off trackable tasks with an owner, status, and result.
  • No input into the terminal: does not use tmux send-keys, does not paste into panes, and does not fake user input. Messages from other agents are not treated as you and cannot respond to permission prompts on your behalf.
  • Attention routing: busy sessions are not interrupted by every message; ordinary notifications are merged into one summary, and large volumes of messages are delivered only after the current turn ends.
  • Channels and live view (experimental): publish to #topic and use agentsocks top to view all sessions and the day's routing.
  • Cross-machine (experimental, disabled by default): an optional gateway connects your machines and phone through your own tailnet.

Usage Requires Node.js 22.13 or later, Claude Code 2.1.224 or later, and Codex CLI 0.162 or later. Run agentsocks install to install; it backs up every file it modifies; use --dry-run to see the changes that will be made first. New sessions adopt this configuration; sessions already running are unaffected. In a Codex session, enter an instruction such as “tell api-worker the migration is done and the new column is tenant_id” to send a message to another session. In any shell, agentsocks list shows running sessions, and agentsocks send api-worker "the rebase is safe now" sends a message.

Use cases Suitable for running multiple Claude Code or Codex sessions on the same machine at once and where they need to coFor developers completing coding tasks, such as letting one session notify another that a migration is complete, hand off tasks, or gather opinions from multiple sessions in bulk.

Limitations

  • Single-machine only by default, unless a gateway is enabled or multiple machines are connected (experimental); cannot reach Remote Control or cloud sessions.
  • Unless agentsocks install --claude-listagents is enabled (disabled by default), Codex sessions will not appear in Claude's own ListAgents; in that case, use list_peers.
  • Aider is not supported because it has no MCP client and hooks.
  • Plain text only.
  • Relies on Claude Code's cross-session messaging mechanism and Codex CLI's hooks, codex queue, and local state, none of which are stable public APIs; updates to Claude Code or Codex may interrupt message delivery until agentsocks catches up; agentsocks doctor can check the Node version, Codex queue commands, and each agent's wiring.
  • Built and tested on Linux; macOS follows Claude Code's own socket directory rules, CI runs the test suite on macOS, but it has not yet been used on a Mac with real Claude Code and Codex sessions, and input guard is disabled on that platform. Termux is best-effort. Windows named pipes are not yet supported.
  • Not affiliated with or endorsed by Anthropic or OpenAI.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools