Agent Cost Control
Control what an agent costs: effort levels, task budgets vs session budgets vs max_tokens, prompt-cache economics, model routing, and per-turn token accounting.
Last updated
After this section you can
- Separate max_tokens, task budgets and session budgets by scope, unit, and what happens when each is hit
- Use effort as the primary cost dial, and stop reaching for it to control output length
- Split an agent’s bill into cached input, uncached input and output before choosing a fix
Agent Cost Control
An agent’s bill is not one number you cap. It is a per-turn choice about depth, a prefix you either reuse or re-pay for, and three ceilings that behave nothing alike.
Every lever here answers a different question. Effort decides how much work a turn does. Caching decides how much of the input you pay full price for. Routing decides which model does the reading. Budgets decide what happens when a run overruns — and the three things called a budget stop the run in three different ways.