Skip to content
•JOURNAL

Claude Code cross-session messaging: what it does, and what it doesn’t cover

Claude Code can message your other Claude Code sessions. That sentence is accurate and also narrower than it sounds: the feature is on by default, it works, and it stops at five boundaries that matter as soon as your setup is not a single harness on a single machine.

This is a map of what the built-in does, where each boundary sits, and which of them a layer outside the harness can move.

What it does

Cross-session messaging is on once your version supports it: 2.1.224 or later on macOS, Linux and WSL 2, 2.1.234 on native Windows, and 2.1.248 on Bedrock and the other cloud providers when feature-flag fetching is off. Nothing to enable, no server to run.

Claude discovers your sessions with ListAgents and sends with SendMessage. You do not call either tool. You ask in prose, or type @ and pick a session from the typeahead on 2.1.232 or later. /list-agents, also available as /peers, shows what a session can reach.

Each session binds a Unix domain socket on macOS and Linux, or a named pipe on native Windows, restricted to your operating system user. A message is read between tool calls during an active turn, or starts a new turn when the session is idle, so a busy session is not interrupted mid-tool.

The receiving side keeps its own controls. Its permission prompts still apply, and crossSessionInbound can accept, hold or refuse peer messages. When one agent messages another, Claude Code tells the receiver the message came from another session, not from you; the message cannot approve a permission prompt or change configuration.

The documented limits are worth knowing before you design around it: plain text only, about a million characters per message on the same machine, bursts refused at the sender, identical repeats dropped, at most 50 accepted messages queued, and message loops that throttle themselves.

Gap 1: it only speaks Claude Code

An OpenCode session and an omp session never appear in /list-agents. They are invisible to the feature, not because it is broken, but because it is built inside one harness. If your work spans Claude Code, OpenCode and omp, the built-in can cover the Claude-to-Claude edges of the graph and nothing else.

That is the gap asenq exists to fill: the same idea extended to three harnesses and to a human. More on what that adds below.

Gap 2: no channels, no broadcast

SendMessage takes one recipient. The docs describe no channel primitive, no roster, and no broadcast address, so reaching three sessions means three sends. That is fine for a handoff and painful for a status update that four sessions need.

Channels matter less for two sessions and more for a team: a named stream with a roster, posts read on demand, and mentions that turn a post into a delivery only for the people who need it. That is a different model from one message per recipient, and the built-in does not offer it.

Gap 3: no inbox for you

In the built-in feature, the human is not an address. To see what another session was told, you read that session’s pane or transcript. There is a hold control for inbound peer messages, which is useful, but it is not an inbox where you read, answer and hold a queue of messages as a participant.

If most of your messages are session-to-session and you are only watching, this costs you nothing. If you are the orchestrator in the loop, it means your reading position is a terminal tab.

Gap 4: no message contract

Cross-session messages are plain text. The docs’ own example reads as two lines, “Schema migration finished” and “The new column is tenant_id, and rebasing on main is safe now.” There is no documented kind field, no thread label, no reply-to field naming the message being answered, no done marker, and no file reference with a content hash. That is a deliberate simplicity, and for “the migration finished, rebase” it is enough.

The moment a message needs to say what it is, the harness stops helping. A task assignment, a result, a status update and a control request all arrive as the same shape of text, and each harness that adds messaging invents its own format. If you want one contract across harnesses, that has to live outside them.

Gap 5: cross-machine needs Remote Control

Same-machine messaging never touches Anthropic’s servers. Crossing machines is possible, but only through Remote Control, which needs a claude.ai subscription on Pro, Max, Ultra, Team or Enterprise plans; API keys are not supported, and it is unavailable on Bedrock, Google Cloud’s Agent Platform and Microsoft Foundry.

There are also local boundaries that look like network ones. A session inside a container and a session on the host cannot reach each other, and a WSL 2 session and a native Windows session on the same computer cannot either. Some one-way cross-machine messages arrive without a reply address, so the receiving side cannot answer.

One honest note before this becomes an argument for anything: asenq does not do cross-machine either. It is a per-user daemon on one machine, and the built-in same-machine path stays on the machine. If reaching a session on another host is the requirement, Remote Control is the documented route, not a workaround.

When the built-in is enough

If everything you run is Claude Code, on one machine, under one OS user, and you do not need channels or a human inbox, use it. It is already installed, it is maintained by the people who make the harness, and it needs no daemon. That is not a consolation prize; it is the right default for a large share of setups.

The gaps only start to cost you when one of these is true: a second harness is in the mix, several sessions need the same update, you want to answer messages from one place, or you need messages that carry structure.

What an outside layer adds

asenq is a local messenger that keeps the same idea and widens the scope. Names work across Claude Code, OpenCode and omp: claude --name orch, ASENQ_NAME=worker-oc opencode, ASENQ_NAME=worker-omp omp. Messages move through a per-user daemon on ~/.asenq/asenq.sock (mode 0600) and a SQLite store, with delivery through each harness’s own path.

What that buys you, concretely:

  • A human address, so you receive messages in asenq inbox, answer with asenq send, and watch the whole thing in asenq tui.
  • Channels with rosters, posts read on demand, and @name / @wrk / @all mentions that deliver only where needed.
  • Inbound policy per session: accept, hold or refuse, with asenq held, asenq release <id> and asenq drop <id> when you want to review agent traffic.
  • A message contract: kind (chat, task, result, status, control), thread, reply_to, done, and file references recorded by path, size and SHA-256.
  • Agent tools that go beyond send and list: asenq_thread_read for a full thread in both directions, and asenq_file_check to see whether a referenced file still matches by match, changed or missing.

It does not spawn sessions, track tasks, merge worktrees, relay through a cloud or run on Windows, and it is at v0.1.0 with one daemon to keep running. The honest trade is a wider message layer for one more process in your setup.

Related

  • Can Claude Code sessions talk to each other? Three routes: /blog/claude-code-sessions-talk-to-each-other/
  • Run multiple Claude Code agents in parallel: /blog/run-multiple-claude-code-agents-in-parallel/
  • Agent-to-agent communication in Claude Code: every option, honestly compared: /blog/claude-code-agent-to-agent-communication/
  • How asenq delivers messages: /blog/how-asenq-delivers-messages/
  • Subagents vs agent teams vs local messaging: /blog/claude-code-subagents-vs-agent-teams-vs-local-messaging/

Sources

  • Claude Code cross-session messaging (versions, delivery, inbound controls, limits): https://code.claude.com/docs/en/cross-session-messaging
  • Claude Code agent teams (agent-to-agent permission boundary): https://code.claude.com/docs/en/agent-teams
  • Claude Code Remote Control (plans, API-key exclusion, provider gaps): https://code.claude.com/docs/en/remote-control
  • asenq tool table, channels, inbound policy and scope: https://github.com/parciffal/asenq
  • asenq delivery and message semantics: https://github.com/parciffal/asenq/blob/main/docs/how-delivery-works.md
← Back to blog