Skip to content

difft

Agent-readyGit & GitHubGit

Structural diffs, code reviews, and ast-aware comparisons from the terminal.

Structural diffs, code reviews, and ast-aware comparisons from the terminal. Built by Sourcefrog.

Task fit

structural diffs, code reviews, and ast-aware comparisons from the terminal.

Lane

Review PRs, triage issues, inspect workflows, and keep repo work agent-safe.

Operator brief

Use difft for structural diffs, code reviews, and ast-aware comparisons from the terminal.

Run `difft file-a.ts file-b.ts` and see what comes back.

Repository family

Sourcefrog

First trust check

difft responds locally and is ready for the first real command.

Safe first loop

Install, verify, then run one real command.

GitHub review loop

Install command

$ brew install difftastic

Operator pack

Copy or export the working notes for this CLI before handing it to an agent.

Verify

$ difft --version

difft responds locally and is ready for the first real command.

First real command

$ difft file-a.ts file-b.ts

First steps

  1. 01Install difft.
  2. 02Run `difft --version` first.
  3. 03Start with `difft file-a.ts file-b.ts`.
  4. 04Install the CLI and make sure it is on your PATH.

When to use / hold off when

Best for

structural diffs, code reviews, and ast-aware comparisons from the terminal.

Use this when

You need git workflows in both local dev and CI.

Hold off when

You don't work with git workflows.

Trust and constraints

trusted100/100
Install readyTrusted
JSON outputNo
Non-interactiveYes
CI-friendlyYes

Why operators pick it

  • difft fits git & github well, especially for structural diffs, code reviews, and ast-aware comparisons from the terminal.
  • 2,856 homebrew installs (30d).
  • Easy to automate.

Constraints

  • Output is mostly plain text.

Repository context

Other CLIs in this family

This is the only CLI surfaced from this family right now.

Facts and links

Install withbrew
Homebrew installs (30d)2.9K
GitHub stars24.8K
LicenseMIT
UpdatedMar 23, 2026