An agent doing something in twenty cycles makes twenty model calls, each carrying everything before it. The cost is not twenty times a single question; it is considerably more.
Why does it compound?
Because context accumulates. Each cycle sends the goal, every previous action and every result, so later cycles are far more expensive than earlier ones.
What drives the total?
- Number of cycles. The main factor.
- Context growth. Which compounds.
- Model choice. Order-of-magnitude differences.
- Tool output size. Large results carried forward.
- Failed runs. Charged like successful ones.
What is the most overlooked?
Failed runs. An agent that tries and fails has consumed everything a successful run would, and a task requiring three attempts costs three times what the estimate assumed.
What about tool output?
A frequent surprise. A tool returning an entire file, or a long page, puts all of it into the context permanently, and several such results dominate the cost.
How do you reduce that?
Truncate what tools return. Sending the relevant portion rather than everything is the single most effective agent cost measure, and it usually improves reliability as well.
What about the cost of review?
Frequently the larger figure and rarely counted. An agent run costing a few pence may generate half an hour of review, which is the real expense and the one that determines whether the arrangement saves anything.
That is an argument for tasks where verification is cheap. Work checked by a test suite or a count costs almost nothing to review, and work requiring careful reading may cost more to check than it did to do.
What about model routing?
Worth doing within the loop. Using a capable model for planning and a lighter one for mechanical steps captures most of the quality at a fraction of the cost.
What should you measure?
Cost per completed task, including failures. That number is what tells you whether the economics work, and it is frequently several times the cost of a successful run.
How do you keep it bounded?
Iteration caps, spend caps and shorter runs. All three are protections against the specific failure where an agent loops expensively while nobody is watching.
What about the cost of not knowing?
Worth naming, because agent costs are unusually opaque. A system with no per-task figure is one where nobody can tell whether it is worth running, and that state persists easily.
Logging cost per run alongside outcomes takes minimal effort and answers the question permanently. It also catches the gradual increase that happens as tasks grow or context handling changes.
How does cost compare with the alternative?
Favourably for anything that took real time. An agent run costing the equivalent of a few minutes of somebody's hourly rate is straightforwardly worthwhile if it replaced an hour.
The comparison fails for small tasks. Something a person does in two minutes rarely justifies an agent run plus the review, and the cases where agents genuinely pay are the ones people were avoiding because they were tedious.
When is it worth it?
When the task genuinely took a person significant time. Agents are expensive relative to a chat message and cheap relative to an hour of somebody's attention.
What is the practical advice?
Measure a real run before assuming, truncate tool output, cap iterations, and count failures in the total. That produces a number you can actually plan with.