Twain
Twain is a diff viewer like Meld, written in Rust and based on GTK4. It shows all files from a Git diff in one sequential view with a side file tree, can show full files or only changed parts, provides tree-sitter-based syntax highlighting, supports searching across all modified files, and lets users comment on sets of changes and lines that AI agents can read.
What it addresses
Meld, the author's preferred diff viewer, was missing features such as showing all files from a Git diff in one view, commenting on changes for AIs to read, and searching across the full set of modified files.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Twain
Twain is a diff viewer like Meld, written in Rust and based on GTK4. It shows all files from a Git diff in one sequential view with a side file tree, can show full files or only changed parts, provides tree-sitter-based syntax highlighting, supports searching across all modified files, and lets users comment on sets of changes and lines that AI agents can read.
Problem: Meld, the author's preferred diff viewer, was missing features such as showing all files from a Git diff in one view, commenting on changes for AIs to read, and searching across the full set of modified files.
Posted by @andunie · Original source ↗
Story title · @andunie · · Source ↗
Show HN: Twain, a diff viewer like Meld, but for the age of AI
Submitted URL · @andunie · · Source ↗
https://github.com/andunieee/twain
Source text · @andunie · · Source ↗
it's amazing how many diff viewers exist these days and how they are all awful compared to Meld. But Meld was missing some features that I thought were worth having
Source text · @andunie · · Source ↗
all files from a Git diff shown in the same view, sequentially + a file tree on the side.
Source text · @andunie · · Source ↗
tree-sitter-based syntax highlighting.
Source text · @andunie · · Source ↗
the ability to comment on sets of changes and lines, and AIs can read these comments.
Source text · @andunie · · Source ↗
Twain is in Rust and based on GTK4.