Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Plan and execute receives the goal, plans the whole task up front into ordered sub-tasks, executes each one, replans only when an observation invalidates the plan, then assembles the final answer.
Imagine planning a road trip before you leave. You sit down with a map and write out every stop in order: gas station, lunch town, the hotel, the beach. That whole list is your plan, made before the car even moves. Then you drive, ticking off each stop one by one. Most of the time you just follow the list. But if you hit a closed road, you pull over and redraw the rest of the route, keeping the stops you have already made. You do not replan the entire trip after every single stop, only when something surprising forces you to. When the last stop is done, you have arrived. A plan and execute agent works the same way: it thinks through the whole journey first, then walks the steps, and only redraws the map when reality breaks the plan.
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.
State the ordered phases, receive the goal, plan all sub-tasks, execute first, execute the rest, replan only on a plan invalidating observation, assemble the answer, then justify why planning sits once up front and contrast the cost and drift tradeoff against a ReAct loop.
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.
Replanning after every single step. That collapses plan and execute into a step by step ReAct loop and throws away the cost savings of generating the plan once.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.