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.223 Home All releases olderv2.1.222 v2.1.224newer

Usage-stats cache is sanitised on load

You'll notice
Useful3 Signal0
Usage & Limits

A corrupted stats file no longer shows NaN in your usage and cost display.

What

A corrupt or partially written stats cache no longer produces NaN in the usage display.

Details
  • After structural validation, the cache passes through a normaliser.
  • Every per-model counter is coerced to a number defaulting to 0: input and output tokens, cache reads, cache creation, web search requests, cost, context window and max output tokens.
  • Unrecognised model keys are dropped, as are hour buckets whose value is not numeric.
  • A cache that fails structural validation still returns empty.
Evidence

Stats cache has invalid structure, returning empty cache

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.223 →