← Back to Articles
Agentic Architectural Patterns • Part 2

Single Agent Patterns: Plan-Then-Execute

Intent

Separate deliberation from action: produce an explicit multi-step plan first, then execute steps, optionally replanning on failure.

Introduction

While the step-by-step reasoning of a Reason and Act (ReAct) loop is highly adaptive, it exhibits significant limitations when applied to long-horizon, complex tasks. In unconstrained loops, errors can compound quickly, the context window can overflow with detailed execution traces, and the agent is susceptible to losing the high-level goal or wandering into infinite loops. The Plan-Then-Execute pattern resolves these issues by explicitly separating the thinking phase (deciding *what* to do) from the execution phase (doing it).

Structure of the Pattern

The Plan-Then-Execute architecture divides the execution lifecycle into distinct stages managed by specialized components:

PROMPT Tool Execution RE-PLAN ON FAILURE 1. Planner LLM Deliberation Structured Plan ✓ Task 1: Scrape ⚡ Task 2: Parse ○ Task 3: Summarize 2. Executor Task Exec / Runtime Environment APIs & File System 3. Monitor Validation & State Check

Decoupling planning from execution was formalized under methodologies like **Plan-and-Solve Prompting** [1]. Rather than forcing the model to generate both thoughts and actions simultaneously, this pattern allows the system to structure its entire action path beforehand, enabling more coherent behavior on long-horizon objectives.

Trade-offs

Separating planning from execution offers significant architectural advantages but introduces unique complexities:

Improved Long-Horizon Coherence

Decoupling the high-level roadmap from step-by-step mechanics ensures the model doesn't get sidetracked or lose its place over dozens of steps.

Legibility & Parallelization

Plans are easily readable, permitting human-in-the-loop review. Independent steps can be executed in parallel (e.g. parallel SDK builds).

Plan Stale Rate

Plans created with incomplete initial information can quickly go stale once tool execution begins and the environment responds unpredictably.

Rigid Plan Adherence

A classic failure mode is rigid adherence to a flawed or outdated plan without dynamic checking, leading to wasted execution steps.

Known Uses

The Plan-Then-Execute pattern is widely used across multi-task schedulers and production scaffolds:

References