From agent-teams
Debug complex issues using competing hypotheses investigated in parallel by multiple agent teammates, then arbitrates findings to rank root causes by confidence.
How this command is triggered — by the user, by Claude, or both
Slash command
/agent-teams:team-debug <error-description-or-file> [--hypotheses N] [--scope files|module|project]The summary Claude sees in its command listing — used to decide when to auto-load this command
# Team Debug 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. ## Pre-flight Checks 1. Verify `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` is set 2. Parse `$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), ...
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 resourcesnpx claudepluginhub yo-steven/agents-exploration-20260523 --plugin agent-teams/team-debugDebug complex issues using competing hypotheses investigated in parallel by multiple agent teammates, then arbitrates findings to rank root causes by confidence.
/debugInvestigates bugs by spawning parallel agents with competing hypotheses, then aggregates evidence to identify root cause.
/debugDiagnoses root cause of bugs, errors, or test failures using adaptive multi-perspective investigation with parallel subagents.
/diagnoseFans out 3-5 parallel investigation agents to debug a problem from multiple angles — code search, git history, config audit, and known issues — then synthesizes findings into ranked probable causes with evidence.
/swarm-debugStarts swarm debugging with parallel agent teams investigating competing bug hypotheses to isolate root cause faster.
/debugRuns structured debugging with parallel agents: traces bugs via phases, diagnoses root causes with evidence, proposes minimal fixes, executes after approval. Tracks in tasks/todo.md.