HACK: two Claude Code sessions that read each other

Claude Code has learned to send messages between your sessions: the first one writes to the second on its own, “the column is now tenant_id, the rebase is safe”, and the second finishes the job the right way. Without you in the middle.

Works since version 2.1.224, nothing to enable, macOS and Linux.

Two not-so-obvious uses:

- ask from your own window without switching: “check with the neighboring session whether the migration went through” — it goes over and brings back the answer
- a pipeline: the first session compiled a list of broken URLs and handed it to the second as a task, instead of to you via the clipboard

Only text travels, no files, no history. You still grant command permissions yourself — a message from the neighbor doesn't approve anything on your behalf.

Source: code.claude.com/docs/en/cross-session-messaging