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.238 Home All releases olderv2.1.237 v2.1.239newer
Claude Code v2.1.238

initialize now tells a connecting client what the session is doing

Use it now
Useful3 Signal3
SDK not in their notes

Programs connecting over stream-json now learn whether the session is idle, running or waiting on you.

session_statehooks_applied
What

When a program connects to Claude Code over the stream-json control protocol, the reply now includes session_state (idle, running or requires_action at the moment of connection) and hooks_applied. A client attaching to a CLI that is mid-turn can see that immediately instead of guessing.

Details
  • hooks_applied is false when a repeated initialize's hooks were ignored because another client owns the CLI's stdin.
  • Both fields are present on this build; if they are missing from a reply, the CLI on the other end is older.
Evidence

a client joining a remote session another client configured

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

See this entry in the whole of v2.1.238 →