多智能体不总是更聪明:谷歌研究发现可拆分任务提升 80.8%,链式任务反而差 70%
Google Cloud 发布五个有研究支撑的 agent 编排模式。最值得记住的是:任务可并行时,agent 团队最高好 80.8%;每步依赖前一步时,反而差 39% 到 70%。附一条可直接用的 prompt。
Google Cloud 发了一篇多智能体协作指南,作者是 YK Sugi。文章给出了五个有研究支撑的 agent 编排模式,附带可直接用的 prompt。现在很多团队靠 vibe 编排 agent,这篇的价值在于把判断依据和数据摆出来了。
真正有意思的是开头那组数据:任务能干净拆分时,agent 团队比单个 agent 最高好 80.8%;任务是链条式、每步依赖前一步时,反而差 39% 到 70%。
结论先放这:别把“多智能体”当成默认选项。它只在任务能拆成独立部分时占优。依赖关系一多,每传递一次就丢一点上下文,团队不如一个人。
这里说的 agent,指能自己调用工具、改代码的 AI 编程代理。Google Cloud 这篇指南适用于 Antigravity、Claude Code,或其他 coding agent。
五个模式:
Builder + Verifier
构建和验证分开。一个 agent 负责改,另一个在新的线程里只读检查 diff 是否符合要求。模型在同一线程里审自己的产出,会倾向于认可自己。研究也显示,模型很难在没有外部反馈的情况下修正自己的推理。
适用:重要改动。小改动或者有测试兜底,自审足够。
Lanes
任务按目录或领域拆成互不重叠的轨道,比如 web/、api/、docs/ 各一个 subagent,互不碰对方文件。2026 年一项 652 个编码任务的研究发现,两个 agent 改重叠代码的成功率,比一个 agent 同时做两个任务低约 30%。谷歌和 MIT 的研究则显示,可拆分的金融任务上 agent 团队高 80.8%,而计划类任务上差 39% 到 70%。
适用:能干净切分的并行工作。小 bug 修复不要用。
Best of N
同一个任务跑多个并行尝试,用测试集或 eval 选最优。DeepMind 的 AlphaCode 就是这个思路。2024 年的研究里,有自动检查的任务,pass rate 随尝试次数持续上升;真实 GitHub issue 从一次尝试的 15.9% 升到 250 次的 56%。没有自动检查时,多数投票或评分模型在约 100 次后不再提升。
适用:有明确自动评估的任务。
Council of Models
多个模型独立给方案,然后换一批评审在不知道作者的情况下打分,最后合并最强思路。没有测试或自动检查的架构、设计问题适合这个模式。研究显示,多个模型的组合打分超过单个前沿模型;不同模型组成的评审团比单个大 judge 更接近人类判断。
适用:架构、视觉设计等没有客观标准的决策。
Team of Reviewers
多个只读评审并行,每人只管一个角色:UX、简洁性、边界情况、安全。1995 年的人类评审研究发现,各管一种错误类型的团队比用同一份通用清单的团队多发现约 35% 的问题。LLM judge 研究也得到类似结论。修完再换新评审复查,直到全部通过。
适用:PR 合并前的检查环节。
五个模式可以混搭。Google Cloud 原文附了流程图和更多 prompt。
一个现成的用法:X 用户 namcios 把这份指南做成了一条 prompt,可以直接让 Claude Code 在 .claude/skills/ 里配置这五个模式,并提示何时该用哪个模式、何时单个 agent 更合适。完整 prompt 如下:
read this Google Cloud article: https://x.com/googlecloud/status/2123428849262248255 (if you can't open it, use the summary below)
set up this repo to run agent teams with its 5 patterns, as skills in .claude/skills/:
1. builder + verifier: after any change that matters, a fresh read-only subagent checks the diff does what I asked
2. lanes: split work across parallel subagents only when it divides cleanly by folder (e.g. web/, api/, docs/), each one edits only its own files. keep step-by-step work and small bug fixes in one thread
3. best of N: when there are tests or evals, run several attempts in parallel worktrees and let the tests pick the winner
4. council: for calls with no automatic check (architecture, design), get independent proposals, have fresh judges score them with authors hidden, then merge the best ideas
5. reviewer team: before a PR, run parallel read-only reviewers for UX, simplicity, edge cases and security, fix what they find and repeat with fresh reviewers until all approve
add a short rule for when to use each pattern and when a single agent is better. show me the plan before changing anything
有网友说,这是 Brooks 定律的 AI 版:只有能并行时,加人才有效;每步依赖上一步时,转手就是损失。也有网友提醒,agent 团队需要有人对最终结果负责,否则协调就是没有会议纪要的会议。
原文:Google Cloud: 5 agent orchestration patterns backed by research
Prompt 来自:namcios 的推文
发布时间: 2026-11-20 20:02