AI Agents 101 Β· ~6 min Β· 2 quick checks
The agent loop
Agents work in a cycle called the agent loop:
- Think β given the goal and what's happened so far, decide the next step
- Act β call a tool (run a command, edit a file, fetch a page)
- Observe β read the tool's result
- Repeat until the goal is reached (or the agent asks you for help)