Overview
Planner-executor is an agent architecture with two roles. The planner receives the task and produces a numbered plan without running anything; the executor takes one step at a time and carries it out, usually with tool calls. The roles can be the same model with different prompts, or different models: a stronger model plans and a cheaper one executes (model-routing).
Use it for long tasks where a flat agent-loop drifts or re-reasons the whole task on every turn, and when independent steps can run in parallel. Add a replan path: when a step fails or returns something that invalidates later steps, call the planner again with the partial results. For short tasks the extra call and latency are not worth it.
It differs from ReAct, which interleaves a reasoning step and an action on every turn with no up-front plan.
Example
Task: “Research competitors and draft a summary.” The plan is: search A, search B, read A’s pricing, read B’s pricing, write the comparison. Step 3 fails (page not found), so the planner revises steps 4 and 5 using what steps 1 and 2 returned.
Related
- agent-loop: the loop the executor runs inside.
- tool-use: how the executor acts on each step.
- agent-architecture-patterns: where planner-executor fits among designs.
- multi-agent: planner-executor as a two-agent topology.