gilvt
Review guide

How to review what Claude Code and Codex changed

When an agent writes the code, your job shifts to reading it. Most of the time you switch to an IDE for that, then back. This guide covers how to review agent changes turn by turn from the terminal, with git, with the agents' own commands and with gilvt.

Short version: review after every turn, not at the end; start each task from a clean or committed tree so the diff is only the agent's work; use /diff in Claude Code or Codex for the current state and git for history. When you run several sessions, or want to look back at a turn after the session ended, you need per-turn snapshots that are kept for you.

Review each turn, not the whole branch

An agent can change a dozen files in one turn and build the next turn on top of them. If you only look at the final diff, a wrong assumption from turn two is buried under everything that followed. Reading each turn while it is small is faster, and you can redirect the agent before it builds on a mistake.

Each turn, check four things: the commands it ran (and whether any failed), the files it changed, the diff itself, and the result of the verification it claims, such as the test run.

With git

Git works with any agent. Start each task from a committed tree, so the working-tree diff contains only the agent's changes:

git status --short          # what changed, including new files
git diff --stat             # size of the change per file
git diff                    # the changes to tracked files
git diff --word-diff        # word-level changes for prose and config
git add -p                  # accept the turn hunk by hunk

Two habits make this work well. Commit (or stage) what you accept after each turn, so the next git diff is only the new turn. And remember that git diff does not show files that are not tracked yet: new files appear in git status, not in the diff.

With the agents' own commands

Claude CodeCodex CLI
See the changes/diff: the working tree's changes, including Claude's edits so far/diff: the git diff, including files git isn't tracking yet
Have it review/review (alias of /code-review)/review, or codex review --uncommitted
Undo a turnEsc Esc or /rewind: restore code, conversation or both to a checkpointUse git

Claude Code's checkpoints are convenient but are not version control: files changed through Bash commands (rm, mv, cp) and edits made outside the session are not restored. Keep committing. See the checkpointing docs and the Codex slash commands.

Where this gets hard

How gilvt does it

gilvt is a macOS terminal that tracks the Claude Code and Codex sessions running in it. At the start and end of every turn it snapshots the working tree in its own directory (it does not touch .git, the index or your commits), so every turn's changes stay available, including new untracked files.

gilvt's Artifacts tab listing the files a turn changed, with that turn's diff of session.rs open in Quick Look.
The files a turn changed, and that turn's diff, next to the session that made it.
A Markdown design note rendered in gilvt's Quick Look, with a Mermaid architecture diagram.
Documents the agent wrote are shown rendered, Mermaid included.

When you still want the IDE

gilvt covers reading and small edits. It is not an IDE: the editor has no code completion or go-to-definition and no find and replace yet, and text in Quick Look cannot be selected yet. For a larger rework, ⌘⌥O opens the file at the current line in your external editor (VS Code when code is installed). Per-turn snapshots and the Artifacts tab work in git repositories on your Mac; for sessions on SSH hosts, use gilvt diff in the remote shell.

Try it: download gilvt (free, macOS 11 or later), run claude or codex in a git repository, and press ⌥⌘2 after the first turn.