Claude Code: Cross-Session Messaging Between Independent Instances

ArticleAnthropicResource

Anthropic details cross-session messaging in Claude Code, enabling independent CLI sessions to share findings, coordinate parallel git worktrees, and request idle notifications across local and remote environments.

Key points

  1. Requires Claude Code v2.1.224 or later on macOS/Linux and v2.1.234 or later on Windows; enabled automatically without manual configuration.
  2. Claude relies on ListAgents to discover available sessions and SendMessage to route text messages between them.
  3. Messages transmit plain text only; permissions stay strictly isolated per session and cannot be bypassed by proxying requests.
  4. Users can target specific sessions using @-mentions in prompts, supported by typeahead completion for local instances.
  5. A notify_when_idle option lets one session subscribe to a one-time notification when another long-running session finishes or exits.
  6. Inbound controls allow sessions to set message policies to delivered, held, or refused.

Why it matters

Developers increasingly run multiple concurrent AI coding sessions across separate git worktrees or remote machines. Cross-session messaging removes the manual overhead of copy-pasting context and status updates between terminals.

Analysis

With cross-session messaging, Anthropic introduces a lightweight coordination mechanism for multi-session development without forcing heavy orchestration architectures. Crucially, the protocol enforces strict session boundaries: tools refuse messages aimed at escalating denied permissions, and safety checks on local inbox sockets protect against malicious processes and symlink attacks.

Found in

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Link:Anthropic

    Anthropic Claude Code: Agentic Coding in the Terminal and IDEs

    Anthropic introduces Claude Code, an AI coding agent designed for the terminal, IDEs, web, and Slack. The tool maps codebases using agentic search, applies multi-file edits, runs tests, and creates pull requests directly within the developer's environment.

    AI & LLMs· Tool

  • Repository:anthropics/claude-code

    Claude Code: Terminal-Based Agentic Coding Tool

    Claude Code by Anthropic is an agentic coding tool that operates in the terminal. It understands codebases, executes routine development tasks, explains complex code, and handles Git workflows using natural language commands.

    144.1kstarsPython

    AI & LLMs· Tool

  • Article:Anthropic

    Claude Code in the Browser: Anthropic Documents Chrome Integration

    Anthropic details how to connect Claude Code with Chromium-based browsers via the Claude in Chrome extension. Developers can execute browser automation tasks directly from the CLI or VS Code to test local web applications, debug console errors, and automate form submissions.

    AI & LLMs· Tool

  • Article:Anthropic

    Extending Claude Code with Skills: Architecture and Best Practices

    Anthropic details the skills system for Claude Code. Developers can encapsulate recurring procedures and workflows inside SKILL.md files built on the open Agent Skills standard, supporting dynamic context injection and subagent delegation.

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.