Follow Discord
Sweep 01 Oct 2026 · 17:27Z Build v2.1.287 508 read Stable v2.1.285 Latest v2.1.287 Next v2.1.287 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.286 ·

More accurate token counting when usage data looks wrong

Claude Code now warns once when usage data from the API is malformed and counts cache and input tokens more fully

You'll notice Bug Fixes
JSON All of v2.1.286
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Bug FixesKind: in v2.1.286,
Bug FixesSection of the release
What

Claude Code tracks how many tokens (units of text) each request uses so it can work out cost. It gets these counts from the API as the response streams in.

  • If the usage data does not match the expected format, Claude Code no longer drops it silently. It logs a warning, once per process, saying spending may be under-counted.
  • Later updates in the stream now raise the input, cache read and cache creation counts to the highest value seen. Before, only output tokens and server tool use were copied from those updates.
  • If the total for cache creation is missing, Claude Code adds up the 5-minute and 1-hour cache counts instead.
Why

Cost figures are more accurate, especially when a proxy or gateway sits between Claude Code and the API. The warning tells you when the numbers may be too low.

See this entry in the whole of v2.1.286 →

Feedback