← Back to library

Question an agent's pull request instead of skimming reviews

u/EstablishmentGood414 described on r/codex how agent-on-agent code reviews kept approving over-built pull requests, and how a facts-first report followed by pointed questions catches scope creep without reading every line. We explain the method and show the opening prompt word for word with credit.

  • OutcomeHave a fresh agent list every concrete change in an agent-written pull request (schema, scheduled jobs, features, new services, settings, endpoints and removals) without judging it, then press it on each item you cannot explain, give it the product context it lacks, and cut whatever nobody can justify before you merge.
  • SetupMinutes
  • LevelIntermediate
  • Creditu/EstablishmentGood414 on r/codex
View original
Works with
Claude CodeChatGPTClaudeCustom agent

Published Nov 1, 2026Updated Nov 1, 2026AI dry run on sample input: passed Nov 1, 2026Source verified Nov 1, 2026

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?

  1. Start cleanOpen a new agent session with no history from the session that wrote the code.
  2. Ask for facts onlyPaste the original prompt and get the inventory before any opinion about quality.
  3. Mark the fuzzy linesRead the report slowly and flag every table, job, setting or library whose reason sounds generic.
  4. Press on each oneAsk who needed it, why existing code could not do the job, and which test proves the behavior.
  5. Add what it can't knowTell the reviewer your scope and plans, then ask which parts fall outside them.
  6. 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

Word for wordby 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)

Adapted prompt3 variables
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?
Only the parts the questions point to. The author says the method lets him understand what goes in without reading most of the diff, and the answers should cite exact lines you can open.
Why a fresh agent instead of the one that wrote it?
The author of the change already believes in it. A new session describes what is there without defending earlier choices.
Does this work with Claude Code and Codex?
Yes. The post comes from Codex users and mentions Claude cross-reviews; any coding agent that can read a pull request can produce the inventory.

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
Reddit
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.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecuritySkill✓ AI dry run

Make your coding agent write the behavior before the code

Add a short standing rule to your coding agent's project file so every user-facing change starts as plain-language scenarios, becomes a failing test and only then gets the smallest code change that makes it pass.

Credit: u/cannyshammy on r/ClaudeCode

Minutes
IT & SecurityWorkflow✓ AI dry run

Distill agent sessions into shared memory every night

Save each completed agent session to its own transcript file, have one analyzer agent per transcript verify, enrich and organize small linked memory files, run an organizer once to merge duplicates and keep an index current, then attach the store to the agent's next session with read access only and repeat the pass nightly on new sessions.

Credit: Anthropic

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Put a reviewer AI between your agent and anything it sends

Let a long-running personal agent act on your behalf while a separate model checks every outgoing message, post or code push, and dangerous commands are blocked.

Credit: Justin Headley

An afternoon+
IT & SecurityRoutine✓ AI dry run

Schedule a daily repo brief that reports, not edits

Skip the morning scramble of figuring out where a project stands, using a scheduled agent that summarizes what changed and what needs attention, without touching code.

Credit: Developers Digest

Under an hour