From context-engine
Something is broken. Uses parallel hypothesis testing via Agent Team for complex bugs, or single `debugger` subagent for simple ones.
npx claudepluginhub littlelingo/context-engine --plugin context-engine# /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 ...
/debugDebugs issues using scientific method with subagent isolation and persistent sessions. Supports list/status/continue subcommands and --diagnose flag for root cause reports.
/debugDiagnoses Claude Office add-in deployment issues like stale configs, connection failures, missing add-ins, and auth errors via admin triage playbook.
/debugRuns autonomous bug-hunting loop with scientific method and autoresearch iterations to find all bugs. Supports --fix, --scope, --symptom, --severity, --iterations flags.
/debugSystematically debugs code issues via reproduce-isolate-analyze-hypothesize-test-fix process, delivering step-by-step plans, root causes, fixes, prevention, and regression tests.
/debugInvokes oac:debugger skill to diagnose bugs, test failures, or unexpected behavior exactly as specified, before any fix proposals.
/debugOrchestrates four specialist agents to systematically debug a code task description, producing problem analysis, refined hypotheses, diagnostic plan, and user confirmation request.
Share bugs, ideas, or general feedback.
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