Agent loop

The cycle an agent repeats: decide the next step, take it with a tool, look at the result, and go again until the job is done or something stops it.

Google for Developers (Machine Learning Glossary) says: “A cycle that an agent iterates through until a termination condition is met.”

Also called

  • Agentic loop

Kind of

  • Agent harness The structure around a model that turns it into one working agent: its interface, agent loop, own context and memory, permissions, and list of allowed tools.

Often confused with

  • Loop engineering A practice of building where an agent keeps rerunning and checking its own work, with set rules for when it stops and when it asks a person to step in.

← All terms