Can Claude Code sessions talk to each other? Yes. Cross-session messaging is on by default from v2.1.224 on macOS, Linux and WSL 2, and v2.1.234 on native Windows. On Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform or Microsoft Foundry, or with feature-flag fetching disabled, same-machine messaging requires v2.1.248 or later. Claude's SendMessage tool sends plain-text messages between sessions; /list-agents shows which it can reach. Within a task, agent teams and named subagents can also message each other.
How can Claude Code sessions talk to each other?
Claude uses ListAgents to find sessions and SendMessage to send a message.
- Update Claude Code to v2.1.224 or later on macOS, Linux or WSL 2, or v2.1.234 or later on native Windows. On Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform or Microsoft Foundry, or with feature-flag fetching disabled, same-machine messaging requires v2.1.248 or later.
- Open two sessions. Give each a name with
/renameso you can address it easily. - Run
/list-agentsin one session to check that the other is reachable./peersis an alias for the same command. - Ask Claude to send a message: "Tell the api-worker session the schema change is merged."
The receiving session shows a dim preview like > Message from @api-worker: .... Press Ctrl+O to read the full text.
Messages to another machine or a cloud session go through Anthropic's servers and require Remote Control and a claude.ai sign-in. Those remote sessions aren't reachable with an API key or through Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform or Microsoft Foundry. For Remote Control setup, see how to talk to Claude Code from your phone.
The cross-session messaging documentation covers the connection requirements and settings.
Can a message from another session approve anything?
No. A message from another session never counts as your consent.
The crossSessionInbound setting accepts three values: accept, hold or refuse. If you leave it unset, the default depends on both sessions' permission modes. When the default permission-mode rules hold a message in an interactive terminal, an approval dialog normally expires after five minutes. Explicit hold keeps messages undelivered without expiry until an accept setting applies.
To refuse incoming messages, set "crossSessionInbound": "refuse". To disable both directions, combine crossSessionInbound: refuse with deny rules for SendMessage and ListAgents. The deny rules alone stop sending and listing. The isolatePeerMachines setting requires approval before messages leave your computer.
Messages contain plain text only. On one machine, each can hold about a million characters. Rapid bursts to one session are refused at the sender, and repeated messages are throttled. A long exchange can pause until you type another prompt.
Can Claude Code agents talk to each other in an agent team?
Yes. Teammates can message any teammate directly by name, with one message per recipient. A shared task list tracks who takes each task.
Agent teams are experimental and off by default. To enable them, set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your shell, or add it under "env" in settings.json. They require an interactive session; they aren't spawned with -p or in Agent SDK sessions.
You can talk to a teammate yourself:
- In-process mode: use the arrow keys in the agent panel, press Enter to view the teammate's session, then type your message.
- Split panes: click into the teammate's pane. This needs tmux or iTerm2 with the
it2CLI.
Each session can have one team. Teammates can't spawn their own teammates, and the lead stays fixed. Neither /resume nor /rewind restores in-process teammates.
For choosing between a team lead and a main session with subagents, see how a Claude Code orchestrator works.
For worktrees and ways to start separate sessions, see how to run multiple Claude Code agents in parallel.
Can Claude Code subagents talk to each other?
By default, a subagent returns its result to the caller. Subagents Claude has named can also message each other. Claude can resume a named subagent with SendMessage, using its name or ID.
Subagents can spawn their own subagents up to three layers below the main conversation. Set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 to turn nesting off.
| Arrangement | Who can message whom? | How do I turn it on? | Best for |
|---|---|---|---|
| Separate sessions | Claude Code sessions message reachable sessions | On by default at the required versions | Passing updates between separate conversations |
| Agent team teammates | Any teammate messages another by name | Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 |
Work with a shared task list and direct teammate messages |
| Subagents | Return results to the caller; named subagents can message each other | Ask Claude to use subagents and name those that need to exchange messages | Tasks reporting back to a caller |
Can Claude Code and Codex talk to each other?
Cross-session messaging connects Claude Code sessions. It doesn't provide a connection to Codex.
There is a documented way to give Codex access to Claude Code's tools. The command claude mcp serve runs Claude Code as an MCP server over stdin/stdout. Add it to Codex with:
codex mcp add claude -- claude mcp serve
This exposes tools, not a Claude conversation. The MCP client is responsible for confirming individual tool calls. If claude isn't on PATH, replace it after -- with the full path returned by which claude; otherwise you can get spawn claude ENOENT.
See the Claude Code MCP documentation and Codex MCP documentation. For a file-based handoff, ask each tool to write notes into a file in the repo that the other reads.
How can Readwalk help me keep up with my sessions?
With the free Readwalk for Mac 1.8 or later, you talk to one controller session. Readwalk sends what you say to the right session. Other switched-on sessions read a one-line headline aloud in their own voice, and the controller gets their full reports.
Say "read the rest" for more, "switch to" followed by a session's name to talk to it, or "what's going on" for a spoken roundup. This works with Apple's Terminal app on macOS 15 or later, on a Mac with Apple silicon.
See how to manage multiple Claude Code sessions by voice, or start with how to talk to Claude Code by voice.
Frequently asked questions
Can two Claude Code sessions talk to each other?
Yes, with cross-session messaging from v2.1.224 on macOS, Linux and WSL 2, or v2.1.234 on native Windows. On Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform or Microsoft Foundry, or with feature-flag fetching disabled, same-machine messaging requires v2.1.248 or later. Run /list-agents to check which sessions are reachable.
Can Claude Code subagents talk to each other?
Named subagents can message each other. By default, subagents return their results to the caller.
How do I make Claude Code agents talk to each other?
Ask Claude in one session to message another by name. For a lead and teammates sharing a task list, enable agent teams.
Can Claude Code and Codex talk to each other?
Not through cross-session messaging. Running claude mcp serve and adding it with codex mcp add gives Codex access to Claude Code's tools, not a Claude conversation.
Can another session approve a permission for me?
No. Messages from other sessions never count as your consent.