Back to AI Engineering Mind Map
中文·English
🤖 AI EngineeringID: plan-and-execute-pattern

Plan-and-Execute Pattern

Plan-and-Execute 任务规划解构
🎯Core Definition
Plan-and-Execute is a decoupled two-stage agentic architecture that separates macro task decomposition from micro-execution; a Planner first breaks complex goals into structured DAG sub-task plans; an Executor runs specific tools to complete each sub-task sequentially; following each step, a Replanner evaluates intermediate execution outputs against the macro objective, dynamically updating, pruning, or expanding remaining plan steps.
💡Use Cases
Long-horizon complex projects (e.g., authoring a 20-page market research dossier, automated repository refactoring, multi-system analytics).
Key Problems Solved
ReAct's myopic greedy step-by-step nature triggers severe goal drifting on 10+ step tasks, getting trapped in rabbit holes; Plan-and-Execute maintains a persistent global bird's-eye view, keeping execution strictly aligned with macro objectives.
🎯5 High-Frequency Exam Points
1
Detail the state and data flow between Planner (plan synthesis), Executor (sub-task runs), and Replanner (dynamic updates)?
2
How to model sub-task input-output dependencies using DAG topological sorting to enable concurrent execution of independent branches?
3
What are the threshold conditions for the Replanner to trigger full plan invalidation and re-synthesis upon unexpected step outcomes?
4
Why does Plan-and-Execute allow cost optimization by pairing a frontier Planner (GPT-4o) with lightweight Executors (GPT-4o-mini)?
5
Compare Plan-and-Execute vs ReAct across upfront planning latency, dynamic fault resilience, and total token overhead?
📖 In-depth Guide:📄 agent-design-patterns
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "Plan-and-Execute Pattern"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardReflexion Self-CorrectionNext CardTree of Thoughts (ToT)

🔗 More AI Engineering Knowledge Cards

Vector Distance Metrics & L2 NormalizationScalar Quantization (SQ8/SQ4)Product Quantization (PQ)ADC Asymmetric Distance Computation