See every change before you push
DiffHub opens a PR-style diff viewer in your browser with split and unified views, file tree, inline comments, and live refresh. One command, no config.
npx diffhub@latest
Terminal diffs weren’t built for review
- Scrolling through git diff output
- PR-style viewer with file tree and per-file stats
- No way to leave notes before pushing
- Inline comments tagged must-fix, suggestion, nit, or question
- Switching between terminal and editor
- Right-click any file to open in VS Code, Zed, or your terminal
Everything you need to review your own code
- PR-style diffs
- Diffs against your merge-base, not HEAD. See exactly what changed since you branched.
- Split and unified
- Toggle between side-by-side and inline diffs. Press s to switch.
- Inline comments
- Leave notes on any line. Tag as must-fix, suggestion, nit, or question. Export as a prompt.
- File sidebar
- Navigate changes in a collapsible file tree. Press / to filter. Per-file stats at a glance.
- Live refresh
- Watches your working tree. Diffs update automatically when files change.
- Context menu
- Right-click any file to open in VS Code, Zed, Ghostty, Terminal, or Finder.
Keyboard-first
jkNavigate files
sToggle view
/Filter files
rRefresh
cCollapse file
One command. Any repo
Run inside any git repository. DiffHub auto-detects your base branch and opens at localhost.
npx diffhub@latest