Compare Architectures

Side-by-side: use case, requirements, latency, cost, strengths, weaknesses, failure modes, example — and when to choose each.

Plan-then-executeReAct
Use caseLong tasks with dependent steps that can be foreseenExploratory tasks where each observation changes the next move
RequirementsPlanner call, executor loop, replanning triggerSingle loop interleaving thought, action, observation
LatencyUpfront planning call, then often fewer total stepsNo upfront cost, but can wander through many steps
CostExtra planning tokens; cheaper when the plan holdsCheaper on short tasks; expensive when it meanders
StrengthsInspectable plan, parallelizable independent steps, easy approval gateAdapts immediately to surprises
WeaknessesPlans go stale when early steps failNo global view; repeats work; hard to insert approvals
Failure modesExecutes a stale plan against changed stateLoops on the same action; forgets the goal
ExampleMigrate 12 config files following a dependency orderFind why a test fails by reading and probing
Choose this whenChoose plan-then-execute when steps are dependent and reviewable up front.Choose ReAct for short, exploratory tasks; add a step budget either way.