Debug issues using competing hypotheses with parallel investigation by multiple agents
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-agents-e5a64e1a324a ,按照其中的说明把「team-debug」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Debug complex issues using the Analysis of Competing Hypotheses (ACH) methodology. Multiple debugger agents investigate different hypotheses in parallel, gathering evidence to confirm or falsify each one.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set$ARGUMENTS:
<error-description-or-file>: description of the bug, error message, or path to a file exhibiting the issue--hypotheses N: number of hypotheses to generate (default: 3)--scope: investigation scope — files (specific files), module (module/package), project (entire project)Generate N hypotheses about the root cause, covering different failure mode categories:
Present hypotheses to user: "Generated {N} hypotheses. Spawning investigators..."
TeamCreate tool to create the team with team_name: "debug-{timestamp}" and descriptionAgent tool to spawn a teammate:
name: investigator-{n} (e.g., "investigator-1")subagent_type: "agent-teams:team-debugger"prompt: Include the hypothesis, investigation scope, and relevant contextTaskCreate for each investigator's task:
Compare findings across all investigators:
Rank confirmed hypotheses by:
Present root cause analysis:
## Debug Report: {error description}
### Root Cause (Most Likely)
**Hypothesis**: {description}
**Confidence**: {High/Medium/Low}
**Evidence**: {summary with file:line citations}
**Causal Chain**: {step-by-step from cause to symptom}
### Recommended Fix
{specific fix with code changes}
### Other Hypotheses
- {hypothesis 2}: {status} — {brief evidence summary}
- {hypothesis 3}: {status} — {brief evidence summary}
shutdown_request to all investigatorsTeamDelete to remove team resources