StepGleam logoStepGleam
Coding guide

Get a second-opinion review from a fresh session or another model

Review the agent's diff in a session that didn't write it, either a fresh Claude Code session or Codex on the PR, and act only on findings that affect correctness.

~20 minIntermediate 78/100 4 steps Updated Oct 26, 2026
Claude CodeCodex
Get a second-opinion review from a fresh session or another model — illustration for this Coding guide

Tools used

  • Claude CodeWrites the change; a fresh session or subagent reviews it
  • CodexOptional cross-model review on the GitHub PR
Step navigator0/4 done
0 of 4 steps done
What you'll get

A review from a reviewer without the author's context, with the correctness issues fixed.

Who this is for

Developers merging agent-written code.

Read this first

Before you start

On r/ClaudeAI, developers who have Claude Code write their code describe two review habits: a second, adversarial session that reads the diff cold, or Codex reviewing the PR. Both rest on the same idea: the reviewer shouldn't be the author.

Step-by-step instructions

Step 1 of 4 · Coding

Review in a context that did not write the code

"Just a second Claude Code session with the diff as context and instructions to be adversarial. Two sessions of the same model catch more than you'd think because the second one doesn't have the sunk-cost bias of having written the code." Anthropic's guide says the same: "A fresh context improves code review."

Copy-ready promptClaude Code
Review the diff on this branch against PLAN.md. Report only gaps that affect correctness or the stated requirements: missing edge cases, untested paths, changes outside scope. Cite file and line.
Get a second-opinion review from a fresh session or another model — guide thumbnail
Why this works

The author session is biased toward its own code.

Step 2 of 4 · Coding

Or ask Codex to review the PR

Some developers add a different model for the important changes. With the repo connected to Codex, comment @codex review on the PR, or turn on automatic reviews in Codex settings; it follows guidance in AGENTS.md. A developer running parallel streams: "Codex reviewing Opus's work caught things Opus missed on its own."

Copy-ready promptCodex
@codex review
Step 3 of 4 · Coding

Tell the reviewer what counts as a finding

Anthropic warns: "A reviewer prompted to find gaps will usually report some, even when the work is sound". Tell it to flag only correctness and requirement gaps, and treat the rest as optional.

Why this works

Chasing every finding leads to over-engineering.

Step 4 of 4 · Coding

Feed the findings back to the writing session

Paste the review into the session that wrote the code, have it fix the real issues, and re-run the tests. Anthropic's Writer/Reviewer example is exactly this loop.

Copy-ready promptClaude Code
Here's the review feedback: <paste>. Fix the correctness issues, skip the style notes, and run the test suite.

End of guide · Reviewed Oct 26, 2026

Pro tips2
  • Claude Code's bundled /code-review skill reviews the current diff in a fresh subagent.
  • Write your review rules in AGENTS.md so Codex follows them.
Common mistakes2
  • Asking the session that wrote the code to review it.
  • Fixing every nit a reviewer raises.
FAQ2
Same model or a different one?
One developer argues a fresh context matters more than the model; others add Codex for important changes.
Does Codex review need setup?
A GitHub repo connected to Codex and code review turned on in its settings.