Flashcard: when would you pick Plan-and-Execute over ReAct?
Plan-and-Execute writes the full plan once and executes it in sequence; ReAct interleaves a Thought and Action at every step. The difference is when planning happens.
Imagine planning a road trip. One way is to map out every stop before you leave, then just drive between them without checking the map again. That is Plan-and-Execute. Another way is to drive a bit, look around, decide where to go next, drive a bit more. That is ReAct. The first is faster when the route is predictable because you only think hard once. The second adapts better when something unexpected shows up, like a closed road, because you re-decide with the new information. Real agents often blend the two: plan first, execute several steps, and only re-plan when the world surprises you. Both patterns turn a single model call into an agent loop, just with different rhythms.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define both patterns by when the planner runs: once up front in Plan-and-Execute, every step in ReAct. State the cost consequence: one planner call versus N. Cover where each wins. Close with the hybrid replanning pattern that most production frameworks ship by default.
Real products, models, and research that use this idea.
- LangGraph's prebuilt plan-and-execute agent runs a planner node once to produce a step list, then loops an executor node with a conditional replanning edge that fires on plan-contradicting observations.
- CrewAI's hierarchical-process mode uses a manager agent that plans the task into subtasks and delegates each to a worker agent, with the manager only re-engaging when a worker reports failure.
- OpenAI's deep-research mode plans a research outline up front, then executes search and synthesis steps against the plan, replanning only when a critical source is unavailable.
- Anthropic's claude-code agent often plans the steps of a refactor up front, runs the edits one by one, and only re-plans when a test failure invalidates a downstream step.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy is Plan-and-Execute often cheaper than ReAct on a 12-step research task?
QWhat goes wrong if you never re-plan in Plan-and-Execute?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating Plan and Execute and ReAct as the same loop with different names. They differ in when the planning step runs: once up front versus at every turn.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.