egoist / godiff
git clone https://github.com/egoist/godiff.git
Fast native diff viewer
+0
stars, 24h · #39,775
+~0
stars, 7 days · #44,831
+122
stars, 30 days · #5,882
122
★ total
10
forks · 2 open issues
Star history (as recorded here)
LanguageGo
License—
Created2026-10-04 (19d ago)
Last push8d ago
Watchers1
OwnerUser
Links
- GitHub: github.com/egoist/godiff
- Releases · Issues · Hacker News mentions
README excerpt
# Godiff A native, minimal, local diff viewer for reviewing Git changes and committing them: a reimplementation of codiff in Go with MyGo's native UI. No webview, no JavaScript: the window is drawn by MyGo on the GPU, with the system's fonts, accent color, dark mode, menus and vibrancy. ## Features - **Review local changes**: staged, unstaged and untracked files against `HEAD`, in one scrolling surface of file cards with sticky headers. - **Split and unified diffs** with syntax highlighting (codiff's Licht and Dunkel palettes), word-level change highlighting, and unchanged lines that expand 100 at a time or all at once. New and deleted files show in one column. - **Viewed files**: marking a file viewed collapses it, and it opens again once it changes. Generated files (lockfiles, `*.min.js`, `linguist-generated`, …) and dependency folders start collapsed. - **Review comments**: click a line, or press J / K to choose a hunk and Enter , then copy every comment as Markdown, with the diff around it, for an agent or a colleague. - **Commit** the files you choose, with a subject and a summary, from the sidebar's Commit button. Other staged work stays staged. - **History**: browse commits and review any of them, or compare the work tree with a branch. - **Pull requests**, after pulls.review: list the open pull requests of the repository's GitHub remote ( ⌘3 ) and review any of them, open or not. Godiff fetches its commits into your clone, so it reads as local changes do: highlighted, expandable, with pictures. Its files group by kind (code, tests, docs, config, dependencies, generated), each group with how much of it you viewed; review threads show under their lines, to reply to and resolve; comments go out alone or into your review, which you submit as a comment, an approval or a request for changes. A banner says when new commits are pushed. - **AI review**: a coding agent installed on your machine — Claude Code, Codex, OpenCode or Pi — reviews the changes, a pull request's or your own: it summarizes them, groups the files by intent, and notes the lines that deserve attention, marking what needs care. It runs read-only, with the agent's own sign-in, and its review is kept until you ask for another. Choose the agent and the model in the review's card, among those the agent lists, of any of its providers; by default OpenCode reviews with the model it starts with itself. The card lists the notes, and the file tree marks the files with some: click one, or press N and ⇧N , to go from note to note. - **Find in diffs** ( ⌘F ), a **file filter** ( ⌘P ) and a **command bar** ( ⌘K ). - Image previews of changed pictures, a file tree with change counts and status letters, and a banner when the work tree changes. - Sidebar navigation selects files, directories, commits and pull requests on pointer press, showing the new selection as the sidebar takes focus. Directory disclosure and button actions activate on release. - **File icons*