What is the agent loop?
An agent loop — sometimes called the Agentic Loop — is the repeating cycle an LLM agent runs to make progress on a task. The agent observes the current state, decides the next action (often a tool call), executes it, observes the result, and decides whether to continue, retry, reflect, or stop. Most frameworks implement a variant of the original 2022 ReAct cycle, but the modern literature generalises the loop with explicit planning, reflection, and persistence layers.
This page is a hub, not a tutorial. We link to the canonical resources — papers, docs, repos, and long-form blog posts — that practitioners actually cite. We don't re-explain the loop here; we point at the explanations that aged well.
If you want a tool-first directory instead, head back to the free AI code generators category — many of those entries ship an agent loop under the hood.