Loading...
Loading...
Compare original and translation side by side
核心理解(铁律):Agent Teams 是"并行处理 + 结果汇总"模式,不是扩大单个 agent 的上下文窗口。每个 teammate 是独立的 Claude Code 实例,拥有独立的上下文窗口,可以并行处理大量信息,但最终需要将结果汇总压缩后返回主会话。
Core Understanding (Iron Rule): Agent Teams follows a "parallel processing + result aggregation" model, not expanding the context window of a single agent. Each teammate is an independent Claude Code instance with its own context window, capable of processing large volumes of information in parallel, but the results must be aggregated and compressed before returning to the main session.
| 适用 | 不适用 |
|---|---|
| 跨文件重构、多维度审查 | 单文件小修改 |
| 大规模代码生成、并行处理 | 简单问答、线性顺序任务 |
| 需要多角色协作的复杂任务 | 单agent可完成的任务 |
| Applicable | Non-Applicable |
|---|---|
| Cross-file refactoring, multi-dimensional review | Small single-file modifications |
| Large-scale code generation, parallel processing | Simple Q&A, linear sequential tasks |
| Complex tasks requiring multi-role collaboration | Tasks achievable by a single agent |
❌ [角色名] 失败: [原因]❌ [Role Name] Failed: [Reason]| 问题 | 路径 |
|---|---|
| Q0: 阶段1找到完全匹配的Skill? | 是 → 场景2 / 否 → Q1 |
| Q1: 任务复杂度? | 简单(1-2步) → 场景1 / 中等(3-5步) → 场景3 / 复杂(6+步) → Q2 |
| Q2: 需要明确团队分工? | 是 → 场景4 / 否 → 场景5 |
| Question | Path |
|---|---|
| Q0: Is a fully matching Skill found in Phase 1? | Yes → Scenario 2 / No → Q1 |
| Q1: Task complexity? | Simple (1-2 steps) → Scenario 1 / Medium (3-5 steps) → Scenario 3 / Complex (6+ steps) → Q2 |
| Q2: Clear team division required? | Yes → Scenario 4 / No → Scenario 5 |
| # | 场景 | 适用条件 | 核心策略 |
|---|---|---|---|
| 1 | 提示增强 | 简单任务,1-2步 | 优化单agent提示词,不拆分不组队 |
| 2 | Skill直接复用 | 任务可由单个Skill完全解决 | 执行规划和Skill搜索后,直接调用匹配的Skill,无需组建Agent Teams |
| 3 | 计划+评审 | 中等/复杂任务(默认) | 出计划 → 用户确认 → 并行执行 → Review验收 |
| 4 | Lead-Member | 需要明确团队分工 | Leader协调分配,Member并行执行,通过TaskList协同 |
| 5 | 复合编排 | 复杂任务,无固定模式 | 动态组合上述场景,按阶段切换策略 |
modelopushaikusonnet| # | Scenario | Applicable Conditions | Core Strategy |
|---|---|---|---|
| 1 | Prompt Enhancement | Simple tasks, 1-2 steps | Optimize single-agent prompts, no splitting or team formation |
| 2 | Direct Skill Reuse | Tasks that can be fully resolved by a single Skill | After executing planning and Skill search, directly call the matching Skill without forming Agent Teams |
| 3 | Planning + Review | Medium/complex tasks (default) | Create plan → User confirmation → Parallel execution → Review and acceptance |
| 4 | Lead-Member | Clear team division required | Leader coordinates and assigns tasks, Members execute in parallel, collaborate via TaskList |
| 5 | Composite Orchestration | Complex tasks with no fixed pattern | Dynamically combine the above scenarios and switch strategies by phase |
modelopushaikusonnet| 模式 | 通信方式 | 适用场景 | 启动方式 |
|---|---|---|---|
| Subagent | 子agent → 主协调器单向汇报 | 并行独立任务 | |
| Agent Team | 成员间可双向通信(SendMessage) | 需要协作的复杂任务 | |
| Mode | Communication Method | Applicable Scenarios | Initiation Method |
|---|---|---|---|
| Subagent | One-way reporting from sub-agent to main coordinator | Parallel independent tasks | |
| Agent Team | Two-way communication between members (SendMessage) | Complex tasks requiring collaboration | |
Skill(skill="planning-with-files")task_plan.mdfindings.mdprogress.md铁律:没有task_plan.md就不能开始执行。这是Manus工作流的核心,确保上下文持久化。
Skill(skill="planning-with-files")task_plan.mdfindings.mdprogress.mdIron Rule: Execution cannot start without task_plan.md. This is the core of the Manus workflow, ensuring context persistence.
| 字段 | 内容 |
|---|---|
| 任务目标 | [一句话描述] |
| 预期结果 | [具体交付物] |
| 验收标准 | [可量化的通过条件] |
| 范围界定 | [must-have vs add-later] |
| 预计Agent数 | [N个,建议≤5] |
| 选定场景 | [场景编号+名称] |
| 协作模式 | [Subagent/Agent Team] |
[Skill: skill-name]Skill(skill="find-skills", args="子任务关键词")npx skills add <owner/repo@skill-name> -g -yTask[Type: general-purpose]铁律:这3步必须全部执行完才能进入阶段2。不允许跳过find-skills搜索。
| Field | Content |
|---|---|
| Task Objective | [One-sentence description] |
| Expected Outcome | [Specific deliverables] |
| Acceptance Criteria | [Quantifiable passing conditions] |
| Scope Definition | [must-have vs add-later] |
| Estimated Number of Agents | [N, recommended ≤5] |
| Selected Scenario | [Scenario number + name] |
| Collaboration Mode | [Subagent/Agent Team] |
[Skill: skill-name]Skill(skill="find-skills", args="subtask keywords")npx skills add <owner/repo@skill-name> -g -yTask[Type: general-purpose]Iron Rule: All 3 steps must be completed before entering Phase 2. Skipping the find-skills search is not allowed.
| 编号 | 角色 | 职责 | 模型 | subagent_type | Skill/Type |
|---|---|---|---|---|---|
| 1 | [角色名] | [具体职责] | [opus/sonnet/haiku] | [agent类型] | [Skill: name] 或 [Type: general-purpose] |
说明:最后一列标注该角色使用的Skill名称(阶段1已匹配)或通用类型(fallback)。
| Number | Role | Responsibility | Model | subagent_type | Skill/Type |
|---|---|---|---|---|---|
| 1 | [Role Name] | [Specific responsibilities] | [opus/sonnet/haiku] | [Agent type] | [Skill: name] or [Type: general-purpose] |
Note: The last column indicates the Skill name used by this role (matched in Phase 1) or general type (fallback).
SkillSkill(skill="skill-name", args="任务描述")Task✅ [角色名] 完成: [一句话结果]general-purposeSkill| 模式 | 流程 | 适用场景 |
|---|---|---|
| 协调器直调 | 协调器 → | 单步Skill任务,无需并行 |
| 委派式调用 | 协调器 → | 并行多个Skill,或Skill耗时较长 |
| 团队成员调用 | | 需要成员间协调的复杂任务 |
Skill(skill="skill-name", args="task description")Task✅ [Role Name] Completed: [One-sentence result]| Mode | Process | Applicable Scenarios |
|---|---|---|
| Direct Call by Coordinator | Coordinator → | Single-step Skill tasks that do not require parallel execution |
| Delegated Call | Coordinator → | Multiple Skills executed in parallel, or time-consuming Skills |
| Team Member Call | | Complex tasks requiring coordination between members |
| 项目 | 内容 |
|---|---|
| 总任务数 | X个,成功Y个,失败Z个 |
| 各Agent结果 | [角色]: [状态] - [关键产出] |
| 汇总结论 | [综合所有结果的最终结论] |
| 后续建议 | [当前未覆盖但值得做的改进方向] |
| Item | Content |
|---|---|
| Total Tasks | X tasks, Y succeeded, Z failed |
| Results of Each Agent | [Role]: [Status] - [Key Output] |
| Summary Conclusion | [Final conclusion integrating all results] |
| Follow-up Recommendations | [Improvement directions not covered currently but worth implementing] |
Skill(skill="planning-with-files")Skill(skill="find-skills", args="...")Skill(skill="planning-with-files")Skill(skill="find-skills", args="...")| 故障类型 | 处理策略 |
|---|---|
| Agent执行失败 | 通知用户,提供重试/跳过/终止选项 |
| Skill不可用 | 按回退链降级:本地Skill → find-skills → 通用subagent |
| 模型超时 | 调整任务复杂度或拆分为更小的子任务 |
| 质量不达标 | 打回修改最多2轮,仍不通过则人工介入 |
| 上下文溢出 | 拆分为更小的子任务,分批执行 |
| Fault Type | Handling Strategy |
|---|---|
| Agent Execution Failure | Notify the user, and provide options for retry/skip/termination |
| Skill Unavailable | Degrade according to the fallback chain: Local Skill → find-skills → General subagent |
| Model Timeout | Adjust task complexity or split into smaller subtasks |
| Quality Not Up to Standard | Send back for revision up to 2 rounds; if still not passing, notify the user for manual intervention |
| Context Overflow | Split into smaller subtasks and execute in batches |