ReAct vs plan-and-execute: how do AI agents decide what to do next?
Most agents you see today follow one of two broad control patterns, and knowing which one you are dealing with explains a lot of their behaviour.
ReAct (reason + act) interleaves thinking and doing. The model looks at the current state, decides on one action (call a tool, read a file), sees the result, then decides the next step. It adapts well to surprises, but it can wander, repeat itself, or lose sight of the overall goal on long tasks.
Plan-and-execute separates the two. A planner writes out a list of steps up front, and an executor works through them, sometimes with a re-planning step when something fails. This tends to be more predictable and easier to audit, but the initial plan can be wrong, and rigid plans handle unexpected results poorly.
In practice many systems mix them:
- A high-level plan for structure
- ReAct-style loops inside each step
- A checkpoint that compares progress against the plan and re-plans if needed
The trade-off is roughly flexibility versus predictability, plus cost: planning adds an extra model call but can save many wasted ones.
Which pattern have you found more reliable for real tasks? And has anyone measured whether explicit planning actually reduces token use, or just moves it around?
Comments · 3
ReAct is like thinking out loud step by step and acting after each thought. Plan-and-execute writes the whole to-do list first. I like that the second one is easier to debug.
For production, plan-and-execute is often more predictable and cheaper, since you don't re-reason at every step. ReAct is more flexible when the task changes midway.
Can you combine the two, like planning first but letting the agent revise the plan if something fails?