Claude Code now lets sessions message each other to share context

Claude Code has just added cross-session messaging, letting one task ask another questions and send updates. Instead of syncing full chat logs or files, it hands off a generated summary to reduce repeated setup. The feature is available on macOS and Linux.

claude cover

TL;DR

  • Cross-session messaging: Claude Code sessions can exchange messages to reduce repeated instructions via task summaries
  • Summary-based handoff: Sends a generated task summary, not full chat history or files; recipient continues from summary
  • Two-way communication: Sessions can ask questions of other sessions and receive replies; Claude can notify on impactful changes
  • Demo shows “hello world” message transfer; receiving task labeled “Sent by ChatGPT from another task” and replies
  • Example includes repo status context (clean tree, origin/main at bedcf4892, fix already on remote main)
  • Availability: Requires updating Claude Code; currently available on macOS and Linux

Claude Code sessions can now exchange messages, according to a Claude Code update from ClaudeDevs. The feature is designed to avoid repeating instructions when work moves between sessions: Claude sends a summary of the task rather than the original conversation history or files, and the receiving session continues from that summary.

Sessions can exchange questions and updates

The communication works in both directions. An active session can ask another session a question and receive the response, while Claude can also contact another session when a change affects work underway there.

A demonstration shows one session instructing Claude to send “hello world” to a task named “Fix operational checks contract.” The interface reports that it is “Sending message to chat,” after which the receiving task gets a message labeled “Sent by ChatGPT from another task” and replies, “Hello world!”

The same task includes repository status details such as a clean working tree, a local branch matching origin/main at bedcf4892, and confirmation that a promotions contract fix is present. It also notes that no new commit or push was needed because the fix was already on remote main. That example suggests the feature can pass along task context and status between parallel coding sessions, although the quality of the handoff depends on the generated summary.

ClaudeDevs instructed users to update Claude Code to try the feature. It is currently available on macOS and Linux.

The feature also lands in Pi

Following the release, a similar pi package, pi-peer has been created, letting pi sessions find and message each other through two tools: list_peers and message_peer.

Anthropic's version uses a Unix socket per session. pi-peer uses a file on disk, which appears to simplify the design and also means it works "offline." A closed pi session will read its "mail" once resumed.

Source: ClaudeDevs on X

Continue the conversation on Slack

Did this article spark your interest? Join our community of experts and enthusiasts to dive deeper, ask questions, and share your ideas.

Join our community