Accept the change you asked for, not every change present
After this, you'll be able to inspect a Codex diff, separate intended edits from incidental changes, and stage only accepted work.
Before you start
Complete Run the proof loop first.
The idea
Diff review is where you take ownership back. Codex can make the patch, but you decide what belongs in the commit.

Here is the before and after: before, Codex is guessing from a loose request. After, you can inspect a Codex diff, separate intended edits from incidental changes, and stage only accepted work.
Now try it use the exercise prompt on one real repo task. Keep the output small enough to check before you accept the change.
You are ready when the Codex action, boundary, and proof all match the task.
Try it (14 min)
Watch out for
Paste this into Claude
Review this Codex diff summary: Task: [original task] Changed files: [paste file list] Proof run: [paste commands and results] Unexpected changes: [paste any surprise, or write none] Return: 1. Files to stage. 2. Files to revert or inspect. 3. One question for Codex if the diff is unclear. 4. Commit message only if the diff is ready.
What a good response looks like
Stage src/app/profile/page.tsx and src/lib/profile.ts. Inspect package-lock.json because dependency changes were not in scope. Ask Codex why tests changed. Do not commit until the package lock reason is accepted or reverted.
What good looks like
When this breaks
AI can help with this
Use Codex to help you you can inspect a Codex diff, separate intended edits from incidental changes, and stage only accepted work. Start with the exercise prompt and your real input. Ask for one draft, then check it against this proof: Intended files are separated from incidental changes. Accept only the version you can verify yourself.

You can now
You can review behavior, scope, and proof
Key takeaways
Codex writes the patch. You own the commit. Stage only the change that solves the task and passes proof.
Go deeper