VibeDict

Diff

Diff

A comparison view that shows what was removed (red, -) and what was added (green, +) in your code.

💡 It's 'Track changes' in a document. Deleted text gets crossed out, and new text gets highlighted.

🤖 Say this to your AI

Before you change the code, show me the changes as a diff first. Explain in one line why each change is needed, and apply it after I confirm.

The key word is ‘Diff’. Including it helps AI understand you much more precisely.

📌 Good to know

If the diff is hundreds of lines, don't accept it all at once. Say 'split it into small steps and do them one at a time'. It's much easier to find problems that way.

When to use it

  • When the AI edits code and asks you to 'Accept / Reject'
  • When you want to check what the AI changed
  • When you look at the changes in a PR

Also called: diff, changes, what changed, accept, reject, accept changes, red and green lines, compare changes

Related terms