Codex Bug Fix & Refactor
Free★ 4.9⬇ 483👁 1932

Find the root cause, fix, and refactor safely.
The Prompt
Here is failing code and the error. Diagnose the root cause, propose the minimal safe fix, then refactor for readability without changing behaviour. Return a diff, a test that reproduces the bug, and why it happened.
How to use this prompt
- Copy the prompt above with the Copy button.
- Open Codex in your browser or app.
- Paste it, then replace any
[bracketed]placeholders with your own brand, product, or audience. - Run it, review the result, and ask for tweaks (tone, length, style) until it fits.
Tip: keep the structure, swap the specifics. The more precise your details, the better the output.
About Codex
Codex is an AI tool this prompt is tuned for. Paste the prompt above, replace the bracketed details with your brand, and generate on-brand results.