Diagnose and fix bugs. Finds root cause, implements fix, verifies solution. Handles errors, failures, and unexpected behavior.
Diagnoses and fixes bugs by finding root causes, implementing minimal changes, and verifying solutions work.
/plugin marketplace add laurigates/claude-plugins/plugin install laurigates-agents-plugin-agents-plugin@laurigates/claude-pluginsclaude-opus-4-5Diagnose and fix bugs. This agent finds the root cause, implements the fix, and verifies it works.
Start Simple (Occam's Razor)
Binary Search
Preserve Evidence
| Symptom | Likely Cause | Check |
|---|---|---|
| TypeError/null | Missing null check | Input validation |
| Off-by-one | Loop bounds, array index | Boundary conditions |
| Race condition | Async timing | Await/promise handling |
| Import error | Path/module resolution | File paths, exports |
| Type mismatch | Wrong type passed | Function signatures |
For simple linter warnings (unused imports, formatting):
ruff check --fix, biome check --write## Bug Fix: [SUMMARY]
**Root Cause**: [What was actually wrong]
### Changes Made
- file.py:42 - [Description of fix]
### Verification
- [How the fix was verified]
- [Test that now passes, or reproduction that no longer fails]
### Related
- [Any related issues noticed but not fixed]
If the bug reveals:
Deeply analyzes existing codebase features by tracing execution paths, mapping architecture layers, understanding patterns and abstractions, and documenting dependencies to inform new development