Task budgets launch in beta on Claude Opus 4.7
You can give Claude an advisory token budget covering a whole agentic loop — thinking, tool calls, tool results and output — and the model sees a countdown and prioritises accordingly. Requires the task-budgets-2026-03-13 beta header.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingTask budgets give you a way to cap spend across a whole agentic run rather than per response, which is the main lever for controlling runaway tool loops. It is beta and advisory, so treat it as a cost-predictability experiment on Opus 4.7 and 4.8 rather than a hard spend control.
Engineer
What to change, what breaks, what to test Worth knowingAdd the `task-budgets-2026-03-13` beta header and set a task budget to have the model see a countdown across thinking, tool calls, tool results and output on claude-opus-4-7 or claude-opus-4-8. It does not replace `max_tokens` and is advisory, so keep your own hard stops and test that long tool loops actually wrap up before the budget runs out.
General consumer
Using the Claude apps, not the API No impactNothing to do — this is an API-only beta and does not change the Claude apps.
Task budgets differ from max_tokens: the budget spans the entire loop rather than one response, and it is advisory. The model is shown a running countdown and uses it to sequence work and wrap up gracefully as the budget is consumed.
Requests must include the task-budgets-2026-03-13 beta header. Support was extended to Claude Opus 4.8 on 2026-05-28.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
anthropic-beta: task-budgets-2026-03-13 | added | no | claude-opus-4-7 |
Topics: Agents and tool use