DEV Community

Cover image for Claude Code sessions message each other: how it works
System Design Simple
System Design Simple

Posted on Originally published at systemdesignsimple.com

Claude Code sessions message each other: how it works

Yes, two Claude Code sessions can talk to each other. One session lists the other sessions on the machine with ListAgents, then sends one a short text message with SendMessage. On the same machine the message never leaves your computer. It travels over a local socket that only your user can use, so no other account on the machine can read it.

We checked this on our own Mac on November 7, 2026. The session that runs our studio listed itself as studio-session-a, the name other sessions use to reach it, and two idle peers: studio-session-b and other-project, both interactive, both started 3 hours earlier. Each peer showed whether it is busy or idle, and how long it has been running.

How the hand-off works

You run two sessions side by side, one building a feature and one writing tests, for example. Until now the hand-off was manual: read one window, copy the important lines, paste them into the other window with your own summary. That copying step goes away. The receiving session reads the files you point it at, runs the checks you ask for, and answers in its own window.

Across machines, and the cloud limit

Sessions on different machines can message each other too, where Remote Control is available. The message travels through Anthropic's servers, and the session on the other machine can reply when the sending session is connected to Remote Control.

There is one exception to know about. A cloud session can receive a message, but it cannot send one back. You read its answer in its own transcript at claude.ai/code instead. So the hand-off works in both directions between two local sessions, and in one direction into a cloud session.

The limits that matter

First, messages are short text. This is a hand-off, not a shared memory: the receiving session does not see your conversation, your plan, or your files unless you point it at them. A vague message like "fix the tests" will not land. A precise one, naming the files and the failing check, will.

Second, the peer has to be running. ListAgents shows you the live sessions, so check there before you send anything. An idle peer is the best target: it has a clean context and nothing half finished.

Third, keep the local part local. Same-machine messages stay on the local socket, which is the privacy win here. Once a message goes through Remote Control to another machine, it travels through Anthropic's servers like any other remote session traffic.

Our take: a small feature with a real payoff for anyone who already runs two sessions. Setup cost is zero, the hand-off is one tool call, and the failure mode is obvious, a message too vague to act on. Name the files, name the check, and let the other session do the work.

Read the full article, with the exact tool output we saw and the FAQ, on System Design Simple: https://systemdesignsimple.com/claude-code-sessions-message-each-other/

Top comments (0)