You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
AgentsArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release
Unclear It is not clear whether the way spending is counted changed or only its description.
What
The Agent SDK lets programs run Claude Code and read a result at the end, including how much was spent. The descriptions of the modelUsage and total_cost_usd fields now say:
Calls made by the auto mode classifier, the model that checks whether an action is safe to run, are counted where they are billed.
--max-budget-usd therefore counts that spending against its cap.
If you set a spending cap, the safety checks made in auto mode count toward it, so a cap can be reached sooner than the main conversation alone would suggest.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up modelUsage, on reference.| `span.model_request_end` | A model inference call has completed. Includes `model_usage` (java, php: `modelUsage`; csharp, go: `ModelUsage`) with token counts. |managed-agents/referencesee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether the way spending is counted changed or only its description.
Anthropic's documentation agreesAnthropic's documentation has since written up modelUsage, on reference.
Anthropic's release notes agreeFixed /clear --help and other built-in commands running at an idle prompt instead of showing usage; added /help <command>