New here? Start this series at Day 37: Human review belongs where it has timing, authority and context
- Day 37: Human review belongs where it has timing, authority and context
- Day 38: Good guardrails make safe progress possible, not just block
- Day 39: Design recovery into an agent on day one
- Day 40: Every autonomous run needs a budget for cost, time, actions and risk
- Day 41: One giant agent is rarely the cleanest design
- Day 42: Supervisor agents help until they become the bottleneck
Every team running agents eventually has the invoice conversation. The only variable is whether it happens beforehand, calmly, as a design decision, or afterwards, on a Monday, following a weekend where one stuck agent discovered it had no reason to stop.
Without budgets, nothing limits what an autonomous run can consume.
| Budget | Example limit | What it prevents |
|---|---|---|
| Time | 90 seconds | Hidden latency users silently absorb |
| Tool calls | 8 per task | Operational blast radius |
| Cost | $0.25 per task | Unpredictable unit economics |
| Retries | 2 attempts | Loops that look like productive work |
| Risk | human review above threshold | Unaccountable high-impact actions |
Define the behaviour at the threshold
Setting a limit is the easy half. The half that gets skipped is what happens when the agent reaches it.
Hitting a budget should produce an outcome, not an exception. At 80% consumed, the agent should be wrapping up by summarising progress, returning partial results, or handing to a human with state attached. An agent that hits a hard cap mid-action and dies leaves you exactly the "failed halfway" mess from the recovery post, except now you caused it deliberately.
Design that distinction explicitly, with a graceful wind-down at the soft limit and a hard stop at the ceiling. Enforce the ceiling before each tool call is dispatched, so the hard stop lands between actions.
Scarcity improves planning
The benefit that surprises people is the change in behaviour.
An agent that knows it has five tool calls remaining plans differently (and usually better) than one operating as though resources are infinite. It prioritises. It stops exploring branches with low expected value. You can watch trace quality change when the remaining budget is made visible to the agent itself rather than merely enforced around it.
Unbounded agents are less deliberate, because nothing forces a choice about what matters. The pressure can also cut the wrong way. An agent near its limit may settle for a thin answer, so review runs that ended close to it.
The retry trap
This is worth isolating, because it is the most common way budgets get consumed invisibly: retries look like work.
Each individual retry is defensible. The trace shows an agent diligently attempting to complete its task. What it does not show, unless you are counting, is that attempts three through eleven were the same failing approach with cosmetic variation.
Cap retries separately from total actions. They are a different failure mode and they need their own ceiling.
Setting the first numbers
The table's numbers are examples. Take yours from traces by running representative tasks with generous limits, putting each soft limit near the p95 of successful runs with the ceiling above it, and alerting whenever a run reaches one. A rising rate means the tasks or the agent changed, and the alert shows it on a dashboard before it shows up on the invoice.
Terms in this piece
About this explainer
- Format
- Explainer
- Level
- Practitioner
- Read
- 2 min read
- Published
- Jul 1, 2026
- Disciplines
Short mental models: one idea, why it matters, what to do about it.
More on these topics
Article · · 3 min read
The first AI skill is knowing when to leave the model out
Many model calls in production could be a simple rule. How to tell when a problem needs a model and when it does not.
Article · · 1 min read
What an AI gateway actually costs to run
The operational bill for one gateway in front of a dozen tool servers, including the costs nobody budgets for.
Explainer · · 2 min read
Your AI feature has unit economics whether you measured them or not
Cost and latency belong to the workflow, not the model call. Budget them before rollout, not after the invoice.
Discussion