Every command takes -h, --help, -v, --version and --license. zyndiff --help lists all commands, and zyndiff <command> --help prints that command’s options. A command run with a flag it doesn’t accept exits 1 before doing anything.
http://127.0.0.1:16289/?review=072b10fc-4a59-4c39-85eb-5b91967aba6d (ctrl+c to stop)
Startup also prints one-line notices when they apply: a newer release (ZYNDIFF_NO_UPDATE_CHECK=1 silences it), a stale legacy plugin (run zyndiff doctor), or stale sessions (run zyndiff cleanup).
error
cause
not a git repository (run zyndiff inside one)
the cwd is not inside a git repo
unknown ref: <ref>
git can’t resolve the ref
review record not found
--review-id names a record that doesn’t exist
port <n> is already in use
--port is taken
--lsp needs <lang>=<command> (an empty command disables the language)
--wait blocks until the reviewer returns feedback, approves or cancels. Status lines go to stderr, the result goes to stdout. With --json, stdout is the get_review JSON for feedback, approved and cancelled.
exit
outcome
stdout without --json
stdout with --json
0
feedback returned
the compiled prompt
get_review JSON
0
review approved
empty
get_review JSON
2
review cancelled
empty
get_review JSON
3
last tab closed without returning feedback (after a grace of about 5 s)
empty
empty
4
session stopped from outside, for example by zyndiff cleanup; the review stays open
empty
empty
130
interrupted (ctrl+c) while waiting; the review stays open
empty
empty
1
error
empty
empty
On 3, 4 and 130, stderr carries the resume line: review <id> is still open. resume with: zyndiff --review-id <id> (or get_review over MCP).
Review one commit. With no rev it reviews HEAD. It is the same diff as zyndiff <rev>^!, with the commit’s short hash, subject, body, author and date above the files. A root commit is compared with the empty tree, a merge commit with its first parent. The review is pinned to the full hash, so reopening it shows the same diff after HEAD moves, as long as the commit still exists (a rebase plus gc removes it).
Usage
zyndiff show [rev] [options]
flag
value
effect
-p, --port
<n>
serve on a fixed port
--no-open
don’t open the browser automatically
--no-lsp
start no language servers
--lsp
<lang>=<command>, repeatable
one-run language server override
show does not take --wait, --json or --review-id.
Terminal window
zyndiffshowHEAD~2
error
cause
unknown commit: <rev>
git can’t resolve the rev
show takes one commit, not a range or revision set: <rev>
a range such as a..b
invalid commit: <rev> (a commit can't start with "-")
rev starts with -
<hash> is at the edge of a shallow clone, so its parent isn't here. fetch it with: git fetch --deepen=1
Run the local stdio MCP server named zyndiff. Agents launch it from their MCP config, so you rarely run it by hand. A start_review call may only target a cwd inside ZYNDIFF_ROOT, or inside the directory the server was started from when that is unset. Tools: MCP tools.
Stop every running zyndiff MCP server so agents relaunch it, for example on a new binary. Agents don’t respawn a stopped server by themselves: reconnect in Claude Code with /mcp, or start a new session.
flag
effect
--yes
skip the confirmation prompt
Terminal window
zyndiffmcprestart--yes
exit
when
output
0
servers stopped, or none running
stopped 2 MCP servers — agents start the new server on reconnect (Claude Code: /mcp → reconnect, or a new session)
1
a review session is live
1 live review session — finish or stop them first (zyndiff sessions / cleanup --all)
Wire zyndiff into your coding agents. It detects installed agents (binary on PATH or config directory present), shows a checklist with detected agents first and pre-checked (↑↓ move, space select, a all, enter confirm), prints every command and file it will touch, then asks Proceed? [y/N]. Re-running reports unchanged. --remove pre-checks the agents zyndiff is set up in, tagged (set up).
Report what’s wrong with the agent plugin installs and what to run to fix it. It checks the Claude Code plugin and marketplace for stale diffle-review or loupe-review leftovers, the other agents’ retired plugins and MCP configs, a data migration that hasn’t finished, old review records parked under migration-conflicts/, whether zyndiff is on PATH, and whether a newer release is published (skipped with ZYNDIFF_NO_UPDATE_CHECK).
Usage
zyndiff doctor [--fix] [--yes]
flag
effect
--fix
run the repair commands (Claude Code repairs go through the claude CLI)
--yes
skip the confirmation prompt; also passes --yes to claude plugin install
$ zyndiff doctor
zyndiff doctor — agent plugin health (/home/me/.claude)
OK legacy plugins no diffle-review / loupe-review plugin installed
OK legacy plugin enabled none enabled
OK legacy marketplace none registered
OK marketplace source not registered
OK legacy MCP server no `diffle` server wired
WARN zyndiff-review not installed
OK release v0.32.1 is the latest
To repair, run:
claude plugin marketplace add praneethilluru/zyndiff
claude plugin install zyndiff-review@zyndiff-local --scope user
or let zyndiff run them: zyndiff doctor --fix
exit
when
0
healthy, or --fix finished every repair
1
something is unhealthy (without --fix), or a repair is incomplete (repairs incomplete: lists which)
Download the latest release from GitHub Releases, verify its SHA-256 against checksums.txt, and swap the binary. Then it stops idle MCP servers still on the old binary (not while a review session is live) and prints the next steps that apply. On Windows the running exe is renamed aside as .zyndiff.exe.old* and removed by a later update.
Usage
zyndiff update [--check]
flag
effect
--check
only report whether a newer release exists; never downloads, and works in a source checkout
$ zyndiff update --check
[zyndiff] v0.32.1 is the latest release (source checkout — use git pull)
An installed binary prints v0.32.1 is the latest release, or v0.33.0 available (installed v0.32.1) — run zyndiff update.
output
when
exit
already on the latest release (v0.32.1).
up to date
0
installed via <manager> — update with: <command>
a package manager owns the install
0
'update' applies to an installed zyndiff binary; in a source checkout, use git pull.
run from source
0
could not reach GitHub to check for releases
--check offline
0
checksum mismatch for <asset>
the download doesn’t match checksums.txt
1
download failed (<status>) for <url>
the download failed
1
An installed binary also announces a newer release in one line when a review launches, checking GitHub at most once every 24 hours. ZYNDIFF_NO_UPDATE_CHECK=1 or CI turns that off.
Print the language server each language gets, or store an override in ~/.zyndiff/state.json. Commands run directly, never through a shell. When VIRTUAL_ENV is set, its bin (Scripts on Windows) is searched first for Python. Details: Configuration.
Usage
zyndiff lsp
zyndiff lsp set <lang> <command>
zyndiff lsp unset <lang>
subcommand
effect
(none)
one line per language: the server that will run, or what was tried and how to install it; stored overrides follow the table
set <lang> <command>
always use <command> for <lang>; quote a command with arguments; "" disables the language
Delete stale registry entries, stop live sessions whose review is approved, cancelled or missing, and remove leftover language server worktrees for the current repository. It prints the plan, then asks.
Usage
zyndiff cleanup [--yes] [--all]
flag
effect
--yes
skip the confirmation prompt
--all
also stop active (not just finished or stale) sessions
Terminal window
zyndiffcleanup--all--yes
exit
when
0
done, nothing to do (no zyndiff sessions), or you answered no
1
a session could not be stopped (failed to stop: lists it)
Run it from inside the repository to catch its leftover worktrees.
Print a tab-completion script on stdout. It completes commands, subcommands (mcp serve|list|restart, hook stop, lsp set|unset), flags, enumerable flag values (--shell, --agent, --agents), and branch, remote and tag names for the review and show commands. Refs are read from git when you press tab. zyndiff never edits your shell profile; the installer can offer to.
Experimental. A stop-hook command for Claude Code or Codex. No integration calls it, and zyndiff setup doesn’t wire it, so it only runs if you add it to your agent’s hook config yourself. It reads the hook JSON (cwd, session_id, task_id, last_assistant_message) from stdin. If that agent session already has an active review, it says so. Otherwise, when the working tree has changes, it creates a Review Record with policy required, spawns zyndiff --review-id <id> in the background and returns right away. It doesn’t wait for the review. It prints one JSON line with a systemMessage, except when there are no changes, where it prints nothing. It never fails the hook. A stop hook fires after every turn, so once you approve or cancel a review, the next turn that ends with changes in the working tree opens a new one.