Skip to content

Review the whole branch.

See every changed file, leave line comments, and send your notes back to your coding agent.

npx diffhub@latest cmuxTry a live review

Runs locally · no account · MIT licensed

DiffHub reviewing a branch with a file tree on the left and added and removed code on the right

What the command does

Checked 10 Aug 2026

0
Network requests
CLI source
2047
Port
bin/diffhub.mjs
20.11+
Node.js
package.json
MIT
Licence
GitHub

Stop scrolling through diffs.

Terminal output disappears as soon as it scrolls past. DiffHub keeps the whole branch open and updates it as files change.

Keyboard shortcuts

Review without reaching for the mouse.

Move between files, switch views, filter, refresh, and collapse files from the keyboard.

  • Move between files

    jk
  • Switch diff view

    s
  • Filter the tree

    /
  • Refresh changes

    r
  • Collapse a file

    c

Open a public pull request.

Paste a GitHub pull request URL to open it in DiffHub. No account or install needed.

Try oven-sh/bun#16000

A few things to know.

Do you need cmux to use DiffHub?

No. npx diffhub@latest opens DiffHub in a normal browser tab. Add cmux to open it in cmux on macOS. That option needs cmux.app in /Applications.

Does DiffHub send your code anywhere?

No. DiffHub runs on localhost:2047 and stores comments in .git/diffhub-comments.json. It does not make network requests.

When is git diff enough?

Use git diff for quick checks and scripts. Use DiffHub when you need to review several files or leave comments for the next agent pass.

Compare DiffHub, cmux diff, and hunk, or read how to review agent-written code.

Review before you push.

Run DiffHub in any git repository. It finds the base branch and opens the diff on localhost.

npx diffhub@latest cmuxRead the install guide