LESSON 123
The Agent SDK Loop — stop_reason, Tool Results, and Agentic Control Flow
The agentic loop is the heartbeat of every Claude agent. stop_reason is tool_use? Keep going. stop_reason is end_turn? You are done. Get this wrong and everything downstream fails.
12 min read·CCA Certification Prep
Academy Elite lesson
Read this lesson on the Academy
This lesson is part of the AI Operator's Academy Elite tier, so its full text and quiz live on academy.jeremyknox.ai.
Open on the Academy →