When should you use it?
- Coding agents open more pull requests than you can read line by line
- Agent reviewers keep approving changes that later turn out bloated
- You want to know what is entering your codebase before you merge it
Not for: Security audits or compliance reviews that require a full line-by-line read; Tiny changes you can read faster than you can question an agent; Teams with no one who knows what the feature was meant to cover
What do you need, and what do you get?
You need
- The pull request or diff, readable by a new agent session
- A one-line statement of what the change was supposed to do
- What you know about the roadmap, such as planned integrations or limits like a single region
You get
- A neutral inventory of the change grouped by type, with no verdict
- A list of items whose purpose the agent could only describe vaguely
- Answers to your follow-up questions, each tied to a file, line or test
- A short list of pieces to remove or simplify before merging
How does it work, step by step?
- Start cleanOpen a new agent session with no history from the session that wrote the code.
- Ask for facts onlyPaste the original prompt and get the inventory before any opinion about quality.
- Mark the fuzzy linesRead the report slowly and flag every table, job, setting or library whose reason sounds generic.
- Press on each oneAsk who needed it, why existing code could not do the job, and which test proves the behavior.
- Add what it can't knowTell the reviewer your scope and plans, then ask which parts fall outside them.
- Trim, then mergeHave the implementing agent remove what could not be justified and rerun the tests.
The prompt
The original prompt by u/EstablishmentGood414 on r/codex, word for word, with a link to where it was published. Below it is our adapted version with fill-in blanks, if you want it. Works in Claude Code, ChatGPT, Claude and others. Values in lime are placeholders.
Original prompt by u/EstablishmentGood414 on r/codex
Read this PR and give me a report on exactly what it changes. List: - Database schema changes (new tables, columns, indexes, migrations) - Scheduled job / cron / background worker changes - A summary of every feature added or modified - New external services, APIs, or third-party libraries - New environment variables or config flags - New public endpoints or interfaces - Anything deleted or deprecated Don't judge the code yet. Just tell me what it does.
Exactly as published by u/EstablishmentGood414 on r/codex in Don't Review Agent Code. Interrogate It..
Our adapted version (optional)
Fill in the blanks (optional; the copied prompt uses your values)
You are reviewing a pull request written by a coding agent for {project}. The change was meant to do only this: {intended_scope}. First, inventory the change without evaluating it. Group what you find under: data model and migrations, scheduled or background work, behavior added or changed, new dependencies or outside services, new settings or flags, new endpoints or interfaces, and anything removed. Cite the file for each item. Then list every item that is not clearly needed for the intended scope, and for each one give the concrete reason it exists or say that you cannot find one. Context you cannot see in the code: {product_context}. For input validation, name the line where bad input is rejected and the test that covers it. Do not approve or praise the change; I will decide after reading your answers.
What can go wrong?
- Agents tend to agree with the first challenge. Keep asking for the concrete reason, not the apology.
- The report can be long and still miss something. Compare it with the file list in the diff.
- Questioning replaces skimming, not testing. Keep your automated tests and a manual check of the feature.
- Without your product context the reviewer will keep defending generic flexibility. Say plainly what is out of scope.
Our take
The most useful observation in this post is not the prompt but the failure it describes: two agents reviewing each other approved thirty pull requests in a row, and the feature still came back bloated. A reviewer with no idea why the change exists will polish names and suggest tests, but it rarely asks whether a whole component should be there at all. Splitting the work into a neutral inventory first and a cross-examination second fixes that, because the human supplies exactly what the model lacks, the scope and the plan. We like that the opening prompt forbids judgment; reports that begin with praise make it harder to spot the odd new table or setting. Our cautions are practical. This is a scope check, not a security review, so keep tests and access controls in place, and compare the inventory against the actual file list in case the report skips something. In our dry run on a fictional booking app, the inventory surfaced a new status table, a nightly cleanup job and an unused configuration flag; pressed for reasons, the reviewer conceded that only the alert itself had been requested, and the trimmed change kept one notification call and its test.
Where the time goes back: You learn what a large agent-written change really adds in a few minutes of questions, and you catch unneeded code before it becomes something you maintain.
FAQ
Do I still read any code?
Why a fresh agent instead of the one that wrote it?
Does this work with Claude Code and Codex?
Source and credit
The original prompt on this page is by u/EstablishmentGood414 on r/codex, shown word for word with a link to where it was published. The summary, notes and adapted version are ours.
- Original
- Don't Review Agent Code. Interrogate It.
- Creator
- u/EstablishmentGood414 on r/codex
- Published on
- Original date
- Oct 29, 2026
- License
- Not openly licensed; the original prompt is shown word for word with credit and a link to the original
- Originally for
- Custom agent
- AI dry run
- Nov 1, 2026: passed. Dry-run tested by our AI test agent on sample input. Facts-first inventory with no verdict, vague items surfaced, every justification tied to a file or test, over-built parts identified for removal.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Nov 1, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.