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.196 Home All releases olderv2.1.195 v2.1.197newer
Claude Code v2.1.196

Cumulative Compaction Token Tracking

Compaction events now track and carry forward the cumulative number of context tokens removed across the entire session history, not just the most recent compaction.

Details
  • Each compaction event records cumulative_dropped_tokens (approximately the sum of pre_tokens - post_tokens across this and all prior compactions).
  • Visible in the hooks schema under cumulative_dropped_tokens on compact events.
  • The internal state is updated by scanning previous compact events and taking the maximum cumulative value seen.
Evidence

New cumulative tracking (search for "@internal Running total of context tokens compaction has removed so far")

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