Why prefer a diff over a full-file rewrite for edits?
- Diffs run faster on the server
- Diffs are required by the API
- Diffs save tokens and make intent surgical
- Diffs prevent hallucination entirely
Show answer and solution
Correct answer: C. Diffs save tokens and make intent surgical
Sending only changed lines is cheaper and the intent is unambiguous
whole-file rewrites burn tokens and obscure what changed.