Skip to content

Review code changes

1:39 · 4 chapters ·

Claude Code edits the files in your project folder and commits nothing. lpm shows every change it made as a diff right next to the terminal, so you can read each line, undo a file you don't want, and commit the rest from the same window.

Transcript

The narration, chapter by chapter. Pick a time to play from there.

Ask Claude for a change

Claude just edited your code. Read every change in lpm, undo what you don't want, and commit the rest. Here's storefront, a small coffee shop. Click Claude in the header, ask it for a free shipping note on the page and in the README, and send it. Claude edits the files right in your project folder, and the sidebar shows it working. It commits nothing, so every change waits for you.

See every change in one view

When it's done, click the three dots above the terminal, and choose Review changes. Next time, Command Shift R opens it straight away. Every change is in one view, file by file. On each changed line, red is how it was, and green is what Claude wrote.

One file at a time

On the right are the files that changed, each marked M, for modified, and the number on Changes counts them. Click a file to see just that one: its diff, or switch to File to read the whole file.

Undo one file, commit the rest

Don't want the README change? Hover it, and click the undo arrow. Confirm with Discard, and the file is back the way it was. The rest looks good, so click Commit in the footer, type a message, and commit it. The list is empty: the change is committed, and there's nothing left to review. So whatever an agent changes, you can read it, undo what you don't want, and commit the rest, without leaving lpm.

More in AI coding agents and Git

All lessons