From context-engine
Something is broken. Uses parallel hypothesis testing via Agent Team for complex bugs, or single `debugger` subagent for simple ones.
How this command is triggered — by the user, by Claude, or both
Slash command
/context-engine:debugThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /debug - Diagnose and Fix a Bug Something is broken. Uses parallel hypothesis testing via Agent Team for complex bugs, or single `debugger` subagent for simple ones. ## Process 1. **Understand the problem**: Get the error message, failing test, or symptom from `$ARGUMENTS`. 2. **Check known errors**: Read `.context/errors/INDEX.md` for matching signatures. Also check `.context/errors/detail/` for deeper analysis of past errors. If INDEX.md is empty (no errors indexed yet), proceed directly to investigation — this is the first error. - If found: present the known fix (include detail ...
Something is broken. Uses parallel hypothesis testing via Agent Team for complex bugs, or single debugger subagent for simple ones.
Understand the problem: Get the error message, failing test, or symptom from $ARGUMENTS.
Check known errors: Read .context/errors/INDEX.md for matching signatures. Also check .context/errors/detail/ for deeper analysis of past errors. If INDEX.md is empty (no errors indexed yet), proceed directly to investigation — this is the first error.
.context/metrics/HEALTH.md immediately.Decide investigation mode:
debugger subagent.Agent Team for complex bugs:
Checkpoint: Create checkpoint CP-NNN: pre-debug-team [symptom] ONLY if work was done since the last checkpoint.
Create an agent team to investigate and fix the bug: [error/symptom].
Spawn 2-3 hypothesis investigators:
Each investigator:
.context/errors/INDEX.md for related past issuesThe lead synthesizes findings, identifies the root cause from the strongest evidence, and applies the fix.
Branch check: If on main/master, create a fix/[bug-name] branch before applying any changes.
Review the fix: Present findings and fix to user. Confirm acceptable.
Verify: Re-run failing command. Run full test suite.
Reflect (YOU write directly — captures are mandatory, not delegated. Use formats from .claude/instructions/CAPTURE-FORMAT.md):
.context/errors/INDEX.md (complex bugs also get .context/errors/detail/ERR-NNN.md).context/knowledge/LEARNINGS.md.context/patterns/ANTI_PATTERNS.md.context/metrics/HEALTH.md error counters: increment "Total errors indexed", "Novel errors" (or "Error index hits" if known), recompute "Hit rate"Next steps:
Bug fixed and captured to error index.
Commit + PR? (y / commit-only / continue / /research [topic] for deeper fix)
If debugging interrupted an active PRP, suggest: Resume with /implement [PRP path] or /resume.
.context/errors/./refactor.$ARGUMENTS
npx claudepluginhub littlelingo/context-engine --plugin context-engine/debugDiagnoses deployment issues for a Claude Office add-in — stale config, connection failures, missing add-in. Routes by symptom and reads error pastes to identify root causes.
/debugRuns autonomous bug-hunting loop with scientific method and autoresearch iterations to find all bugs. Supports --fix, --scope, --symptom, --severity, --iterations flags.
/debugDebugs issues using a scientific method with subagent isolation, supporting subcommands to list, view status of, or continue debugging sessions.
/debugInvokes oac:debugger skill to diagnose bugs, test failures, or unexpected behavior exactly as specified, before any fix proposals.
/debugGuides methodical problem investigation with a 6-step debugging process: reproduce, isolate, analyze, hypothesize, test, and fix. Produces root cause analysis, fix recommendations, and prevention strategies.
/debugOrchestrates four specialist agents to systematically debug a code task description, producing problem analysis, refined hypotheses, diagnostic plan, and user confirmation request.