CODE
+98%
CODE ACCURACY
+70%
UNIX DIFF COMPARISON
+92%
PICTURES
+96%
OmniDiff is a command-line diff tool that does what Unix diff has refused to do for fifty years: look inside the file before deciding how to compare it. For code, it parses 25 languages with tree-sitter grammars and diffs structurally—matching moved functions and renamed variables rather than treating every line as an opaque string. For binaries, it identifies the format from the bytes (not the extension) and diffs by content: pixel-by-pixel for images, file-by-file for archives, glyph-by-glyph for fonts. The accuracy numbers, self-reported against a judged test set, are striking. Code diffs hit 98% accuracy, pictures 96%, cursors 100%, fonts 95%, archives 88%. The comparison columns matter more: Unix diff scores 70% on code, 69% on pictures, 82% on fonts. The gap is real and consistent across content types, with the notable exception of PDFs, where OmniDiff's accuracy drops to 57% (though with fewer than ten test cases, the author flags this honestly). Speed is the other headline. All benchmarks are under 100ms on a mid-range ThinkPad T14s with an i7-1370P. This is cargo-install-from-source software written in Rust with fat LTO, and the first build takes minutes because it compiles every tree-sitter grammar from C. After that, it's fast enough to be invisible in a git difftool workflow. The integration story is already mature for a tool at this stage. Git and Jujutsu get first-class setup wizards. VS Code and Neovim have extensions (with the VS Code extension waiting on an upstream API to replace the built-in diff view rather than bolting on a workaround). Installation covers Homebrew, apt with signed repos, Nix flakes, Arch PKGBUILD, and Gentoo ebuilds alongside prebuilt binaries for Linux, macOS (both architectures), and Windows. The design philosophy is visible in the small decisions. Headless mode activates automatically when stdout isn't a terminal. Context lines default to 3 with function-header annotations, matching the diff -u convention developers already expect. Exit codes follow the diff(1) convention with an opt-in --exit-code flag, and the README explains exactly why the default is 0 even when files differ (git difftool and jj both misinterpret non-zero exits). JSON output has a published schema. What's missing is equally telling. The codereview browser viewer is at v0.0.0 with an explicit use-at-your-own-risk warning. The VS Code extension can't replace the built-in diff view yet. Six languages are recognized by extension but diffed as plain text because no grammar is compiled in. These are honest gaps, not hidden ones—the kind of scoping that suggests the developer knows what 1.0 means and isn't there yet. This is a solo developer's tool built with the kind of engineering discipline you usually see from small teams that have shipped before. The README alone—its precision about terminal color detection, SSH pseudo-terminals, git's GIT_EXTERNAL_DIFF 7-argument form—reads like someone who has debugged every edge case they document. If you review code at a terminal, this is worth fifteen minutes of your time to install and try.
Worth reading?
RECOMMENDED
Score
72
/100
Developers who review code at a terminal, use git difftool or jj, and have been annoyed by diff's inability to understand what it's comparing. Especially valuable if you diff binary assets (images, fonts, archives) alongside code.
Cultural Placement
Like delta (dandavison/delta) but more ambitious in scope, with the content-awareness philosophy of Beyond Compare applied to a Unix-native CLI workflow. If diff-so-fancy was a paint job on diff's output, OmniDiff is a ground-up rewrite of what 'comparing two files' means. It sits in the lineage of tools like Kaleidoscope and Meld but built for the terminal-first, Rust-era developer who wants structural understanding without leaving the command line. The closest spiritual predecessor is tree-sitter itself—the bet that parsing is cheap enough to do everywhere, all the time.
Honest assessment
OmniDiff is a genuinely well-engineered tool that solves a real problem most developers have learned to ignore. It won't change your life if you're happy with your IDE's built-in diff, but if you live in the terminal and review code there, the structural diffing and binary content awareness are immediately useful. The 0.x version and solo-developer bus factor are the real risks.
What Is NOVEL?
72
/ 100
BedrockNews applies a structured analytical framework called NOVEL to cultural works — games, books, film, music, and more.
How NOVEL worksNerve
3/5
Originality
4/5
Voice
4/5
Endurance
4/5
Lineage
3/5
What did the artist risk? What could have failed?
Moderate risk in a crowded space. Betting that content-aware binary diffing matters enough to justify building tree-sitter grammars for 25 languages from scratch is real commitment, but it's still a CLI tool with established demand.
Verified Facts (9)
25 languages are parsed with a tree-sitter grammar and diffed structurally
Speed measured on a T14s, Intel Core i7-1370P with 32 GB RAM
Code: 98% accuracy, 70% for Unix diff comparison, 92% for alternative
Pictures: 96% accuracy, 69% for comparison, 91% for alternative
PDFs have fewer than ten judged test cases
Requires rustc 1.92 or later
VS Code does not yet let an extension replace its built-in diff view
codereview is at v0.0.0
99.95% of code changes can be diffed; 98.8% using content-specific algorithms
More latest news
Read all