| name | debug-bug |
|---|---|
| description | Fix bugs in Codex by enforcing reproduction first, tracing the failing path with minimal reads, applying the smallest safe fix, and re-running the repro and relevant tests. |
| compatibility | Codex CLI with terminal access, git, tokenlean CLI (npm i -g tokenlean) |
No fix without reproduction.
Reproduce -> Localize -> Trace -> Fix -> Verify
tl run "<repro command>" # Capture the actual error outputCapture exact command, error output, and exit code. If no repro command is given, ask for one.
tl parallel \
"errors=tl errors" \
"blame=tl blame <file>" \
"history=tl history <file>"If the error includes a stack trace, start at the top project frame.
tl parallel \
"flow=tl flow <function> <file>" \
"deps=tl deps <file>" \
"snippet=tl snippet <function> <file>"Apply the minimal change that resolves the root cause. Then check for side effects:
tl parallel "guard=tl guard" "impact=tl impact <file>"tl parallel "repro=tl run '<repro command>'" "tests=tl run 'npm test'"- Distinguish symptom fixes from root-cause fixes.
- Prefer deterministic repros over intermittent observations.
- Use
tl parallelto run all context-gathering commands simultaneously. - Check
tl difffor recent regressions — the bug may be in the last few commits.