What is Agent Loop?
AI EngineeringLast updated:
The observe-think-act cycle that AI agents repeat until a task is completed or a stopping condition is met.
The agent loop is the core execution pattern: observe the current state, reason about next steps, execute an action, and evaluate the result. Loops include termination conditions like max iterations, success detection, or human approval gates.