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.97 Home All releases olderv2.1.96 v2.1.98newer
Claude Code v2.1.97

excludeDynamicSections SDK Option

What

A new SDK configuration option that omits per-user dynamic sections from the cached system prompt.

Details
  • When true, working directory, auto-memory path, and other user-specific content are excluded from the system prompt and re-injected as the first user message instead
  • Lets cross-user prompt caching hit on a shared static prefix, significantly improving cache efficiency in multi-tenant deployments
  • New redirectedContextTokens field in the token usage response tracks how many tokens were redirected
Evidence

Schema property with full description (search for "omit per-user dynamic sections")

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