深度拆解 Claude 新功能:多个 Session 如何实现直接「对话」?
TL;DR - Anthropic’s experimental Claude Code cross-session messaging lets independent sessions exchange targeted text updates without sharing their full contexts. It adds a coordination layer for parallel coding agents while preserving session, filesystem, and permission boundaries.
- Sessions discover peers through registered metadata and
ListAgents, then communicate viaSendMessage; local delivery uses inbox sockets, while remote sessions rely on Anthropic infrastructure. - Messages enter idle sessions as new turns or are read between tool calls during active turns, avoiding interruption of in-progress tool execution.
- The channel is intended for transient results, dependency updates, and status changes—not durable storage—with rate limits and bounded message buffers.
- Peer messages cannot grant user authorization, approve permission prompts, alter protected configuration, or bypass operations previously denied by the permission system.