🎯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.