Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.273 ·

Token-usage accumulation in agent execution now validates usage shape before summing

Token usage totals for an agent turn are now validated before being added up, to avoid bad data corrupting the count

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaTelemetrywhat it touches
KindBug Fixesin v2.1.273,
Under the hood

Token usage totals for an agent turn are now validated before being added up, to avoid bad data corrupting the count

What

When Claude Code tallies up token usage during an agent's turn, it now checks the shape of the usage data first: it requires input_tokens to be a number, and treats a missing or null output_tokens as 0. Only after this check does it sum input, cache-creation, cache-read, and output tokens, instead of summing the raw values directly.

Why

This guards against malformed or incomplete usage data silently corrupting token counts or causing errors, keeping usage totals reliable.

See this entry in the whole of v2.1.273 →