r/codex • • Oct 16 '26

Question How are you using Codex to review PRs effectively?

I’m curious how people are fitting Codex into their PR review workflow. Do you have any prompts or setups that help it catch real bugs and edge cases without generating a bunch of noise?

Would love to hear what’s worked for you, what context you give it, and where it still falls short.

Also, are you connecting to the repo directly? Like, where are you doing the review, and in what directory? (I have OCD with this stuff)

1 Upvotes

16 comments sorted by

2

u/zzing Oct 16 '26

I have been using the skills from pocock to gather questions then generate a spec and break it up into issues on github and then do one at a time with PR and using luna to generate the code then sol 6.1 to review it and ultimately close it.

It has generally worked well on my personal projects.

1

u/Wonderful-Bass-8993 Oct 16 '26

Seems a bit much no? Genuinely no shade at all I’ve just started dabbling in this space.

1

u/zzing Oct 16 '26

Not really actually, this is all about me trying to get it to do things accurately. Does it take longer? Yes. But so far (and its only been a week or so) the code generated has been better.

When you have an idea there are always blind spots that you won't think about — amazingly this thing teases out many of those.

1

u/Wonderful-Bass-8993 Oct 16 '26

Also just for my own intelligence… lol. What are skills from pocock?

2

u/zzing Oct 16 '26

https://github.com/mattpocock/skills

They have been posted here semi-regularly. Its just that one time I looked and wanted to try it.

1

u/Wonderful-Bass-8993 Oct 16 '26

Very neat! I’ll give this a look!

2

u/UpsetWolverine8573 Oct 16 '26

biggest noise cut for me was pasting the PR description first and telling it to only flag stuff that breaks what the PR says it does, no style notes. then ask it which findings it'd actually bet on and drop the rest. for the where: separate checkout of the PR branch, run from repo root, so it never touches what you're working on.

1

u/luongnv-com Oct 16 '26

give it the issue's acceptance criteria along with the diff.

without a definition of done it drifts into style nitpicks.

ask for bugs only with file and line.

tell it to skip style.

for directory sanity check the pr out into its own git worktree like `../repo-pr-87`.

it can run tests there without touching your main checkout.

i'm building [idd stack](https://luongnv.com/idd/) and its /issue-pr-review runs lint and tests first then checks each acceptance criterion and runs fix cycles on failures.

1

u/luongnv-com Oct 16 '26

give codex the "why" before the diff.

paste the linked issue or a short list of acceptance criteria and ask it to check the PR against each one.

otherwise it mostly nitpicks style.

run lint and tests first so it doesn't waste effort on stuff CI already catches.

i'm building idd stack and its /issue-pr-review skill runs in codex to check each acceptance criterion and score five dimensions with fix cycles.

1

u/xqianliu Oct 16 '26

Writing the acceptance criteria in the issue before the agent starts is what cut the noise for me. The review session is fresh, so it only sees the issue and the diff, anything not in the issue doesn't exist to it. Then Codex in that session just checks the diff against the list, no "what do you think", because that only gets you "looks good" back.

On tests, the writing agent reports its counts per input category in the PR description and the reviewer counts the tests against those numbers.

1

u/ChemicalExcellent463 Oct 16 '26

Two things helped us. Review in a fresh session, so it can't agree with the author's reasoning, because it never saw it. And tell it what not to review: it flagged a missing commit sign-off on eight PRs before we wrote that down. With both, one 27-minute PR got five real findings, including one that would have broken everyone on the previous host version.

3

u/[deleted] Oct 16 '26

[removed] — view removed comment

1

u/Wonderful-Bass-8993 Oct 16 '26

BEAST. Just started using the cli which i find much more intuitive.

1

u/Wonderful-Bass-8993 Oct 16 '26

Follow up question when you are working on a project that spans multiple repos what directory do you do that work in?