βœ•
πŸ€– 25 XP

AI Agents 101 Β· ~6 min Β· 2 quick checks

The agent loop

Agents work in a cycle called the agent loop:

  1. Think β€” given the goal and what's happened so far, decide the next step
  2. Act β€” call a tool (run a command, edit a file, fetch a page)
  3. Observe β€” read the tool's result
  4. Repeat until the goal is reached (or the agent asks you for help)