Native Shell
Native Shell: AI-generated UI, native in your app, on every platform. Apps on iOS, Android, macOS, Windows and Linux, GPUI apps and web pages load signed, sandboxed TSX modules at run time and draw th
DiffHub opens your git diff in a local browser tab or cmux split. Comment on any line, then paste every note back into Claude Code, Codex or Cursor.
Developer toolsTypeScript · HTMLGitHub @mblodeOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Local git diff viewer
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗A cmux git diff viewer for reviewing a whole branch, with inline comments you can hand to an agent
Run one command inside any git repository and DiffHub serves a GitHub-style diff of your working tree at localhost:2047.
Browse any public GitHub pull request in the hosted viewer, with nothing installed.
npm install -g diffhub
Or run it without installing: npx diffhub@latest.
Run inside any git repository.
# Review the current branch in a cmux browser split
diffhub cmux
# The same viewer in your default browser
diffhub
# Compare against a different base branch
diffhub cmux --base develop
# Review a repository in another directory
diffhub cmux --repo ~/Code/mblode/cmux
The default view is touched: HEAD versus the working tree, including untracked files. Merge-base scopes (all, committed) are available from the status bar, and --base still selects the comparison branch, preferring origin/main so unpushed commits show up. A watcher marks updates available; press r to refresh. diffhub cmux uses a repo-derived port in 20000–29999 instead of 2047.
For a complete review loop, see Review agent-written code in cmux.
| Command | Description |
|---|---|
diffhub | Open DiffHub in your default browser |
diffhub cmux | Open DiffHub in a cmux browser split |
diffhub serve | Same as diffhub, starts the local web app |
diffhub and diffhub serve| Flag | Default | Description |
|---|---|---|
-p, --port <port> | 2047 | Port to serve on |
-r, --repo <path> | cwd | Path to the git repository |
-b, --base <branch> | auto | Base branch to diff against |
--no-open | Skip automatic browser open |
diffhub cmux| Flag | Default | Description |
|---|---|---|
-r, --repo <path> | cwd | Path to the git repository |
-b, --base <branch> | auto | Base branch to diff against |
| Key | Action |
|---|---|
j / k | Next / previous file |
s | Toggle split / stacked view |
c | Collapse or expand the selected file |
Shift+C | Collapse all files |
Shift+E | Expand all files |
/ or t | Focus the file filter |
r | Refresh the diff |
F2 | Toggle the Diff stats panel |
git rev-parse --show-toplevel must succeed).cmux.app installed on macOS at /Applications/cmux.app..git/diffhub-comments.json in the repository you are reviewing, and copy out as a markdown review prompt for a coding agent.MIT
Crafted by Matthew Blode