Token Budgets Change Agent Behavior, Not Just Cost
Enforcing a token cap cut task resolution by 20 points; telling the agent about it did not help.
Reviewed by Abhijith N M · 24 October 2026 · Editorial standards
You give a coding agent a token budget. Tokens are the chunks of text a model reads and writes. A token budget is a hard stop: when the agent hits the cap, it must stop working. A recent experiment tested what that stop does to the agent's results. The setup: two open models, two program-repair benchmarks (tasks where the agent fixes broken code until tests pass), three cap levels, and 5,835 runs. The researchers crossed two things: whether the cap was enforced, and whether the agent was told about it. That second part is the placebo control — it separates the effect of the limit from the effect of the warning. Enforcing a calibrated cap reduced task resolution by 20.0 percentage points. Resolution means the agent actually fixed the task. Tokens per resolved task dropped roughly twelvefold, so the cap did save work. But it also stopped the agent from exploring enough to find fixes. Disclosure alone did not help. At the medium cap, telling the agent about the budget changed resolution by -2.8 points, with a 95% confidence interval of [-6.2, +0.7] — that range includes zero, so the study cannot claim a real effect. At the tight cap it was -4.2 points, interval [-8.1, -0.2]. The authors call that nominally significant but unadjusted. Either way, every prompt wording stayed far below the 10-point effect they cared about. The practical lesson: a token budget is a constraint on behavior, not a cost dial you can turn down for free. If you enforce a cap, expect fewer resolved tasks. If you only tell the agent "you have limited budget," the evidence here says don't count on it to change the outcome.
Token Budgets Change Agent Behavior, Not Just Cost — Visual Breakdown
Enforced cap
- ✓Agent is hard-stopped at the token limit
- ✓Task resolution fell 20.0 percentage points
- ✓Tokens per resolved task fell roughly twelvefold
- ✓Agent loses room to keep exploring fixes
Disclosed cap only
- ✓Agent is told a budget exists, not stopped
- ✓Medium cap: -2.8 pp, CI [-6.2, +0.7]
- ✓Tight cap: -4.2 pp, CI [-8.1, -0.2]
- ✓Every prompt variant far below 10-point effect
def agent_loop(model, task, max_tokens, disclose=False):
tokens_used = 0
history = [task.prompt]
if disclose:
history.append(f"You have a budget of {max_tokens} tokens.")
while tokens_used < max_tokens:
step = model.next_step(history)
tokens_used += step.token_count
history.append(step.text)
if step.finishes_task:
return "resolved"
return "stopped_at_cap" # enforcement, not advice
# Enforcement changes what the agent can do.
# Disclosure only changes what it is told.Quick Concept Check
Test your understanding in 15 seconds
The study enforced a calibrated token cap and also told some agents about their budget. What did it find?
Related Concepts
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.