// Use for systematic debugging and root cause analysis with Codex. Triggers on "codex debug", "codex root cause", "have codex investigate this bug", "codex find the issue".
| name | codex-debug |
| description | Use for systematic debugging and root cause analysis with Codex. Triggers on "codex debug", "codex root cause", "have codex investigate this bug", "codex find the issue". |
Systematic debugging and root cause analysis with Codex (gpt-5.2).
xhigh (debugging requires deep analysis)
Debug this issue systematically.
Issue: <description>
Error/Symptoms:
<error messages, behavior>
Relevant Code:
<file contents>
Please:
1. Identify possible causes
2. Analyze each potential root cause
3. Determine the most likely cause
4. Suggest a fix
codex exec -c model_reasoning_effort="xhigh" "<prompt>"**Codex Debug Analysis:**
**Issue Summary:**
[What's happening]
**Root Cause Investigation:**
[Step-by-step analysis of potential causes]
**Most Likely Cause:**
[Primary hypothesis with evidence]
**Recommended Fix:**
[Specific fix with code if applicable]
**Session ID:** [id]