Lesson 03.04 · Phase 03 · The Agent Loop
Scratchpads and thought traces
Reasoning is for the agent and for you. The user gets the answer. Decide where each thought lives, and check the model can actually use it.
Learning objectives
- Name three places an agent's reasoning can live: inline thoughts, a think tool, and a pinned scratchpad of notes.
- Keep a developer-only thought trace separate from the user-facing answer, and strip reasoning tags before display.
- Keep important facts available after old messages are trimmed, by pinning notes into the prompt.
- Measure whether a model actually uses these tools, and find out why when it doesn't.
In ReAct (Lesson 2), every step begins with a written Thought:. Native tool calling doesn't require one: a model can go straight from question to tool call with no visible reasoning. That's efficient, but you lose two things. The model loses a place to plan ("I need both heights, then the difference, then feet"). And you lose the record of why it did what it did, which is what you need when it goes wrong.
Loading the full lesson…