AL

Agent Loop

Core Concepts

The repeating cycle at the heart of every agent: perceive the current state, reason about what to do next, take an action through a tool, observe the outcome, and loop. The loop ends when the goal is achieved, an error stops progress, or a step or budget limit is hit.

Key factLoop design is where most agent reliability is won or lost. Production agent failures are more often loop failures (no stopping rule, no error handling) than model failures.
Leader lensAsk to see the loop's stopping conditions before you ask about the model. A loop without a hard stop is a cost and risk incident waiting for a trigger.