Orchestration · 2026-08-11

An agent occasionally loops and burns a fortune in tokens.

What’s the essential guardrail?

  1. ATrust the model to stop
  2. BA hard cap on iterations / tokens / cost per task
  3. CA prompt instruction asking the agent to watch its own spending and stop once it seems too high
  4. DTurn off logging to save money

Answer: B

A hard cap on iterations / tokens / cost per task

Why

Always bound autonomous runs: a hard iteration/token/cost cap turns a runaway loop into a safe, bounded failure.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path