omnidiff README

The project's README from github.com/ivankovic/omnidiff. As one markdown file: README.md.

OmniDiff

CI Latest release docs.rs coverage License: AGPL v3

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.

An animation of OmniDiff on five kinds of file, a caption over each screen. A Python refactoring
as Unix diff marks it, whole lines deleted and inserted, is wiped over by OmniDiff's reading of the
same two files, which paints only the parts that changed. Then OmniDiff's viewer shows a PDF page
before and after with the one renamed box outlined, and that changed area alone; a web font's
twenty redrawn icons in a grid, each change outlined; a bitmap picture side by side with its one
changed region outlined; and a thumbnail picture inside an OpenDocument archive. Last, the PDF's
change as the plain-text report that git, scripts and pipes get.

Quick start

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.

Using OmniDiff

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.

Deeper dives

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

AI policy

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.

License

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.

Cannot use AGPL software?

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].

omnidiff (ivankovic/omnidiff)

neovim
Searching Database…

What is this?OmniDiff is a fast, content-aware diff tool that understands what it's comparing: it parses code structurally for 25 languages, and diffs images, fonts, archives, PDFs, cursors and message catalogs by their actual content instead of raw bytes.
Is this a GUI app or a command-line tool?It's a command-line tool with an interactive terminal UI (TUI) for reviewing diffs, plus a headless/batch mode that prints plain text for scripts and CI.
How do I install it and use it with git?Build from source with cargo, grab a prebuilt binary from GitHub releases, or install via Homebrew, a signed apt repo (Debian/Ubuntu), or Nix. Run the interactive setup wizard to configure it as your git difftool, then use git difftool to open the TUI.
Does it diff everything equally well?No - it claims 98%+ near-perfect accuracy for code, pictures, cursors and fonts, but PDFs are harder: only 57% perfectly accurate, with fewer than ten judged test cases for that format.
Does it work with editors, or just the terminal?There's a VS Code extension (omnidiff-vscode) and a Neovim plugin (omnidiff.nvim), though VS Code can't yet let an extension fully replace its built-in diff view since that API isn't released upstream.
What content types can OmniDiff diff besides source code?Pictures (pixel-by-pixel, including animation frames), archives like zip/tar/jar, fonts glyph-by-glyph, Windows/X/Hyprland cursors, gettext/Qt message catalogs, and PDFs page by page.
How fast is it really?Across 2,302 test fixtures, the median diff took 4.2ms, the 99th percentile was 177ms, and nothing took more than 482ms on a laptop i7-1370P.
Does it work with Jujutsu (jj), not just git?Yes, but jj needs its own setup since it doesn't read git's difftool config; you register it with the setup wizard and must set diff-invocation-mode to file-by-file so OmniDiff gets one file pair at a time.
Is there a web/browser way to review diffs?A companion project called codereview lets you review diffs in a browser, but it's still at v0.0.0 and the README warns to use it at your own risk.
What are similar projects?diff-so-fancy, ast-grep, difftastic, hunk, delta, diffle, VTCode, gitlogue
Creator
ivankovic
Size
207.9 MB
Stars
1.4K
Age
1y
Commits · 90 Days