Home Tools Glossary Agent Loop
Concept

Agent Loop

AI Agent Execution Loop

/ay-juhnt loop/

The iterative cycle where an AI agent perceives its environment, reasons, executes tool actions, and evaluates outcomes.

In plain English
The agent loop is like a continuous feedback cycle where an AI thinks about a problem, tries a tool action, checks the result, and decides what to do next.
Real-world example
An automated research agent executing iterative search-read-analyze loops to compile a comprehensive market report.
Technical definition
The agent loop describes the iterative execution flow in autonomous AI systems encompassing observation, thought formulation, tool invocation, and reflection. Operating in feedback cycles (such as ReAct), the agent evaluates intermediate outputs against objective criteria to determine whether to continue execution or terminate.