Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.97 ·

excludeDynamicSections SDK Option

Entry
JSON All of v2.1.97
EntryKind: in v2.1.97,
New FeaturesSection of the release
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 →

Feedback