LeashgateDocs
Concepts

Budgets and quarantine

Cap what each agent spends, and stop agents that loop.

Daily budget

Each agent has a daily AI spend limit, $5 by default. Spend is computed from token counts and the prices set in Settings โ†’ AI provider. When an agent reaches its budget, its calls return 429 budget_exceeded until midnight UTC.

Loop detection

If an agent sends the same request 20 times within one minute, it is put in quarantine automatically. Change the threshold in Policies โ†’ Built-in protections.

Quarantine

A quarantined agent receives 403 agent_quarantined on every call. Release it, or quarantine any agent manually, from Console โ†’ Agents.

Emergency stop

The red Stop all agents button at the top of the console refuses every call from every agent of the workspace, immediately. Agents receive 423 emergency_stop on AI calls and quarantine on action checks. The stop and the resume are written to the audit log. Only owners and admins can stop or resume.