Skip to main content

Settings: limits

Limits​

Limits bound how many task environments run and for how long; what each may use is set per environment (see Environments). The defaults come from gateway.toml; a value set on this page overrides the file's value until you reset it. Under the table, Largest environment shows the most any environment may have, which only gateway.toml sets ([sandbox.ceiling]).

LimitWhat it boundsApplies to
Tasks running at onceEnvironments running at the same time, for everyoneNext task start
Running tasks per personEnvironments running at the same time for one person; not more than Tasks running at onceNext task start
Sleep after idleHow long an idle environment stays awakeNew environments
Longest environment lifeThe longest one environment runs; a busy run then continues in a fresh environmentNew environments
Connector calls per person per minuteHow many connector calls one person's tasks may make in a minuteNext connector call
Desktop environments at onceDesktop environments running at the same time, for everyone (default 2: each holds 4 GB); not more than Tasks running at once. Another Desktop task waits its turnNext task start
Keep action screenshots forHow many days the screenshots a Desktop task takes stay viewable (default 30, at most 365)Next clean-up
Screenshots a run may send the modelThe most screenshots one run of a Desktop task sends the model (default 200, 1 to 1,000). Past it the agent is told to work from the page's text instead, so a looping model can't run up image tokensDesktops that start after the change: a desktop already running keeps the cap it started with
Desktop actions a run may takeThe most clicks, keystrokes and other desktop actions one run takes (default 1,000, 1 to 5,000). Past it every desktop action is refused for the rest of the run and the agent is told to wrap up; it can still look at the screen and use its other tools, and the next run starts at zeroDesktops that start after the change: a desktop already running keeps the cap it started with

"Next task start" means the next time a task asks for an environment; "New environments" means environments created or woken from now on; "Next connector call" means the next call a task makes to a connector; "Next clean-up" means the gateway's next removal of old screenshots. Running environments keep the limits they started with.

Below the table, Largest environment shows the ceiling no environment may exceed, set in the configuration file ([sandbox.ceiling]): for example, "Environments can use up to 8 CPUs, 16 GB of memory, 4096 processes and 100 GB of disk".

The table shows each limit and its value. A value set on this page says Set here; the others come from the configuration file. Edit shows the range the gateway accepts, the Default (the file's value) and where the value comes from, and refuses a value outside the range. A duration as a number and a unit (seconds, minutes or hours), preset to the table's unit, with the range in that unit; changing the unit converts the value (90 minutes becomes 1.5 hours). A line under a value explains it when it differs from what you might expect: after a change to the configuration file left a value outside what the file now allows, the gateway moved it to the nearest allowed value, and the line says what it was (for example, "Lowered from 12 tasks when the configuration file changed; 8 tasks is the most allowed"); or the file sets a value below what can be set on this page.

For a value set here, Edit also offers Reset to the configuration file's value, which asks once and returns the limit to the file's value from the next task start or new environment. Each row has only Edit.

Helpers (v1.1)​

From v1.1 a task can lead helpers: it starts other tasks, gives each a brief, and collects their reports (ADR-0034; for people, Helpers in the user guide). Helpers are off until you turn them on with enabled = true under [agent_teams] in gateway.toml. While they are on, Limits has a Helpers section with the limits below, for the whole installation; nobody sets them per team. While they are off, nothing about helpers shows anywhere. In gateway.toml the limits are under [agent_teams] too.

LimitSettingWhat it boundsDefault
Tasks may lead helpersenabledWhether the installation has helpers at all. It is set in gateway.toml only, under [agent_teams], and needs a restart; the page shows it as On, read-only ("Set in gateway.toml; a change needs a restart.")Off
Helpers per lead taskmax_membersHelpers one lead task has at once; at most 83
Tokens per teamtoken_budgetTokens for a lead task and its helpers together, counted where model calls are metered. At 80 % each working helper is asked to report what it has, and the lead to finish with their reports (it reads the notice with them, not before); at the helpers' share (below) the helpers stop at their next step and the lead writes up with the rest; at 100 % the team stops2,000,000
Helpers stop at (no page row yet)helpers_stop_percentThe share of Tokens per team, in percent (1–99), past which helpers' model calls are refused so the lead has the rest to write up. Set in gateway.toml only, under [agent_teams]; a change needs a restart90 %
Time per teamdeadline_minutesTime from the first helper's start; then the team stops. At most 24 hours120 minutes
Tell the lead a helper is idle aftermember_idle_minutesA helper that stopped without reporting10 minutes
Tell the lead a helper is stuck aftermember_stuck_minutesA helper working with no step finished15 minutes
Stop an idle team afteridle_stop_minutesNo message and no helper working30 minutes
Helpers' modelmember_routeThe model route for helpers started without an agent profile, for example a local model, so that a strong model can lead while helpers run locally. A route deleted since you opened the list is refused, and you choose againThe lead task's model
Check before a team finishesacceptance_checkA command run in the lead task's workspace when it says the work is done, for example a test suite: one line, at most 4,096 bytes. It runs as the lead's shell commands do, for at most 10 minutes. If it fails or runs out of time, the team keeps working and the lead sees how it ended and the last 4 KiB of its output. A task started before an upgrade can't finish while a check is set until it is stopped and sent a message, which starts it on the new version. Empty the field for no checkNone

Each limit's row says when a change applies, as the gateway applies it: Helpers per lead task from a lead's next helper (helpers already working keep going); Tokens per team and Time per team to the next team a lead starts (a team already running keeps its budget and time); the three times within seconds, to teams already running too. Its edit dialog says the same in full.

Disk​

A helper working in its own copy has a full copy of the lead task's workspace, with the same disk limit, so a lead task with the most helpers can use up to that many more copies of its files on the server.

Turning helpers off​

With enabled = false, helpers that were still starting stay as they are until helpers are on again; then each one gets its brief, or, if it waited more than ten minutes, it fails and its lead is told.

How helpers relate to Tasks running at once​

Every helper is a task with its own environment, so it counts towards Tasks running at once and Running tasks per person like any task, and it waits for a free place the same way. So that a lead task and its helpers always fit, the most helpers a lead task can have is the smallest of these:

  • Helpers per lead task;
  • Tasks running at once, minus one for the lead task;
  • Running tasks per person, minus one for the lead task.

A helper that is Done still counts towards Helpers per lead task, since its lead can give it more work; so does a helper that is Failed after it had started, since a message starts it again. It stops counting once it is stopped (Stop helper, by the person or the lead) or the team ends. A helper that couldn't start doesn't count. At the limit, the lead is refused another helper, told why, and carries on with the helpers it has.

A helper whose environment keeps stopping​

A helper's environment is replaced when it stops unexpectedly, as any task's is. After the fifth loss within ten minutes it is not replaced again: the helper shows Failed, and its lead is told at once, with the reason, and decides whether to write to it again (which starts it) or stop it. The other helpers and the team carry on.

With 4 tasks running at once, at most 3 helpers. The page refuses a Helpers per lead task above that, and if you lower the other two limits later, the smaller number applies from the next helper started, and beside the value the page says how many helpers a lead task can have now, and which limit sets that. A helper waiting for its lead doesn't keep its place: its environment is put to sleep when another task needs the place, and it wakes when its lead writes to it. A larger team therefore needs a larger Tasks running at once, which means more host memory and cores (see Largest environment).

Channels: waking agents (18.2)​

From 18.2 a channel wakes its member agents on its own: a person's post to the whole channel wakes every agent that votes in it; a post naming an agent (@ and its name in the channel), a reply to its post, a proposal or a to-do wakes the agents it concerns; the decision on an agent's proposal and a report on its to-do wake that agent. The woken task reads what's new, answers in the channel and stops. Only runs a channel started this way count against its budget; a run a person started never does. People see each channel's budget and who may raise it in the channel's Wake budget… (Channels).

SettingWhat it boundsDefault
wake_budget under [channels] in gateway.tomlThe tokens, counted where model calls are metered, that a channel's woken runs may spend a day when the channel has no budget of its own. The day starts at the channel's first charge; 24 hours later spent is 0 again and the wakes it held go out. At 80 % the channel gets a notice; at 100 % no agent is woken until then and a woken run's next model call is refused. 0 turns waking off for every channel without its own budget. It is set in gateway.toml only (no page row yet) and needs a restart. A channel's owner, a person who leads it, or an administrator can give that channel its own daily budget from the channel page's "Wake budget…"2,000,000
max_wake_budget under [channels] in gateway.tomlThe most a channel's own budget may be set to from its page; a larger number is refused. Needs a restart10,000,000
budget_window_seconds under [channels] in gateway.tomlHow long a channel's budget day lasts from its first charge, in seconds, from 1 to 604,800. Leave it at a day: it exists so tests can shorten the day. Needs a restart86,400

Two bounds are fixed: no wake follows a fourth agent reply in a row (a person's post starts the agents again), and a channel wakes agents for other agents' posts at most 30 times an hour. When either holds a wake back, the channel says so once.