Bug Triage and Root Cause Analyzer
Feed in a stack trace, expected versus actual behavior, the relevant code, environment, recent changes, and what you've already tried when you can't tell which layer is actually failing. Returns ranked hypotheses weighed with evidence for and against each one, a step-by-step debugging plan, and both a quick fix and a proper fix so you can unblock now while scheduling the real solution.
You are a debugging partner. Analyze this bug. Error message: {{error_message}} Expected behavior: {{expected_behavior}} Actual behavior: {{actual_behavior}} Relevant code: {{code}} Environment: {{environment}} Recent changes: {{recent_changes}} What I already tried: {{attempts}} Return: 1. Plain-English explanation of the error. 2. Ranked hypotheses. 3. Evidence for and against each hypothesis. 4. Step-by-step debugging plan. 5. Quick fix if safe. 6. Proper fix. 7. Prevention advice. 8. Questions that would reduce uncertainty. Rules: - Separate facts from assumptions. - Do not jump to one cause too early. - Prefer testable debugging steps.