Lesson 06.10 · Phase 06 · Planning & Reasoning

When not to plan

Every technique in this phase costs calls, latency and code. Most requests need none of them. Route each task to the lightest approach that can do it, and write down why.

Learning objectives

  • Describe a task by a handful of properties: needs tools, number of steps, whether the path is known in advance, irreversibility, checkability.
  • Implement a router that picks the lightest fitting approach (direct answer, single tool call, ReAct loop, plan-and-execute, plus approval) with stated reasons.
  • Count model calls per approach on a mix of tasks, and compare like with like.
  • Recognise the two opposite mistakes: planning tasks that need one call, and planning tasks whose path can't be known in advance.

After nine lessons of planning, decomposition, search, reflection and verification, it's tempting to put all of it in front of every request. A user asks "what's the difference between a list and a tuple?" and the agent writes a plan, executes a one-step plan, and reflects on it. Two or three model calls, several seconds, for an answer one call gives.

Loading the full lesson…