# 计划-执行型智能体

计划-执行型智能体（plan-and-execute agent）是一种面向基础模型的智能体架构：规划器模型先把用户目标拆解为一份有序的步骤清单，执行器负责把这些步骤付诸实施（通常借助工具），而当执行失败或出现意料之外的情况时，由重规划器修订剩余步骤。它最常被拿来与 ReAct 循环对照——后者在每一步都把思考、行动与观察交替穿插。

## 关键事实

| 事实 | 细节 |
|---|---|
| 最早的学术锚点 | Wang 等，《先规划再求解提示法》（arXiv:2305.04091，ACL 2023）把“先拟一份计划，再把它执行出来”与一次性思维链区分开来<sup>[1](https://aipatternbook.com/plan-and-execute)</sup> |
| 规划器-执行器路线（前有 HuggingGPT） | ReWOO（Xu 等，arXiv:2305.18323，2023），其中推理不再重新进入循环<sup>[1](https://aipatternbook.com/plan-and-execute)</sup><sup> • </sup><sup>[9](https://arxiv.org/abs/2303.17580)</sup> |
| 并行执行 | LLMCompiler（Kim 等，arXiv:2312.04511，2023）增加了有向无环图（DAG）执行器，可并行运行彼此独立的步骤<sup>[1](https://aipatternbook.com/plan-and-execute)</sup> |
| 定名之作 | LangChain 的博客文章《计划-执行型智能体》（2024 年 2 月 13 日）确立了规划器／执行器／重规划器三种角色<sup>[1](https://aipatternbook.com/plan-and-execute)</sup> |
| 头条数字（论文自报） | LLMCompiler 对比同等条件的 ReAct 智能体：延迟最低降至原来的 1/3.7，成本最低降至原来的 1/6.7，准确率最多高出 9%<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup> |
| 网页智能体结果（论文自报） | Plan-and-Act（2025）：WebArena-Lite 上成功率 57.58%，WebVoyager 上 81.36%<sup>[3](https://proceedings.mlr.press/v267/erdogan25a.html)</sup> |
| 成本交叉点 | 计划-执行在 15–20 步左右开始划算；3–4 步的任务上 ReAct 更便宜<sup>[1](https://aipatternbook.com/plan-and-execute)</sup> |

## 什么是计划-执行型智能体

这一架构把 ReAct 智能体在单一循环里完成的三种工作拆了开来。在 ReAct（Yao 等，arXiv 2210.03629，ICLR 2023）中，模型把思考、行动与观察交替进行，只有看到上一步的结果之后才决定下一步<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup>。而在计划-执行中，规划器预先铺排出全部步骤，执行器则逐个执行，不必每做一个动作都去请示大模型<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup>。

这一模式是一个两阶段循环：规划器产出一份带明确依赖关系的有序步骤清单；执行器逐步运行（通常借助工具）并累积结果；一旦失败或出现意外，智能体便带着上下文中的新证据重新规划<sup>[4](https://github.com/agentpatternscatalog/patterns/blob/main/patterns/plan-and-execute.md)</sup>。第三种角色——重规划器——在每一步之后通览完整历史，决定是按原计划继续、改写剩余步骤，还是宣布任务完成<sup>[5](https://jacar.es/en/planning-and-task-decomposition-in-agents/)</sup>。

其动因在于：ReAct 式的智能体让单个模型负担过重——它必须拆解指令、规划动作、以正确的参数调用工具、对观察结果进行推理并调整计划，而较小的语言模型往往难以覆盖如此宽泛的职能<sup>[6](https://github.com/krasserm/bot-with-plan/blob/master/README.md)</sup>。

## 起源与命名

这条谱系贯穿 2023 至 2024 年的四座里程碑。Wang、Xu、Lan、Hu、Lan、Lee 与 Lim 在《先规划再求解提示法》（arXiv:2305.04091，ACL 2023）中提出了这一提示变体<sup>[1](https://aipatternbook.com/plan-and-execute)</sup>。Xu、Peng、Lei、Mukherjee、Liu 与 Xu 提出了 ReWOO（arXiv:2305.18323，2023），这是规划器-执行器分工的早期形式化，其中推理与观察结果相互解耦——而在此之前，[HuggingGPT](https://www.edgepedia.org/zh/hugginggpt) 已于 2023 年 3 月描述过“先任务规划、后执行”的做法<sup>[1](https://aipatternbook.com/plan-and-execute)</sup><sup> • </sup><sup>[9](https://arxiv.org/abs/2303.17580)</sup>。Kim、Moon、Tabrizi、Lee、Mahoney、Keutzer 与 Gholami 提出了 LLMCompiler（arXiv:2312.04511，2023），其 DAG 执行器解析依赖关系并并行运行彼此独立的步骤<sup>[1](https://aipatternbook.com/plan-and-execute)</sup>。LangChain 于 2024 年 2 月 13 日发布的博客文章为这一架构定下现名，确立了规划器／执行器／重规划器三种角色，并给出了首批被广泛引用的、与 ReAct 对比的成本与延迟测量<sup>[1](https://aipatternbook.com/plan-and-execute)</sup>。

## 架构如何运作

**规划器与执行器不必是同一个模型。** bot-with-plan 项目把规划器的职责收窄到只做任务描述与工具选择，不涉及任何函数调用的细节，并表明这样做能让从未在函数调用上微调过的 70 亿参数模型给出有用的规划；在一个 50 条请求的测试集上，一个经过微调的 8 比特量化 70 亿参数规划器取得 0.88 ± 0.02 的通过率与 0.09 ± 0.01 的坏任务率，而 GPT-4 为 0.91 ± 0.03 与 0.07 ± 0.01（项目自报）<sup>[6](https://github.com/krasserm/bot-with-plan/blob/master/README.md)</sup>。

Plan-and-Act（2025，PMLR 第 267 卷）单独训练其规划器，采用一种合成数据生成方法，为真实轨迹标注可行的计划，因为大模型本身并非为生成计划而训练；其执行器则把计划翻译成环境相关的具体动作<sup>[3](https://proceedings.mlr.press/v267/erdogan25a.html)</sup>。

**重规划**是实践中占主导的变体：智能体拟出计划，执行一批步骤，然后带着结果再次调用规划器以调整剩余部分<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup>。在重规划变体中，执行器汇报各步骤的结果（包括失败），规划器生成更新后的计划，只有受影响的下游步骤被修订（已完成的成果得以保留），并以迭代次数上限防止重规划陷入死循环<sup>[7](https://agentwiki.org/plan_and_execute_agents)</sup>。

## 实测效果

以下所有头条数字均为论文或框架自报；现有资料中没有完全独立的第三方评测。

- LLMCompiler 对比同等条件的 ReAct 智能体，测得延迟最低降至原来的 1/3.7、成本最低降至原来的 1/6.7、准确率最多高出 9%<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup>。
- LangChain 公布的测量显示，在计划保持稳定的任务上，规划器词元开销降至 ReAct 的三分之一到五分之一<sup>[1](https://aipatternbook.com/plan-and-execute)</sup>。
- Plan-and-Act 报告在 WebArena-Lite 上取得 57.58% 的当前最佳成功率，在 [WebVoyager](https://www.edgepedia.org/zh/webvoyager) 上取得纯文本条件下当前最佳的 81.36%<sup>[3](https://proceedings.mlr.press/v267/erdogan25a.html)</sup>。
- 规划器调用是每项任务固定的成本：计划-执行在十五到二十步左右开始划算，超过五十步则占据明显优势；而在三到四步的任务上 ReAct 更便宜<sup>[1](https://aipatternbook.com/plan-and-execute)</sup>。

## 何时使用，以及与 ReAct 的比较

在路径事先未知的探索性任务上，ReAct 更胜一筹，因为当下一步取决于新发现时，一开始就固定下来的计划会过时<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup>。计划-执行适合那些能拆解为大致独立步骤、且环境稳定的任务；当每一步的结果都会实质性地改变下一步（那属于 ReAct 的地盘）、当任务只有单一步骤、或当步骤构成带占位符的 DAG 时，它就不太合适——后一种情形更适合 ReWOO 或 LLMCompiler<sup>[4](https://github.com/agentpatternscatalog/patterns/blob/main/patterns/plan-and-execute.md)</sup>。当任务包含若干依赖关系清晰的步骤且目标稳定时，规划是划算的，因为计划能减少调用次数并让方向保持不偏<sup>[5](https://jacar.es/en/planning-and-task-decomposition-in-agents/)</sup>。

多数生产级智能体系统并不排他地选用某一种模式：要么用一个小的路由模型对进来的任务分类并分派给合适的模式，要么——更常见的是——外层循环用计划-执行（把目标分解为子目标），每个子目标再用 ReAct 求解<sup>[8](https://buildingagenticai.com/blog/react-vs-plan-and-execute/)</sup>。Anthropic 的《构建高效智能体》提醒说，智能体系统常常以延迟和成本换取更好的任务表现，并建议从简单处起步（厂商建议）<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup>。

## 谁在用它

BabyAGI（中岛洋平〔Yohei Nakajima〕）开创了一种动态变体：任务队列被持续重新生成——由一个任务创建智能体根据执行结果生成新任务，再由一个优先级排序智能体重新排序，而不是预先造出一份固定计划<sup>[7](https://agentwiki.org/plan_and_execute_agents)</sup>。LangGraph 的计划-执行教程让这一架构可以在单个交互式笔记本里端到端搭起来，使其成为 2025–2026 年间事实上的参考实现<sup>[1](https://aipatternbook.com/plan-and-execute)</sup>。[OpenAI Agents SDK](https://www.edgepedia.org/zh/openai-agents-sdk) 允许开发者构建经典的 ReAct 智能体，或通过交接（handoff）把规划器智能体与执行器智能体串联起来<sup>[2](https://jacar.es/en/plan-and-execute-versus-react/)</sup>。

## References

1. Plan-and-Execute — Encyclopedia of Agentic Coding Patterns. https://aipatternbook.com/plan-and-execute
2. Plan-and-Execute versus ReAct — Jacar. https://jacar.es/en/plan-and-execute-versus-react/
3. Plan-and-Act: Improving Planning of Agents for Long-Horizon Tasks (PMLR v267, 2025). https://proceedings.mlr.press/v267/erdogan25a.html
4. patterns/plan-and-execute.md — Agent Patterns Catalog. https://github.com/agentpatternscatalog/patterns/blob/main/patterns/plan-and-execute.md
5. Planning and Task Decomposition in Agents — Jacar. https://jacar.es/en/planning-and-task-decomposition-in-agents/
6. bot-with-plan: separating planning from function calling in ReAct-style agents. https://github.com/krasserm/bot-with-plan/blob/master/README.md
7. Plan and Execute Agents — AI Agent Knowledge Base. https://agentwiki.org/plan_and_execute_agents
8. ReAct vs Plan-and-Execute: Which Agent Pattern — Building Agentic AI. https://buildingagenticai.com/blog/react-vs-plan-and-execute/
9. HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face, https://arxiv.org/abs/2303.17580

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Prompting, reasoning, and agents

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/plan-and-execute-agents

English original: https://www.edgepedia.org/plan-and-execute-agents
