Diff
A diff is a display of changes: the old lines of a file next to the new ones, marked with what was removed and what was added. An agent shows the diff before writing to a file, so the person sees the difference and decides whether to confirm it. This is how an edit is reviewed before it has changed anything.
Frequently asked questions
What is a diff?
A display of the difference between the old and new version of a file.Why look at the diff before writing?
To see what exactly will change and refuse while the file is untouched.How do you read a diff?
Lines with a minus are removed, lines with a plus are added, the rest stay as they were.Read more: Codex CLI not available in your country: supported countries, VPN and bans
Where it appears · 4
- Codex CLI not available in your country · Harness
- Codex vs ChatGPT · Harness
- AI agent maturity levels · Specs and context
- MCP for an AI agent · Harness