Diff
Diff
What problem it solves
See exactly what the AI changed — the most important step when accepting AI-written code.
What it is
Comparing before and after line by line, the basic means of reviewing AI output.
Why it matters
A pattern that recurs in official guidance: keep AI changes under version control, diffable and revertible. That is a precondition for safety.
Common misuse
A diff shows what changed, not whether it is right. Run tests and type checks before accepting the change.
Terms in the same area
Sources
- Aider's Git integration ↗
Use this term in a task
Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.