Diffs

Outsource your coding, but not your understanding of the code.

As agents generate larger quantities of code, it is more important than ever for humans to comprehend the code to ensure its quality.

You can now review any thread's code changes directly in Amp, on desktop or mobile.

While a thread has an active environment, you can scroll through the diff, request changes on specific sections, and stage changes interactively:

Some care and attention has gone into the diffing algorithm, which performs duplicate block detection to make it easier to see what has actually changed. This can significantly reduce cognitive load when reviewing large agent-generated changesets.

Here is an example where Amp (left) makes it easier to see that the only thing that has changed is the removal of the if-branch of the conditional:

Amp's diff highlighting for duplicated code
Ours
GitHub's diff highlighting for duplicated code
Theirs

If you drive your threads primarily from the terminal, use the command palette (Ctrl-O) to open the diff for your current thread in your browser:

Open thread in browser shortcut