第4章 精通 · 把 agent 变成团队 · 第1节 · 45 分钟
1. 多个 agent 协作
本关目标:掌握任务拆分与交接物设计
未完成
为什么拆多 agent:上下文隔离(一个会话只装一件事,互不污染)和并行(互不依赖的事同时跑)。
拆分原则:按交接物拆,不按工种拆。先定义中间产物(一份文件、一个清单),每个 agent 负责产出它。
交接物三要素:明确的文件名、明确的格式、明确的完成标准。下游拿到不需要追问,才算合格的交接。
最简起步:两个会话 + 一个中间文件。不需要任何框架——把「团队协作」还原成「文件传递」,先跑通再优化。
闯关任务
- 把一个任务拆给两个 agent(或两个会话),用中间文件交接完成。
- 完成判据:交接物有明确的名字、格式和完成标准
- 完成判据:下游没有追问就完成了任务
本关 4 个 Skill(含依据)
D
dispatching-parallel-agents
社区 · AI · 免费收录
Use when facing 2+ independent tasks that can be worked on witho
⭐ 219k 安装 · ✓ 3步可用
S
subagent-driven-development
社区 · 编程 · 免费收录
Use when executing implementation plans with independent tasks i
⭐ 238k 安装 · ✓ 3步可用
E
executing-plans
社区 · AI · 免费收录
Use when executing an implementation plan in the current session
⭐ 244k 安装 · ✓ 3步可用
U
using-git-worktrees
社区 · 编程 · 免费收录
Use when starting feature work that needs isolation from current
⭐ 218k 安装 · ✓ 3步可用