Lesson 06.09 · Phase 06 · Planning & Reasoning

Reasoning models in the loop

Reasoning models think before they answer, and you pay for every hidden token and every second of it. In an agent, most steps don't need that. Use them where the hard thinking is (planning, verifying, resolving conflicts), or as an escalation when a cheaper model's output fails a check.

Learning objectives

  • Explain what a reasoning model changes: hidden reasoning tokens that are billed, much higher latency, and better results on hard multi-step problems.
  • Model the cost, latency and success of an agent run under four routing policies, with assumptions stated explicitly.
  • Explain why per-step success compounds over a run, and why escalation with a checker can beat using the strongest model everywhere.
  • Measure a real fast model and a real reasoning model on checkable tasks before deciding.

Reasoning models (OpenAI's o-series and GPT-5 reasoning modes, Claude with extended thinking, DeepSeek-R1, Qwen3 in thinking mode, and others) generate a long internal chain of thought before answering. On hard problems they're much better. They're also slower, often by an order of magnitude, and the reasoning tokens are billed as output tokens even when you never see them.

Loading the full lesson…