26Systems of agents

Plan-and-execute

A planner model writes the whole plan, executors carry out the steps, and the planner replans.

Xu et al., Kim et al., LangChain, Google

writesresultsTaskPlanner, Model callPlannerContextPlanWorker, AgentExecutorAnswer
How to read this

The problem

An agent that plans one step at a time never reasons about the whole task, and each step costs a call.

The LLM only plans for 1 sub-problem at a time. This may lead to sub-optimal trajectories, since it isn't forced to "reason" about the whole task.
LangChainPlan-and-Execute AgentsFeb 13, 2024
current methods for function calling often require sequential reasoning and acting for each function which can result in high latency, cost, and sometimes inaccurate behavior.
Kim et al.An LLM Compiler for Parallel Function Calling

Therefore

the "plan-and-execute" design pattern, which separates an LLM-powered "planner" from the tool execution runtime.
LangChainPlan-and-Execute AgentsFeb 13, 2024
Planner breaks down a task and formulates a blueprint of interdependent plans, each of which is allocated to Worker.
Xu et al.ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models
When replanning, the intermediate results are sent back from the Executor to the Function Calling Planner which then generates a new set of tasks with their associated dependencies.
Kim et al.An LLM Compiler for Parallel Function Calling

In use

Gemini Deep Research

When presented with a complex user query, the system first formulates a detailed research plan, breaking the problem into a series of smaller, manageable sub-tasks.
GoogleGemini Deep Research

Where it breaks

It needs more model calls, and a plan made up front fails when little is known about the environment.

We notice that for certain tasks where little context about the environment is available, fully relying on foreseeable reasoning becomes impractical.
Xu et al.ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models
We think Plan-and-Execute is great for more complex long term planning, at the cost of more calls to the language model.
LangChainPlan-and-Execute AgentsMay 10, 2023

Sources

  1. ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language ModelsXu et al.
  2. An LLM Compiler for Parallel Function CallingKim et al.
  3. Plan-and-Execute AgentsLangChain, Feb 13, 2024
  4. Plan-and-Execute AgentsLangChain, May 10, 2023
  5. Gemini Deep ResearchGoogle

Added Nov 14, 2026