Flashcard: when would you pick Plan-and-Execute over ReAct?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
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.
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.
What an interviewer would ask next. Try answering before peeking at the approach.
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.