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
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.
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.
Therefore
the "plan-and-execute" design pattern, which separates an LLM-powered "planner" from the tool execution runtime.
Planner breaks down a task and formulates a blueprint of interdependent plans, each of which is allocated to Worker.
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.
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.
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.
We think Plan-and-Execute is great for more complex long term planning, at the cost of more calls to the language model.
Sources
- ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language ModelsXu et al.
- An LLM Compiler for Parallel Function CallingKim et al.
- Plan-and-Execute AgentsLangChain, Feb 13, 2024
- Plan-and-Execute AgentsLangChain, May 10, 2023
- Gemini Deep ResearchGoogle
Added Nov 14, 2026