Diff Digest’s command-line launcher opens two local text files in a dedicated graphical diff window. It uses the rich diff classifier locally, without importing a repository or connecting a Git provider. Your original files are left unchanged.
Install Diff Digest for macOS, open the app, then choose File → Install diff-digest command…. Use a build that includes this menu item; update the app if it is missing.
The menu installs ~/.local/bin/diff-digest. If your terminal cannot find the command, add this line to your shell startup file—for example, ~/.zshrc for zsh or ~/.bash_profile for a Bash login shell—then open a new terminal:
Check the installation:
Compare the original file on the left with the modified file on the right:
Keep the terminal command running until that specific comparison closes:
Give temporary files readable labels, and use -- to separate flags from filenames:
Relative paths resolve from the terminal’s current directory. Quote paths containing spaces. Each invocation opens its own comparison window; the app starts automatically if necessary.
Without --wait, the launcher returns after capturing the inputs and loading the comparison window; classification may still be finishing. With --wait, use Close comparison or close that window to release the command. Closing the main application window is separate from finishing a comparison.
If you prefer to invoke the bundled launcher directly, the standard Applications-folder path is:
The packaged app includes its runtime; you do not need to install Ruby, Node, Homebrew, or a developer toolchain.
If you move the app after installing the command, remove its old launcher symlink and reinstall from the app’s File menu. Updating the app in place preserves the launcher path. Installing the command does not edit your shell startup files or Git configuration.
A Windows package and native CLI launcher are not available in the current implementation. There are no supported PowerShell, Command Prompt, or Windows Git Bash invocation instructions yet.
A Linux package and CLI launcher are not available in the current implementation. The macOS launcher is tied to the macOS application bundle and cannot be used as a Linux executable.
The download page identifies macOS as available and Linux/Windows as upcoming.
First confirm that diff-digest --help works in your terminal. Then run:
Git supplies the original and modified file snapshots through $LOCAL and $REMOTE. Keep --wait so each file review finishes before Git advances to the next file.
Use the default tool with:
To use this configuration only in one repository, run the two configuration commands inside that repository without --global.
Git normally asks before launching a comparison. To disable those prompts persistently:
This sets the default viewer for git difftool. Continue using that command to launch the graphical viewer; git diff still produces its normal terminal output. There is no system-wide “default diff application” setting installed by the launcher.
Other editors or tools that support a two-file external viewer can call the diff-digest executable with --wait -- ORIGINAL MODIFIED, substituting their own original/modified placeholders. This integration is read-only, so configure it as a comparison tool rather than a merge editor.
See Git’s difftool documentation for Git’s revision arguments, path selection, and tool configuration.
These are actual macOS comparison-window captures using a small Ruby invoice example.

The original is on the left and the modified version is on the right. Syntax coloring, line numbers, operation markers, and changed fragments distinguish the rounded total from the newly added overdue? method. Each CLI comparison has its own Close comparison action.
Click the context-expansion control below the displayed code to reveal surrounding unchanged lines.

The same comparison after expanding context: the unchanged paid? method and closing lines are now visible on both sides.
Capture note: these screenshots use the installed Diff Digest 0.3.20 comparison, with its missing comparison stylesheet bundle loaded to preview the source fix. The source layout has been corrected and verified; the installed app needs a rebuilt version to include that fix automatically.
The current CLI is focused on graphical file review. Its additional capabilities are:
Git review workflows: inspect unstaged changes, staged changes, individual paths, and changes between commits through git difftool. Git prepares each pair of files; no repository import is required.
Rich operation classification: use the existing diff classifier to distinguish substantive edits from operations such as moves and repeated replacements, rather than relying only on added/deleted lines.
Expandable context: reveal unchanged surrounding code inside the comparison.
Independent comparison windows: open multiple comparisons without replacing an existing review. Waiting is tied to the individual comparison.
Custom labels: --left-label and --right-label make generated or temporary filenames easier to understand.
Empty-side comparisons: use an empty file or /dev/null to inspect a whole-file addition or deletion:
Help and version: --help lists the supported flags; --version reports the installed app version. Neither starts the application.
Automation-friendly lifecycle: --wait supports tools that need to wait for a review to close, and interruption releases that comparison without terminating unrelated reviews.
Inputs must be two UTF-8 text files, up to 10 MiB per file, and within the classifier’s changed-line and context-line limits. Empty files are supported. Directories, binary files, invalid UTF-8, and oversized inputs are rejected.
The CLI does not currently accept a patch or piped standard input, print a terminal diff, compare directory trees, edit source files, resolve merges, calculate Diff Delta, or infer AI authorship from arbitrary file contents. It does not provide CLI commands for repository import, activity browsing, pull-request management, or the desktop app’s other screens. GIT_EXTERNAL_DIFF integration is also outside the current command contract.
0: successful comparison lifecycle, whether the files differ or are identical.
1: operational failure, including closing a comparison before processing finishes.
2: invalid command usage.
130: interrupted command.
A nonzero result does not mean “the files differ.” This is a graphical review tool, so both identical and different files can return success.
Verified November 23, 2026 against the CLI implementation, desktop README, command installer, and installed app’s help/version output. The stylesheet fix passed the comparison controller and browser tests: 11 tests, 58 assertions, no failures.