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.219 Home All releases olderv2.1.218 v2.1.220newer
Claude Code v2.1.219

Turn state extracted into a reusable factory

Under the hood
Useful1 Signal0
Elsewhere

The per-turn bookkeeping in the query loop was restructured with no change you can see.

What

The per-turn accumulator used by the query loop is now built by a factory rather than assembled inline. No user-visible behaviour changes.

Details
  • the accumulator holds assistant messages, tool results, tool_use blocks, and the follow-up, end-turn, prevent-continuation and deferred flags
  • reset can optionally keep assistant messages
  • rebuildStreamingToolExecutor re-creates the streaming tool executor from the injected constructor
Evidence

rebuildStreamingToolExecutor

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.219 →