codex_debug
Perform structured root-cause analysis: generate hypotheses, test against code and web sources, and deliver a verdict with evidence chain. Use for hard-to-find bugs and unexpected behavior.
Instructions
Structured root-cause analysis via GPT Codex. Multi-turn: Codex generates hypotheses, tests them against the code and web sources, then delivers a verdict with evidence chain. Can take minutes. Use for hard-to-find bugs, unexpected behavior, or production incidents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symptoms | Yes | Error messages, stack traces, unexpected behavior, or failing test output | |
| code | No | Relevant code to investigate (file contents, snippets) | |
| context | No | Additional context (what changed, environment, prior investigation) | |
| max_turns | No | Maximum investigation turns (default: 3, max: 5). Each turn deepens the analysis | |
| working_dir | No | Project working directory for Codex file access and implicit session key | |
| timeout | No | Timeout in milliseconds (default: 120000, max: 600000) | |
| session_id | No | Optional session key to isolate conversation history across concurrent clients | |
| model | No | Optional Codex model override for this request | |
| retries | No | Retry count for transient Codex errors (default from env or 1, max: 10) | |
| retry_backoff_ms | No | Base retry backoff in milliseconds (default from env or 500, max: 60000) |