10One agent

Agent loop

A model uses tools in a loop, deciding each next step from what the last one returned.

Also called Tools in a loop, ReAct, Agentic loop

Yao et al., Anthropic, Simon Willison

actsfeedbackdoneTaskLLMToolsResult
How to read this

The problem

You cannot predict the number of steps or hardcode the path.

Agents can be used for open-ended problems where it’s difficult or impossible to predict the required number of steps, and where you can’t hardcode a fixed path.
AnthropicBuilding effective AI agentsDec 19, 2024

Therefore

An LLM agent runs tools in a loop to achieve a goal.
Simon WillisonI think “agent” may finally have a widely enough agreed upon definition to be useful jargon nowSep 18, 2025
They are typically just LLMs using tools based on environmental feedback in a loop.
AnthropicBuilding effective AI agentsDec 19, 2024

In use

Anthropic

In our own implementation, agents can now solve real GitHub issues in the SWE-bench Verified benchmark based on the pull request description alone.
AnthropicBuilding effective AI agentsDec 19, 2024

Claude Code

Each tool use gives Claude new information that informs the next step. This is the agentic loop in action.
AnthropicHow Claude Code works

Where it breaks

Autonomy costs more, errors compound, and the model can repeat itself without leaving the loop.

The autonomous nature of agents means higher costs, and the potential for compounding errors.
AnthropicBuilding effective AI agentsDec 19, 2024
there is one frequent error pattern specific to ReAct, in which the model repetitively generates the previous thoughts and actions
Yao et al.ReAct: Synergizing Reasoning and Acting in Language ModelsOct 6, 2022

Sources

  1. ReAct: Synergizing Reasoning and Acting in Language ModelsShunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, Yuan Cao, Yao et al., Oct 6, 2022
    We apply our approach, named ReAct, to a diverse set of language and decision making tasks and demonstrate its effectiveness over state-of-the-art baselines in addition to improved human interpretability and trustworthiness.
  2. Building effective AI agentsAnthropic, Dec 19, 2024
  3. How Claude Code worksAnthropic
  4. I think “agent” may finally have a widely enough agreed upon definition to be useful jargon nowSimon Willison, Simon Willison, Sep 18, 2025
    The “tools in a loop” definition has been popular for a while—Anthropic in particular have settled on that one

Added Nov 14, 2026