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.

BudgetExample limitWhat it prevents
Time90 secondsHidden latency users silently absorb
Tool calls8 per taskOperational blast radius
Cost$0.25 per taskUnpredictable unit economics
Retries2 attemptsLoops that look like productive work
Riskhuman review above thresholdUnaccountable 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

Short mental models: one idea, why it matters, what to do about it.