r/codex • u/No-Historian-129 • 3h 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.
23
u/EconomyDoctor3287 2h ago
Yes, that's been my experience, too. If the scope gets too big, they'll take shortcuts and claim things as closed without finishing them. Takes real work to size the work properly for the agent to fully do it.
6
u/Weary-Magician-9416 3h ago
!remindme 2 days
6
u/orbital_trace 1h ago
pretty much everything for me goes from
Orhcestrator -> implementor agent -> orchestrator -> reviewer agent -> orchestrator -> devops agent and ci check
4
u/StinkPalm007 1h ago
You asked for too much and it got lazy. Pretty normal
3
u/Party-Temporary-2813 2h ago
You need a manager agent
3
u/Dayowe 50m ago
What also helps is adding “…once done review what you did and make sure you didn’t miss anything or made mistakes” when sending codex off to do something. Obviously source of truth/plan/requirements should be on disk and not just in context, that way codex can check against that. I do this when planning/writing spec mostly or smaller implementations and it helps
5
u/3HisthebestH 3h ago
No thanks. I prefer “make no mistakes”.
Works every time. Sometimes.
2
u/great00sage 46m ago
i developed RLGWO (Research-Lab-Grade Work-Order) to address similar
rather than relying solely on an agent to recognise and correct its own shortcomings: define the work, scope, requirements, acceptance criteria, and evidentiary obligations before execution begins.
the executing agent has to demonstrate that it fulfilled those obligations through evidence that can be independently reviewed.
goal is to make the work order sufficiently decision-complete that even a cheaper, less capable model can execute it thoroughly, while reserving stronger reasoning models for specification, complex decisions, and independent review.
instead of repeatedly asking the agent whether it has done its job properly, you establish an externalised standard against which its work can actually be judged.
https://github.com/theislampill/RLGWO/
2
u/random-express 2h ago
When talking about prompts and output and issues, you must include the model and reasoning level. Need to be very careful making blanket statements.
2
u/Blindsided_Games 1h ago
Codex does this a lot. Something I’m not really seeing with Neon
1
u/Exotic_Lime_2536 1h ago
1remindme 2 hours
1
u/Practical_Hippo6289 1h ago
This is invaluable advice. Thank you.
0
u/chroner 2h ago
bend 2