Every run needs a budget.
An agent with no spending limit turns a small mistake into an open-ended bill. We give every run an explicit budget for tokens, time, and tool calls, and treat running out as a governed stop.
A single model call is cheap and predictable. An agent run is neither. It plans, calls tools, reads what comes back, retries, and plans again. Each step is reasonable on its own, and the total is decided by a loop nobody sized in advance. When something goes wrong, such as a tool that keeps returning an error, a search that never finds what it wants, or a plan that keeps revising itself, the run does not fail. It keeps spending.
Most systems meter cost at the level of the call and review it at the level of the invoice. Neither is where the decision happens. We put the limit on the run itself, set it before the run starts, and make the run aware of how much it has left.
Cost belongs to the task, not the request
Per-call limits protect against one oversized request. They do nothing about a run that makes a reasonable request many more times than it should. The unit that matters is the task the human asked for: draft this reply, reconcile these records, review this change. That is the unit someone can judge as worth it or not.
So we attach the budget to the task. When an agent hands work to another agent, the sub-task draws from the parent's remaining budget rather than starting a fresh one. Delegation should never be a way to reset the meter.
A budget has more than one dimension
Money is the obvious limit, but it is rarely the first one a runaway run should hit. We budget along several axes at once:
- Tokens, because context grows with every step and cost grows with it.
- Wall-clock time, because a run that is still going long after it should have finished is usually stuck, not thorough.
- Tool calls, counted per tool, because repeated calls to the same tool with small variations are the clearest signature of a loop.
- Side effects, because the number of external actions a run may take is a governance limit, not a cost limit, and it should be small.
Whichever limit is hit first ends the run. The others exist so that a cheap model in a tight loop cannot hide behind a low price per token.
The agent should see its own meter
A limit enforced only from outside produces abrupt failures: the run is cut off mid-step and leaves half-finished work behind. We design the harness to expose the remaining budget to the agent as part of its context, in plain terms, at each step. A model that knows it is running low can do what a person would do. It can stop exploring, summarize what it has, and return a partial result with a clear account of what is missing.
This does not replace hard enforcement. The harness still kills the run at the limit, whatever the model decides. Visibility is what lets most runs finish gracefully before that happens.
Running out is a stop, not a crash
When a run exhausts its budget, the outcome should be a defined state, not an exception in a log. In our design it ends the same way as any other governed stop. The work done so far is checkpointed, the reason is recorded, and the result goes back to the person who asked, with the option to continue.
Continuing is an approval decision. A human who sees that the task is close and the remaining work is worth it can extend the budget for that run. That extension is scoped to the one task and logged like any other grant. It never raises the default for future runs, and the agent cannot request it on its own behalf in a way that bypasses the human.
Budgets make model routing honest
Because models are interchangeable in our design, the same task can run on a larger model or a smaller one. A per-run budget gives that choice a fair basis for comparison. The question stops being which model is cheaper per token and becomes which model finishes this kind of task inside its budget most reliably. A cheaper model that needs more steps and more retries can cost more per completed task than a capable one that gets it right the first time.
We treat budget consumption per task type and per model as part of evaluation. A model swap that quietly doubles the steps a task takes is a regression even if every output still passes.
Defaults are set by task type
Asking people to size a budget for every request does not work. We set defaults per task type, based on what that kind of work has needed when it went well, and leave headroom above it. A short drafting task and a long research task get very different ceilings. Anything that needs more than its type allows goes back to a human rather than quietly continuing.
Spending is a permission too
We already treat the actions an agent can take as permissions that must be granted, scoped, and logged. The resources it can consume belong in the same model. A budget is a grant: this task may use this much, on these tools, for this long, and then it stops and reports. That keeps cost where the decision is made, keeps runaway loops from becoming surprises, and keeps the human in charge of what the operating layer is allowed to spend on their behalf.