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

Claude Code v2.1.223 ·

SDK result docs for modelUsage and totalCostUsd

SDK results now document exactly what token usage and dollar cost figures include, and that /clear resets them.

Under the hood Improvements
JSON All of v2.1.223
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
SDKArea: what it touches
ImprovementsKind: in v2.1.223,
ImprovementsSection of the release
What

Two long documentation strings now describe per-model usage and cumulative USD cost for a query() call.

Details
  • counted: the main loop, Task subagents, sidechains, compaction and Workflow agents
  • excluded: the permission classifier and token-count probes
  • values are cumulative per streaming turn and are reset by a mid-session /clear
  • documented as the correct field for token and cost accounting, but an estimate rather than a billing statement
Evidence

The correct field for token/cost accounting; treat it as an estimate, not a billing statement.

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

Read from
Names in the bundletotalCostUsdmodelUsage/clear

See this entry in the whole of v2.1.223 →

Feedback