AI Agent Loop (ReAct)
6 min read.
Watch an agent reason and act in a loop, see what one step really is (context in, action out), learn how the loop stops safely, and compare ReAct with plan-execute, reflexion, and tree-of-thought.
Think of it this way: A ReAct agent is a detective thinking aloud: "I need the capital" (thought), checks a reference (action), reads "Paris" (observation), then repeats — closing the case only when the clues add up.
Task: What is the population of the capital of France, times two?
- The transcript is empty.
Press Play to watch the agent work through the task.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
One turn of the ReAct loop
Order a single iteration.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
Quiz
20 questionsWhat are the three repeating parts of a ReAct step?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.