Loading...
Loading...
Compare original and translation side by side
TeamCreateTaskCreategeneral-purposeTaskteam_namerace-condition-investigatordata-corruption-investigatorSendMessageTeamCreateTaskCreateteam_nameTask通用型race-condition-investigatordata-corruption-investigatorSendMessageUse subagents (tool) to keep your context focused. Spawn subagents for:Task
- Exploring specific files, modules, or subsystems
- Searching through git history, logs, or large codebases
- Any research tangent that might not pan out
Each subagent should report back:
- Relevant findings — what it discovered that matters to your investigation
- Red herrings (1-2 sentences) — anything that looks related but isn't, and why. Calling these out early prevents wasted cycles re-exploring dead ends.
Report red herrings even when your main findings are conclusive — they prevent other agents from re-exploring the same dead ends.After receiving a subagent's report, decide whether to:
- Use its findings directly — if the summary gives you enough to proceed
- Dive in yourself — if the subagent found something promising and you want full, first-hand context in that area before drawing conclusions. Examples: conflicting evidence that needs direct examination, low confidence in the subagent's assessment, or complex state/flow where first-hand context matters.
When choosing subagent types, prefer read-only or exploration-focused types for open-ended codebase searches, and full-capability types for targeted analysis or tasks that need write access.
使用子Agent(工具)来保持你的上下文聚焦。 在以下场景生成子Agent:Task
- 探索特定文件、模块或子系统
- 搜索Git历史、日志或大型代码库
- 任何可能没有结果的研究分支
每个子Agent应反馈:
- 相关发现 —— 与你的调查相关的内容
- 干扰项(1-2句话)—— 任何看起来相关但实际无关的内容,以及原因。尽早指出这些内容可以避免重复探索死胡同的无效工作。
即使你的主要结论已经确定,也要报告干扰项——这可以防止其他Agent重复探索相同的死胡同。收到子Agent的报告后,决定:
- 直接使用其发现 —— 如果摘要足够让你继续推进
- 亲自深入研究 —— 如果子Agent发现了有希望的线索,而你需要该领域完整的一手上下文才能得出结论。例如:需要直接检查的矛盾证据、对子Agent评估结果信心不足,或需要一手上下文的复杂状态/流程。
选择子Agent类型时,对于开放式代码库搜索,优先选择只读或专注于探索的类型;对于针对性分析或需要写入权限的任务,选择全功能类型。
undefinedundefinedundefinedundefinedvalidatorvalidator