Agents, Tool Use & MCP·Question 21 of 90Intermediate

Compare plan-then-execute with reactive (ReAct-style) execution. When does each win?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Plan-then-execute has the model produce an explicit multi-step plan first, then executes steps - possibly in parallel, possibly with cheaper models - replanning on failure. Reactive execution decides one step at a time based on the latest observation.

Full worked answer with diagram

Plan-then-execute has the model produce an explicit multi-step plan first, then executes steps - possibly in parallel, possibly with cheaper models - replanning on failure. Reactive execution decides one step at a time based on the latest observation.

Plan-then-execute wins when:

  • The task is long and drift is the enemy. A visible plan keeps the global objective in front of the model; pure step-by-step agents wander on 30+ step tasks (ReAct's known myopia).
  • You can parallelize. Independent plan steps fan out to concurrent workers - impossible if the next action is only known after the current one.
  • Humans need a review point. "Here's my 6-step plan, approve?" is the cheapest, highest-leverage human-in-the-loop gate - you audit intent once instead of every action.
  • You want model tiering. Frontier model writes the plan; cheaper model executes mechanical steps.

Reactive wins when:

  • The environment is unknown or surprising. Debugging, exploration, anything where step 2 depends on what step 1 reveals. Upfront plans over unknown terrain are fiction, and a stale plan followed obediently is worse than no plan.
  • Tasks are short. Planning overhead isn't free; for 3-step tasks it's pure tax.

What's actually shipped in 2026 is a hybrid: plan at the top (often as a todo list the agent maintains as a tool/artifact), execute each step reactively, and replan when observations invalidate assumptions. The todo list doubles as working-memory anchoring - it survives compaction and visibly tracks progress. Reasoning models blur the line further: extended thinking is planning that happens inside the model call, but it doesn't replace an externalised plan, which persists across iterations, supports approval gates, and coordinates parallel workers.

The failure mode to name for plan-then-execute: plan-worship - the agent forces the world to fit the plan instead of updating it. Explicit "replan triggers" (step failed twice, new information contradicts plan) are the fix.

Worth sketching. The replan edge is the point of the drawing: it separates a plan you maintain from a plan you worship.

flowchart TD
    A["Task"] --> B["Explicit plan, 6 steps"]
    B --> C["Approval gate:<br/>audit intent once"]
    C --> D["Execute, parallel<br/>where steps are independent"]
    D --> E{"Observation<br/>invalidates the plan?"}
    E -->|"yes, replan trigger"| B
    E -->|"no"| F["Done"]
    A --> G["Reactive: choose next step<br/>from the latest observation"]
    G --> G
    G --> F

What a good answer covers

  • Plan-then-execute has the model produce an explicit multi-step plan first, then executes steps -…
  • Reactive execution decides one step at a time based on the latest observation
  • Plan-then-execute wins when: - The task is long and drift is the enemy
  • A visible plan keeps the global objective in front of the model; pure step-by-step agents wander on 30+…
  • Independent plan steps fan out to concurrent workers - impossible if the next action is only known after…

Key terms: Plan-then-execute wins when · You can parallelize · Humans need a review point · You want model tiering · Reactive wins when · Tasks are short

Interviewer follow-ups to expect

  1. How would you represent the plan - prose in context, or a structured todo tool - and why?

  2. What's your replanning trigger design?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep