CTL-164 · agent

Spending and Loop Limits

Cap what an agent can do per run and shut it off automatically when it hits a limit.

TechnicalEffort MediumEffectiveness High

Set hard ceilings outside the agent: data volume per call, actions per run, emails sent, rows exported or deleted, external API calls, runtime, tokens, recursion depth, tool calls and money or compute spent. Apply them per task, per agent and per non-human identity. Machine-speed bursts that no human would produce should stand out. Add circuit breakers for delegation depth, fan-out and self-calls, and halt the run when a budget runs out or the same instruction starts copying across peer agents. Limits that live inside the agent's own code can be ignored or edited.

Put it in place

  1. 01Define per-run caps for volume, rate, depth, time and cost in the gateway.
  2. 02Enforce them in the platform, not the agent's code or prompt.
  3. 03Auto-stop and page on breach or on repeating payloads across agents.
  4. 04Review caps quarterly against real usage.

Counters 8 techniques