Skip to content

Agentic patterns: ReAct, plan-and-execute, reflection

Three reusable reasoning patterns and how to choose between them for real workloads.

7 MIN READUPDATED 2026-11-18Agents & agentic AI
ORIGINAL DIAGRAM · AGENT LOOPPLANnext stepTOOL CALLtyped inputOBSERVEresultVERIFYcheckGOALinstruction

Original agent diagram — not a copied image

§ 01Key concepts
ReActInterleave reasoning and action: think, call a tool, observe, repeat.
Plan-and-executeProduce a full plan first, then carry it out step by step.
ReflectionReview and critique an output, then revise it before returning.
§ 02When to use
  • ReAct: exploratory tasks where the next step depends on results.
  • Plan-and-execute: workflows with a known shape and audit requirements.
  • Reflection: writing, code and analysis where a second pass improves quality.
§ 03How it works
  1. 01ReAct → reason, act, observe until the goal is met.
  2. 02Plan-and-execute → draft plan, validate it, execute, verify each step.
  3. 03Reflection → draft, critique against criteria, revise, then stop.
§ 04Use cases & scenarios

ReAct for a failed payment

Context
A support agent diagnoses a failed payment using several internal APIs.
Problem
The next tool to call depends on what the previous call returned.
Approach
Interleave reasoning, a single tool call and observation until the cause is known.
Outcome
A trace that explains exactly how the conclusion was reached.

Plan-and-execute for a compliance report

Context
A monthly report must follow a fixed, auditable sequence.
Problem
An exploratory loop would skip validation steps and produce an unreviewable result.
Approach
Draft a plan, validate it, then execute each step with the plan re-injected.
Outcome
A consistent report with evidence that every required stage ran.
§ 05Examples

ReAct trace for a failed order

text
Thought: Need to know why ORD-104200 failed.
Action: lookup_order("ORD-104200")
Observation: payment_authorized=true, fulfillment=blocked
Thought: Check the fulfilment logs for the block reason.
Action: read_logs(order_id="ORD-104200", service="fulfillment")
Observation: inventory_reservation_expired
Final: Restock the item, then retry fulfilment.

ReAct fits this case because each action depends on the previous observation.

Plan-and-execute for a weekly operations report

json
{
  "plan": ["fetch orders", "join refunds", "compute SLA", "write summary"],
  "validate": ["date range present", "tenant filter present"],
  "verify_each_step": true,
  "max_revisions": 1
}

Persist the plan and re-inject it at every step so the agent cannot quietly skip a stage.

§ 06Trade-offs

ReAct

Up: Adapts to new information

Down: More tokens; can wander

Plan-and-execute

Up: Predictable and reviewable

Down: Brittle when assumptions change

Reflection

Up: Higher output quality

Down: Extra latency and cost per revision

§ 07Implementation checklist
  • Choose one primary pattern; combining all three makes debugging hard.
  • Persist the plan so it can be reviewed and replayed.
  • Give reflection a rubric, not just 'improve this'.
  • Measure success rate per pattern on the same evaluation set.
§ 08Configuration reference
KeyTypical valueNote
patternreactPick one per workflow.
max_revisions1–2Bounds reflection cost.
plan_validationonCheck plan before execution.
§ 09Troubleshooting
SymptomCauseFix
Agent ignores the planPlan not re-injected each stepInclude the plan in every step's context.
Reflection makes output worseNo concrete rubricGive explicit criteria and keep the best draft.
§ 10Frequently asked questions

Which pattern should I start with?

ReAct for exploration, plan-and-execute when the process must be auditable. Add reflection only if quality metrics justify it.

Can patterns be combined?

Yes, but deliberately: plan-and-execute with reflection at the final step is a common, manageable pairing.

More in Agents & agentic AI