AI coding · Version control
Diff
Also called: Changes, Patch, Code diff, Changeset
The difference between two versions of code, usually shown with deleted lines in red and added lines in green, so you can quickly see what changed.
In detail
A diff is like "Track Changes" in a document. You don't reread the whole thing. You just look at what's crossed out in red and what's added in green. After an AI coding tool changes code, it usually shows the changes as a diff and lets you accept or reject them. Git's git diff command also shows changes you haven't committed yet.
Even if you can't understand every line, looking at the diff catches a lot of problems: more files changed than expected, a big chunk of unrelated code deleted, or changes to files you said not to touch.
A handy habit: have the AI make small changes so each diff stays short enough to read. When a change is too big, first have it explain what changed in each file, then apply them one at a time.
Developer infoTerm ID, DOM cues, match priority
- Term ID
ai-diff- DOM selectors
- No DOM cues. This concept isn't detected directly on a page.
- Priority
- 1 · when several match at the same level, the higher priority wins
- Version
- v1 · updated Sep 29, 2026