# Codex Prompt Anti-Patterns Avoid these when prompting Codex or GPT-5.4. ## Vague task framing Bad: ```text Take a look at this and let me know what you think. ``` Better: ```xml Review this change for material correctness and regression risks. ``` ## Missing output contract Bad: ```text Investigate and report back. ``` Better: ```xml Return: 1. root cause 2. evidence 3. smallest safe next step ``` ## No follow-through default Bad: ```text Debug this failure. ``` Better: ```xml Keep going until you have enough evidence to identify the root cause confidently. ``` ## Asking for more reasoning instead of a better contract Bad: ```text Think harder and be very smart. ``` Better: ```xml Before finalizing, verify that the answer matches the observed evidence and task requirements. ``` ## Mixing unrelated jobs into one run Bad: ```text Review this diff, fix the bug you find, update the docs, and suggest a roadmap. ``` Better: - Run review first. - Run a separate fix prompt if needed. - Use a third run for docs or roadmap work. ## Unsupported certainty Bad: ```text Tell me exactly why production failed. ``` Better: ```xml Ground every claim in the provided context or tool outputs. If a point is an inference, label it clearly. ```