Token Budget Exhaustion in Multi-Step Agentic Workflows
Retries, bloated context and recursion multiply token spend.

Token budget exhaustion in multi-step agentic workflows is a structural engineering problem. Retries, growing context and recursive delegation use more tokens than single-pass budgets can account for. The remedy belongs in workflow design and runtime enforcement, where the multiplication happens, rather than in a financial review after the tokens are gone.
Why token budgeting for agentic workflows is a different engineering problem than budgeting for chatbots
Uber CTO Praveen Neppalli Naga said in April 2026 that the company had exhausted its entire annual AI budget in four months. The financial shock was substantial, but the engineering question is more useful. What does a budget count as one unit of work? For a chatbot, the simple model is one prompt in and one completion out, with cost growing linearly as interactions increase. For an agent, one user action can trigger planning, tool calls, validation, retries and sub-agent spawning.
User count no longer explains how much work the system performs, because workflow complexity determines how many calls each request generates and how much context each call includes. Cost per completed task becomes the unit that matters. A cheap first call says little about what it costs to get a usable result. Consequently, a pilot can support a plausible budget while leaving the expensive parts of production largely unmeasured, particularly longer workflows and more frequent validation failures.
The three structural behaviors that make token consumption grow geometrically in agentic loops
The first mechanism is repeated context transmission. A language model has no persistent memory between API calls, so an agent that retains its working history must resend instructions, conversation history, prior tool results and retrieved documents. Each step adds material that later steps process again. As context grows, each call is charged again for what it contains. Retransmission alone creates nonlinear growth with workflow length, while branching and recursion can turn that base burden into geometric multiplication.
Caching does not automatically remove that burden. OpenClaw GitHub issue #19534, from February 2026, described a changing “Current Date & Time” section in the system prompt that fully invalidated Anthropic prompt caching on every request. A very large context was consequently processed at standard, non-cached pricing. A small dynamic field can defeat an assumption on which the economics of a large prompt depend.
The second mechanism is retrying failed work. Retries are necessary for reliability, but each attempt can resend the full context accumulated by that point. A failed late-stage attempt therefore costs more than an isolated failed prompt would suggest. Production also brings messier inputs than demonstrations do, with validation failures that pilot estimates may understate. Failure does not reset the meter to zero.
The third mechanism is activity without a human trigger. Monitoring agents, document watchers and compliance surveillance systems can run all the time, however many conversations take place. Their consumption therefore escapes metrics built around user interactions, even while the underlying calls keep accumulating. The dashboard can look quiet while the invoice grows.

How multi-agent chaining and sub-agent recursion multiply the base problem
Multi-agent orchestration repeats those costs across delegated work. An agent in a demonstration may handle three steps while one in production handles twelve, with each step passing on all the context from the steps before it. The workflow also branches when a parent spawns sub-agents. Each branch receives a copy of the parent context and then accumulates its own history. The workflow is no longer merely getting longer.
When sub-agents spawn further sub-agents, the number of active paths can grow geometrically, and each path can incur its own retransmission and retry costs. Recursive calls make the problem harder to bound, whether agents call themselves or sibling agents call back. Token accounting contains no inherent termination condition for that recursion. It records consumption.
Zhejiang University’s token economics survey characterizes multi-agent coordination as “collaboration friction,” using transaction cost and principal-agent theories to examine its overhead. Agents must exchange context and coordinate their contributions, adding consumption beyond the substantive task itself. The multiplier therefore depends on the structure of collaboration.
What task specification and thinking-effort settings actually do to token spend
Stanford’s study of how many tokens agentic coding uses ran 2,700 experiments with the Kimi K3 model at three thinking-effort levels. It found that reducing a full task specification to a bare user story raised token spend substantially. Shorter instructions did not produce a cheaper workflow. Instead, underspecification forced the agent into more exploratory reasoning to compensate for what the initial request left unresolved.
Higher effort is neither uniformly better nor uniformly more expensive, because the result depends on the task’s reasoning needs and how much reasoning the configuration prompts the model to perform. There is no universal economical setting. Specification quality and effort must therefore be considered together, because changes to prompt length and model intensity affect each other.
Task descriptions shape the amount of exploration a workflow needs, while effort settings shape how the model approaches that work. Both are choices about engineering as well as user experience. They influence how much downstream activity retransmission and branching have to multiply.
Why optimizing the performance-cost frontier is insufficient when workflows run under hard budget and deadline constraints
A workflow can be efficient on average and still fail under a concrete budget or deadline. The usual approach to optimization seeks a good performance-cost-latency frontier by choosing models with good trade-offs for each subtask. That helps at design time. It does not tell an executor which model to invoke next after earlier steps have consumed more money or time than expected. The next decision depends on what remains.
Under hard constraints, the goal becomes constrained completion probability, which is the chance that the whole workflow succeeds within both limits. A model that looks good for one subtask may do less to help the whole workflow meet that goal. The executor must account for remaining work as well as remaining resources. It must also decide whether parallel attempts are worth their additional consumption when several subtasks can run simultaneously.
Beijing Institute of Technology and Xiaohongshu’s MCPP paper formalizes this as a finite-horizon stochastic online allocation problem. Its Monte Carlo Portfolio Planning approach simulates workflow executions to estimate constrained completion probability, then replans after observed outcomes. Experiments on CodeFlow and ProofFlow showed consistent improvement over strong baselines across a wide range of budget-deadline combinations. The framework is a worked example. Its important shift is to make remaining budget and time live inputs to execution.
The governance gap that lets token multiplication run unchecked in production
Runtime allocation still needs controls that the model cannot override. A token budget written into a system prompt is an instruction. Research on “token elasticity” identifies cases in which models exceed budgets set too low. Asking politely is not a resource governor. The distinction becomes consequential when an agent can keep retrying or spawning further agents without an external cap.
Permission accumulation creates a related expansion of scope. Agents that begin with read-only access can incrementally acquire write and delete permissions across services, while access to more tools adds larger tool-definition payloads to calls. Operational authority and context overhead can grow together. When background and coding agents are approved without finance or security knowing, they can use tokens without a budget owner watching what they do. Conversation analytics cannot account for agents they do not reveal.
The authorization layer provides an enforcement point at tool calls and sub-agent invocations. Unlike a prompt instruction, a control applied there can deny an action regardless of what the model proposes. But enforcement depends on visibility into which agents are running, which tools they call and how much context they accumulate. Runtime discovery and monitoring must therefore be built into the controls, with reporting treated as a required part of that design. An audit log can explain completed spending, but it cannot prevent it.
Architectural responses that address token multiplication at its source
The engineering response is to manage context explicitly by selecting what to forward. Query-aware semantic compression removes irrelevant material before retransmission, while summaries at workflow checkpoints replace full history with a compact account. Compresr’s pipeline analysis on FinanceBench found that meaningful compression improved accuracy compared with full context. Selecting relevant context improves its quality while reducing the material that every later step would otherwise have to process again.
Retry architecture should similarly distinguish necessary recovery from unbounded repetition. An orchestration-layer cap places a hard boundary on retry depth, outside the model’s discretion. Within that boundary, some failures need the full history, while others need only the failed step’s context. The distinction directly limits the cost of recovery. Retry rates in production can also give early warning of poor context or incomplete task specifications, so those causes can be fixed before more attempts drive up the spend.
Model routing addresses the cost of work that remains necessary. Routing each subtask to the cheapest model capable of delivering its required outcome avoids assigning the most capable model to every step by default. Savings accumulate across the workflow rather than depending on one unusually efficient call. However, fixed routing cannot respond to every execution outcome. Under hard constraints, runtime allocation must use estimated success rates and expected token lengths for each subtask-model pair to change its choices as the workflow uses up budget and time.
Authorization can bound both delegation and context scope. Per-invocation evaluation, rather than session-level authentication alone, allows controls to limit tool access and the number of sub-agents an agent can spawn. This places a gate at the point where another branch would begin. Returning only the tools permitted by the caller’s granted scopes also reduces the tool-definition payload sent on each call. The same design decision limits what an agent may do and how much supporting context it needs.
Observability makes these controls usable in production. Token logging at each individual LLM call is the minimum needed to distinguish expensive agents and workflows from an undifferentiated monthly total. Real-time views by agent, workflow and tool call can expose anomalous consumption before it becomes a billing surprise. That visibility must cover which agents are running, what approved AI traffic is doing and whether agents behave in unusual ways. Otherwise, even a carefully written policy governs only the activity its owners already know about.
Why token budget exhaustion will get harder to manage as agentic adoption scales, and what that means for workflow design today
More agents mean more delegated chains, more tool invocations and more background activity without user triggers. Falling token prices do not remove those relationships. Gartner Senior Director Analyst Will Sommer warns, “Chief Product Officers should not confuse the deflation of commodity tokens with the democratization of frontier reasoning”. A cheaper unit cannot resolve a workflow whose consumption expands faster than its unit cost falls.
The practical consequence is to make resource boundaries part of the initial architecture. Task specification, context policy, sub-agent authorization scope and observability are harder to retrofit once production workflows depend on existing behavior. Designing them early also makes the system’s operating assumptions explicit. The choice is between proactive runtime enforcement that bounds multiplication before actions complete and retroactive investigation that can only explain what an agent spent.
Sources
- Token Economics for LLM Agents: A Dual-View Study from Computing and Economics
- Can your AI agent be cheaper? Investigating the effects of task specifications on token spend in agentic coding tasks
- On Time, Within Budget: Constraint-Driven Online Resource Allocation for Agentic Workflows
- Agent Contracts: A Formal Framework for Resource-Bounded Autonomous AI Systems


