My Learn Site
Back to sessions

01

The Agent Loop

The smallest useful agent is a loop that calls the model, runs tools, and feeds results back.

Every AI coding agent shares the same core loop: call the model, execute the tools it asks for, feed the results back.

The loop stays stable while capabilities register into a dispatch table. Add a tool, register it, and the loop needs no changes.

Next session: Tool Use