Reviewing changes
Run zyndiff with a ref to read that diff in the browser, one PR-style page per review.
Pick what to review
Section titled “Pick what to review”Run it from inside the repository. Each form maps to one git diff:
zyndiff # working tree vs HEAD, untracked files includedzyndiff staged # staged changes onlyzyndiff main # what this branch added since main (main...HEAD)zyndiff v1.2.0..HEAD # a commit rangezyndiff browse src/ # the whole codebase under src/, no diffA branch review compares commits only (main...HEAD), so uncommitted edits don’t show up in it. Run plain zyndiff for those.
A ref git doesn’t know stops before anything opens:
$ zyndiff mian[zyndiff] unknown ref: mianThe CLI reference lists every flag, such as --port and --no-open.
Review one commit
Section titled “Review one commit”zyndiff show reviews HEAD against its first parent. Pass a rev for any other commit:
zyndiff showzyndiff show HEAD~2zyndiff show a1b2c3d --no-openThe page opens with a commit header: the short hash, the subject, the body, the author and the date. Click the hash to copy the full one. A merge commit is shown against its first parent, and the header says so. A root commit is compared with the empty tree.

The review is pinned to the full hash, so reopening it later shows the same diff after HEAD moves. That holds as long as the commit exists. A rebase followed by git gc removes it.
$ zyndiff show nosuchrev[zyndiff] unknown commit: nosuchrevMove through the files
Section titled “Move through the files”The sidebar lists every changed file. Type in the Filter files… box to narrow it by path. The Tree / Review order toggle under it (or m) switches between the folder tree and the review order described in the review scorecard guide.
Every changed file shows on one scrolling page by default. Press o to switch to single-file view, which shows only the file you pick in the sidebar. Press o again to go back.
Each tree row has a check mark on its right. Click it, or press v on the cursor’s file, to mark that file viewed. The counter above the tree shows how many you’ve cleared, for example 3/12 viewed.
To review without the mouse, see Keyboard review.
Choose a view
Section titled “Choose a view”Press s to switch between unified (one column) and side-by-side (old left, new right). Added and deleted files always render unified, since they have no second side. Browse mode is always unified.
A file header carries its own Unified / Side-by-side button that overrides the global view for that file only. Pressing s again clears every per-file override.
Each side of a side-by-side file scrolls horizontally on its own. Use a trackpad swipe or Shift + wheel over a pane. Drag the divider to resize the panes. You can also Tab to it and use the arrow keys (Shift for bigger steps), Home and End. Double-click it or press Enter to reset to equal widths.
Press w to wrap long lines. Rows on both sides stay aligned when one side wraps more than the other.
Press t to switch between light and dark themes.
Code is highlighted with VS Code’s TextMate grammars, including Svelte, Vue and Astro files and named files like Dockerfile. zyndiff reads the surrounding file to work out where a hunk starts, so a change halfway down a <style> block or a long comment still highlights correctly.
Files that start collapsed or hidden
Section titled “Files that start collapsed or hidden”- Deleted files start collapsed. Click the chevron in the header to read them.
- Lockfiles and generated files collapse with a “Lockfile — collapsed” or “Generated file — collapsed” note and an Expand button. The review scorecard guide lists what counts.
- A file whose diff has more than 2000 lines shows “Large diff — hidden to keep things fast.” Click Load diff to render it.
- Binary files show “Binary file — no textual diff.”
zo and zc open and close the cursor’s file from the keyboard, and zO and zC do every file.
Read markdown rendered
Section titled “Read markdown rendered”A changed markdown file has a Diff / Preview button in its header. Preview renders the new version of the file, with relative images loaded from the repository. The HTML is sanitized, so scripts and event handlers in a reviewed .md never run. Deleted markdown files have no preview.
Spot whitespace and moved code
Section titled “Spot whitespace and moved code”A hunk that only changes whitespace is dimmed, and its header reads whitespace only.
When a run of three or more lines is deleted in one place and added in another, both ends get a marker, such as moved from Store.cs:12 on the new lines and moved to Store.cs:40 on the old ones. A block that was moved and then changed reads moved from Store.cs:12 (edited). Click the marker to jump to the other file.

Refresh after the code changes
Section titled “Refresh after the code changes”zyndiff re-runs git diff when you press r or click Re-run the diff (the circular arrow) in the top bar. The review, your comments and the cursor carry over.
A comment whose line or file leaves the diff moves to a From earlier reviews section at the top of the page, and the feedback leaves it out. See Stale comments.
When the server stops
Section titled “When the server stops”The browser page needs the zyndiff process that served it. If that process exits, a red banner says “The zyndiff server is gone.” Saving comments and sending feedback are off until it’s back. The banner shows the command to restart it, with the review id and the port filled in:
zyndiff --review-id <id> --port 4400Run it from the same repository and the page reconnects by itself.
If a different review is now running on that port, the banner reads “A different review is running on this port.” instead. Writes stay off on that page, and Reload to open it loads the other review.
Update from the top bar
Section titled “Update from the top bar”When a newer release exists, an Update badge with the version appears in the top bar. It checks every 10 minutes (never, with ZYNDIFF_NO_UPDATE_CHECK set) and links to the release notes. Run zyndiff update to install it. See Installation.
Related pages
Section titled “Related pages”- Learn the keys in Keyboard review, or look one up in Keyboard shortcuts.
- Leave feedback with Inline comments.
- Triage a large change with the Review scorecard.