intentdiff is built for agents like Codex, Claude Code, Cursor, Aider, and other AI coding assistants that need to explain what changed after editing code.
AI agents often make noisy diffs:
intentdiff converts that noisy text diff into review events:
formatting_only
moved_unchanged
moved_modified
probable_rename
import_reorder
literal_changed
operator_changed
textual_change
unknown
That makes it useful for final responses, PR summaries, CI checks, and self-review loops.
After making code changes:
intentdiff --meaningful-only
For structured reasoning:
intentdiff --format json
For CI gates:
intentdiff --check --meaningful-only
For hidden-noise explanations:
intentdiff --explain-hidden
Use this in an agent instruction file:
Before summarizing code changes, run `intentdiff --meaningful-only`.
Use its output to distinguish formatting-only edits, moved code, probable renames,
and meaningful changes. Do not claim runtime behavioral equivalence from
formatting or syntax-level classifications.
Use:
intentdiff --format json
Important fields:
summary.meaningful_eventssummary.formatting_only_eventssummary.moved_unchanged_eventsfiles[].changes[].kindfiles[].changes[].confidencefiles[].changes[].evidenceAgents must not say “no behavioral change” solely because intentdiff reports formatting_only. The correct phrasing is:
No syntax-level change detected under the selected intentdiff rules.
Behavioral significance is not formally proven.