analyze_bug
Identify a bug's root cause by analyzing symptoms, logs, and stack traces. Returns a structured hypothesis with evidence, severity, priority, and fix recommendations.
Instructions
Analyze symptoms, stack traces, logs, and source to find the root cause of a bug. Returns a structured prompt that yields a hypothesis with evidence, severity, priority, recommended fix, and prevention actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | No | Relevant log excerpts (trim to the bug window). | |
| symptom | Yes | What the user / monitor observed. Include error messages verbatim. | |
| stackTrace | No | Stack trace, if any. | |
| environment | No | Deployment env, version, traffic profile, recent changes. | |
| sourceContext | No | Source snippets of the suspected code paths. |