Fast, robust, accurate content-aware diffing.
Supports code in 26 languages, images, fonts, PDFs, archives, and more.
Most diffs under 100 milliseconds on a T14s laptop from 2023.
See it in the browser: real changes to
code, PDFs, fonts, archives and pictures on one page, each shown as Unix diff reports it and as
OmniDiff does, recorded from the command-line tool, in a theme of your choice. The animation below
is recorded from that page.
curl -fsSL https://ivankovic.github.io/omnidiff/install.sh | sh
omnidiff BEFORE AFTER # the interactive viewer; press ? for the keys
omnidiff git configure # then: git difftool
The installer uses Homebrew where you have it and the signed apt repository on Debian and Ubuntu
(it asks before adding the repository's key), and otherwise unpacks the prebuilt binary under
~/.local, without root. There are also cargo install, a Nix flake, and extensions for
VS Code and
Neovim.
docs/README.md has every way to install.
- Interactive viewer:
omnidiff BEFORE AFTER, oromnidiff --reviewto pick from a repository's unstaged files, staged files and recent commits. - Plain text:
omnidiff --headless BEFORE AFTER, stacked or side by side, for scripts, CI and pagers. It is chosen automatically when stdout is not a terminal. - JSON:
omnidiff --mode json BEFORE AFTER, one object described by a JSON Schema, for editor integrations. - git:
omnidiff git configuresets it up asgit difftool, and optionally forgit diffandgit log -p. - jj:
omnidiff jj configuresets it up as ajj diffformatter. - lazygit: as the diff renderer of lazygit's main view.
docs/README.md describes each of these, and lists the supported languages and formats. A file OmniDiff has no grammar for is diffed as plain text, line by line, so nothing is refused.
| Using OmniDiff | Installation, the viewer, headless and JSON output, git, jj, lazygit and editor integration, supported content |
| Testing | The corpus of real changes and its human ground truth; the speed, robustness and accuracy goals and where OmniDiff stands against each; how to run the tests |
| What real-world changes look like | What commits in 7,444 repositories change, and how large the files and the edits are |
| Comparison with other tools | Unix diff, git diff, BDiff, nvim -d, GumTree, difftastic, diffsitter and srcDiff on the same changes, and OmniDiff against an external oracle |
| Contributing | Technology, code quality, project structure, Makefile targets, CI. AGENTS.md has additional AI-agent-specific conventions |
| Packaging | Package-manager recipes and the release checklist |
| Research | The corpus, the measurements over it, the analysis scripts and the papers |
This project uses substantial AI assistance, currently Claude Code. Most commits disclose this
with a Co-Authored-By trailer and a link to the session that produced them. This project does not
hide that fact. This project does not treat AI assistance as a lesser way to write software.
Contributions are not accepted at this time, to keep the development speed high (see CONTRIBUTING.md). When that changes, AI-assisted contributions will be as welcome as any other, disclosed the same way: whoever submits the work is responsible for understanding it and standing behind it.
Copyright (C) 2026 Marko Ivankovic
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
See the LICENSE file for the full text of the License.
A commercial license is available as a monthly subscription through GitHub Sponsors. It covers internal use of omnidiff by your organisation without the source-disclosure obligations of the AGPL. The terms are in LICENSE-COMMERCIAL. Pick the tier that names the commercial license as a benefit. For invoicing or other arrangements, contact me at [email protected].
