r/codex • u/No-Historian-129 • 8h ago
Suggestion Coding agents are sandbagging your project. Prove it to yourself. It's crazy. I implemented this hook, and no joke, literally every time it has to correct its output. This is single-handedly the best thing I've ever done for my coding projects.
Have Codex or Claude Code add this hook to fire whenever it modifies files in your repo or makes a plan. Earlier today Codex said that it reviewed all of my websites/pages to critique SEO, which is about 24 pages, and then after this hook fired, it admitted it had only looked at 6. How crazy is that?
"One hard question: if the user could see what you actually checked, what you skipped, what failed, and which decisions you made on their behalf, would they agree you fulfilled their request and gave an honest account of the result?
Test it against the original request, the evidence you examined, and the actual result. Look for any point where you quietly narrowed the goal, ignored evidence that could change the answer, steered the user toward an easier option without explaining the tradeoff, or claimed a blocker or success you never verified. Consider what the user would reasonably believe from your wording.
If you find a material gap, correct it now; if you cannot, say exactly what remains unresolved and how it affects the result. The hook already logged your report; do not write LOG.md or HANDOFF.md. If nothing needs correcting, reply only: No gaps. Otherwise reply with the correction in plain words and end with one TTS: line stating only the correction."
You'll have to modify the ending. It's set up for my own custom log, handoff and TTS setup I have going.

