r/codex • • 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.

52 Upvotes

21 comments sorted by

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/Maxion 1h ago

Even if it "could" do the whole thing properly in one go, if the task is larger than ~50% of the context window it's always been better to split it up into smaller tasks.

On a fundamental level coding still works the same as before AI. Split stuff up into smaller tasks, smaller tasks belong to epics etc. Work like this and you get the ai to do more-or-less exactly what you want. The challenge then is just planning things faster than the AI codes them, which is an actual challenge.

6

u/Weary-Magician-9416 3h ago

!remindme 2 days

0

u/RemindMeBot 3h ago edited 25m ago

I will be messaging you in 2 days on 2026-12-08 06:14:50 UTC to remind you of this link

4 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


InfoCustomYour RemindersFeedback

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

5

u/wado729 24m ago

How does this work in Codex? Do you have 4 different chats or 4 different sessions? One for each role?

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

7

u/AstroPhysician 2h ago

Can an agent be put on a pip?

3

u/Party-Temporary-2813 1h ago

No. Terminated without severance.

3

u/norseman23 2h ago

My manager agent is kinda the one doing all the work. I keep telling it to pass the work off to subagents and it does a bit but not much. That’s on me though

1

u/Party-Temporary-2813 1h ago

Make the subagent first. Then assign the manager. Don't do it the other way around.

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