Skip to content
Agentic Levels

Everything starts here.

GuestLocal progress only
PreferencesSign in
01Start with one taskBest first move for beginners.02Check your LevelMeasure where you are.03Score an AI resultFind the habit to practice first.04Return to Your WorkScores, links, and checkpoints.
Start here

Begin

HomeThe main entry point.New to AIStart with one useful task.
Know where you are

Measure

Check your LevelUse this after you have tried AI.Fluency ScoreScore an AI result you can review.
Build the habit

Learn

LevelsLessonsTracks
Find the reference

Library

PromptsReferenceResourcesCompare Tools
Turn it into work

Apply

Your Next MoveChoose what AI should change next.Tool SetupGet the tools ready.
Come back later

Return

Your WorkScores, links, and checkpoints.My PathContinue from your level.Updates
Site

Site

PricingAboutFAQ & FeedbackPreferences

© 2026 Fuentes Studio

Privacy·Terms
yourCouncil
Ready to help
✦

What do you want to understand?

Ask anything about what you're learning.

Tracks›Codex Fundamentals
L5Lesson 2Free

Review diffs before commit

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.

One blank diff card sits beside three separated blank piles for intended, incidental, and reject changes.
One blank diff card sits beside three separated blank piles for intended, incidental, and reject changes.
Review FlowMove through Review diffs before commit, check proof, then fix only the weak part.
yesnorun it again
StartBegin with the real task
Review diffs before commitAfter this, you'll be able to inspect a Codex diff, separate intended edits from
1Proof visible?Intended files are separated from incidental changes
Ready to useReview one Codex diff and decide what to stage, inspect, or reject
Fix the weak partBreaks when an unrelated cleanup ships with the bug fix and creates a second

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

  • Staging every file because the main behavior works.
  • Ignoring package manager lockfile changes.
  • Accepting test edits that reduce coverage.
  • Letting generated files into the commit without the generator command.

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.

Created by potrace 1.16, written by Peter Selinger 2001-2019 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.

Created by potrace 1.16, written by Peter Selinger 2001-2019 What good looks like

  • Intended files are separated from incidental changes
  • Generated, dependency, auth, data, or config changes are inspected
  • The proof matches the staged change
  • The commit message is withheld when the diff is not ready

When this breaks

  • Breaks when an unrelated cleanup ships with the bug fix and creates a second regression.
  • Breaks when a generated artifact is hand-edited and later overwritten.

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.

The diff splits into intended, incidental, and reject piles before staging.

Created by potrace 1.16, written by Peter Selinger 2001-2019 You can now

✓

You can review behavior, scope, and proof

  • ✓You can stage part of a Codex change
  • ✓You can spot incidental churn
  • ✓You can withhold commit until the diff is ready

Key takeaways

Codex writes the patch. You own the commit. Stage only the change that solves the task and passes proof.

  1. 1Review behavior first, scope second, proof third.
  2. 2Good and bad changes can appear in the same diff.
  3. 3Generated and dependency files need a reason.
  4. 4A commit should be smaller than the agent run when the run wandered.

Created by potrace 1.16, written by Peter Selinger 2001-2019 Go deeper

  • Codex app review

Was this helpful?

Up nextUse mobile review without losing control→

Related lessons

Open the right repo before you askUse mobile review without losing control
← Back to Codex Fundamentals