Claude Code v2.1.223 ·
SDK results now document exactly what token usage and dollar cost figures include, and that /clear resets them.
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.
See this entry in the whole of v2.1.223 →