{"version":"2.1.326","anchor":"result-docs-modelusage-and-total-cost-usd-include-billed-cl","canonical_anchor":"result-docs-modelusage-and-total-cost-usd-include-billed-cl","heading":"Cost totals are described as including auto mode's safety-check calls","tier":"notice","area":"Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/result-docs-modelusage-and-total-cost-usd-include-billed-cl","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Cost totals are described as including auto mode's safety-check calls\n\nThe SDK's cost fields now say auto mode's checking calls are counted where billed, that `--max-budget-usd` counts them, and that `\/clear` resets the total\n\n**Unclear.** It is not clear whether the way spending is counted changed or only its description.\n\n**What**\n\nThe 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:\n\n- Calls made by the auto mode classifier, the model that checks whether an action is safe to run, are counted where they are billed.\n\n- `--max-budget-usd` therefore counts that spending against its cap.\n\n- `\/clear` resets the running total.\n\n**Why**\n\nIf 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.\n\n- Area: Agents\n- Names: `modelUsage`, `total_cost_usd`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}