Budgets and limits
The five budgets on every run, what happens when one runs out, what the runtime does when a model fails, and the platform limits an agent runs under.
Checked against the running product on 22 November 2026
Every agent carries five ceilings, so that a misunderstanding costs a few cents and a line in the run rather than a weekend of tokens. This page covers those budgets, what the runtime does when a model fails, and the limits the platform puts on your key.
The five budgets
They are set in the editor’s Budgets section, and each catches a different runaway.
| Budget | Default | Allowed | Stops |
|---|---|---|---|
| Max steps | 12 | 1 – 50 | A model that keeps deciding to do one more thing |
| Max tool calls | 40 | 1 – 500 | A model that calls tools over and over |
| Max tokens | 200,000 | 1,000 – 5,000,000 | Spend, across the whole run |
| Step timeout (s) | 120 | 5 – 900 | One slow model turn |
| Run timeout (s) | 1,800 (30 minutes) | 10 – 7,200 | A hung upstream or a stuck tool |
A value outside the allowed range is brought back inside it when you save. A pipeline has no step budget: its length is the chain you built (at most 50 steps, a fan-out step at most 10 items), and tokens, tool calls and time bound it. The persona templates start with 14 steps and 60 minutes.
When a budget runs out
The run stops, and Stopped on the run page says which budget it was: max_steps, max_tools,
max_tokens or timeout. Before it stops, an autonomous agent gets one last turn without tools to say
what it completed, what remains and its best answer so far.
Such a run ends as incomplete, not succeeded — so “it stopped early” is always visible, and a
half-finished investigation is never presented as the answer. An incomplete autonomous run can be
continued: reply to it on the run page, and it carries on with everything above it. A pipeline
cannot be replied to; an administrator can requeue it, and it resumes at the step where it stopped.
Raise a budget when a job genuinely needs more. An agent that keeps hitting Max steps usually wants to be a pipeline.
Questions and handoffs have their own limits — Questions this agent may ask per run (3 by default) and People this agent may hand the conversation to per run (2 by default). They are described in Tools.
The reflect pass. Reflect and improve the final answer, on an autonomous agent, has the agent critique its draft and then rewrite it: two extra model calls, which count against tokens but not steps. Critique prompt (optional) replaces the default critique instruction.
When the model fails
A model call that fails for a reason that may pass — a limit was reached for the moment, no server for the model is free, the provider answered with a server error — is retried a few times, with waits, on the same model.
Fallback models. If the model still cannot be served — it was withdrawn or disabled, your model profile no longer allows it, or the provider behind it is down — and the agent carries a list of fallback models, the run moves to the next one and carries on; the move uses no step. A note in Step detail names the model it gave up on and why: … is unavailable (…) — continuing on fallback “…”. A policy refusal or a malformed request is never routed around: another model cannot fix either. The list holds at most three models. It comes with the templates that ship one; the editor has no field for it, and saving keeps whatever list the agent already has. A model-routed agent also falls back to its own default model first.
A tool call written as text. Some models occasionally write a tool call into their answer as markup instead of making it, so the tool never runs. agentdesk recognises this. If the agent has a model to move to, the turn is discarded and sent once more to that model; the discarded turn uses no step, though its tokens count. With nowhere to move, the markup is cut out and the rest of the answer is delivered. Step detail marks the discarded turn malformed output: the model wrote a tool call as text.
Nothing came back. A model turn that returns nothing is asked again twice; after that the run fails with the model returned no output on … consecutive turns, rather than reporting success with an empty answer.
The platform’s limits
An agent runs on your own platform key, so the platform’s limits on that key and on your team apply to it exactly as to any other request:
| Limit | Where it is set | What a run sees |
|---|---|---|
| The rate limit on your agentdesk key (requests and tokens per minute) | On the platform, on the key user:<your address>#agentdesk. A new key has no limit of its own, except for a person on a trial, whose key starts with the trial’s limits |
A refusal that is retried with waits; a run that keeps hitting it slows down or runs out of time |
| Your team’s token budget and concurrency | On the platform, on your team | The same: refused, retried, and the run fails if it never gets through |
| Your model profile | On the platform | Only allowed models are listed in the editor; an agent set to a model you may no longer use moves to its fallbacks, or fails |
| Policy | On the platform | A refused model request fails the run with the reason; a refused tool call goes back to the agent as the tool’s result |
The per-person quota that governs a chat in aimo does not apply to agents. How the platform checks a request, in order, is in how a request is checked.
How many runs at once. agentdesk runs a fixed number of runs at the same time — two as shipped,
set by your installation and shared by every workspace — and starts the oldest queued run first. A run
that sits in queued is waiting for a free place. The Max concurrent runs and Daily token
budget fields on your Settings page are saved but not applied today.