Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.224 Home All releases olderv2.1.223 v2.1.225newer

New environment variable CLAUDE_CODE_MESSAGING_SOCKET

Use it now
Useful4 Signal4
Cross-Session Messaging Notable

Point CLAUDE_CODE_MESSAGING_SOCKET at a socket path to enable session-to-session messaging and stream-json message replay.

CLAUDE_CODE_MESSAGING_SOCKETstream-json
What

Set CLAUDE_CODE_MESSAGING_SOCKET to a socket path and Claude Code records it with the session and, when the output format is stream-json, turns on replay of user messages without you asking for it. The variable is also carried through the set of CLAUDE_CODE_* variables Claude Code forwards to what it launches.

Details
  • The path is stored on the session registration record as messaging_socket_path.
  • Replay is only auto-enabled when it was not already on and the output format is stream-json; other output formats ignore the socket path for this purpose.
  • Neither the variable nor the session field existed in the previous build.
Evidence

CLAUDE_CODE_MESSAGING_SOCKET

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.224 →