Agent loops · 2026-08-14

You cap the agent at 10 iterations to stop runaways.

It hits the cap mid-task and returns a half-finished answer as if done.

  1. AJust raise the cap to 50 and hope it finishes.
  2. BRemove the cap and let the agent run until its own goal check says the task is complete, however many steps that takes.
  3. CKeep the cap AND an explicit goal check, and treat hitting the cap as a failure to surface - not a success.
  4. DRestart the whole task from scratch whenever the cap is hit.

Answer: C

Keep the cap AND an explicit goal check, and treat hitting the cap as a failure to surface - not a success.

Why

A budget stops runaways; a goal check decides when it is actually done. Keep both, and treat a cap-hit as an explicit failure - never dress up a truncated run as a success.

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