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

SDK result docs for modelUsage and totalCostUsd

Under the hood
Useful2 Signal0
SDK

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

totalCostUsdmodelUsage/clear
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 →