Claude Code cross-session messaging in parallel worktrees: two limits and a hardening config

Independent-Sir3234 · reddit · 2026-11-09

With Claude Code v2.1.224+, parallel sessions in git worktrees communicate via per-session Unix domain sockets under /tmp/cc-socks-<uid> (use @session-name or /list-agents). Two documented limits: messages are plain text only (@file mentions attach nothing), and container↔host or WSL2↔Windows sessions can't reach each other. Security-wise, without crossSessionInbound, inbound delivery depends on bypassPermissions mode, and remote sessions can message off-machine. The author's hardening config: isolatePeerMachines: true forces approval before any off-machine SendMessage (even in bypassPermissions), while crossSessionInbound: "hold" + dialogExpiry: "never" queues inbound peer messages for review instead of dropping them after the default 5 minutes.

Original post →

More from coding & agent

coding & agent channel →