| ReAct | Interleave reasoning and action: think, call a tool, observe, repeat. |
| Plan-and-execute | Produce a full plan first, then carry it out step by step. |
| Reflection | Review and critique an output, then revise it before returning. |
- 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.
- 01ReAct → reason, act, observe until the goal is met.
- 02Plan-and-execute → draft plan, validate it, execute, verify each step.
- 03Reflection → draft, critique against criteria, revise, then stop.
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.
ReAct trace for a failed order
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
{
"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.
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
| Option | Upside | Cost |
|---|---|---|
| ReAct | Adapts to new information | More tokens; can wander |
| Plan-and-execute | Predictable and reviewable | Brittle when assumptions change |
| Reflection | Higher output quality | Extra latency and cost per revision |
- 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.
| Key | Typical value | Note |
|---|---|---|
| pattern | react | Pick one per workflow. |
| max_revisions | 1–2 | Bounds reflection cost. |
| plan_validation | on | Check plan before execution. |
| Symptom | Cause | Fix |
|---|---|---|
| Agent ignores the plan | Plan not re-injected each step | Include the plan in every step's context. |
| Reflection makes output worse | No concrete rubric | Give explicit criteria and keep the best draft. |
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
Agent anatomy: loop, planner, tools and memory
The minimal system behind an AI agent: a goal, a reasoning loop, tool access, state and a stop condition.
Multi-agent orchestration patterns
When to split work across agents, how they hand off, and how to avoid coordination overhead.
Agent frameworks compared
LangGraph, CrewAI, AutoGen and MCP-based composition — what each optimises for and where it fits.