Skip to content

Configuration

zyndiff has no config file. You configure it with environment variables, zyndiff lsp set, and CLI flags.

Boolean variables marked 1 must be exactly 1. Variables marked “any value” are on when set to anything non-empty.

variable default read by effect
ZYNDIFF_DATA_DIR ~/.zyndiff review records, session registry moves reviews/ and sessions/. state.json, drafts/ and migration-conflicts/ stay in ~/.zyndiff
ZYNDIFF_ROOT the directory zyndiff mcp serve started in MCP server the one approved root; start_review rejects a cwd outside it with cwd must be inside an approved MCP root
ZYNDIFF_NO_OPEN unset MCP start_review, zyndiff hook stop 1 = don’t open a browser. Plain zyndiff ignores it; use --no-open
ZYNDIFF_HOOK_NO_SPAWN unset zyndiff hook stop 1 = create the Review Record but spawn no review process
ZYNDIFF_NO_UPDATE_CHECK unset launch notice, update badge, zyndiff doctor any value = no new-release line at launch, no update badge in the tab, and no release check in doctor. zyndiff makes no release calls at all. The launch notice is also off when CI is set or when running from source
ZYNDIFF_INSTALL_DIR ~/.zyndiff/bin installers and the binary where the binary lives. The binary reads it to resolve the command it writes into agent MCP configs, and where the migration copies itself
ZYNDIFF_SESSION_HOST unset review launch internal: hook marks a session as hook-hosted, otherwise it is cli. The stop hook sets it on the process it spawns
VIRTUAL_ENV unset Python language server lookup its bin (Scripts on Windows) is searched before PATH, and the server starts with that environment
CLAUDE_CONFIG_DIR ~/.claude zyndiff setup, zyndiff doctor where to look for Claude Code
CI unset launch notice any value = no new-release line at launch
variable default effect
ZYNDIFF_INSTALL_DIR ~/.zyndiff/bin where the binary is placed
ZYNDIFF_NO_MODIFY_PATH unset any value = don’t edit the shell rc file (install.sh) or the user PATH (install.ps1)
ZYNDIFF_NO_SETUP unset any value = skip the zyndiff setup offer, and the agent teardown on uninstall
ZYNDIFF_NO_COMPLETIONS unset any value = skip the shell completion offer
ZYNDIFF_DRY_RUN unset any value = print the plan and write nothing
ZYNDIFF_UNINSTALL unset any value = uninstall instead of install
GITHUB_TOKEN unset authenticates the release lookup, which avoids the anonymous rate limit
NO_COLOR unset install.sh prints without color

On macOS and Linux, install.sh appends a marked block to your login shell’s rc file: .zshrc for zsh (under ZDOTDIR if set), .bashrc for bash (plus a .bash_profile that sources it on macOS), config.fish for fish, .profile for anything else.

Terminal window
# >>> zyndiff >>>
export PATH="$HOME/.zyndiff/bin:$PATH"
# <<< zyndiff <<<

Nothing else in the file is reordered or rewritten. Each edit first copies the file to <rc>.zyndiff.bak-<timestamp>, so one install can leave more than one backup. Running the installer again changes nothing. A child process can’t change the shell that launched it, so run exec $SHELL -l (fish: source <rc>) to use zyndiff right away.

On Windows, install.ps1 edits only your user PATH, never the machine scope and never the merged process value. It backs the old value up to a timestamped file in your temp directory first, keeps every existing entry (%VAR% tokens included), and does nothing if ~\.zyndiff\bin is already there.

ZYNDIFF_NO_MODIFY_PATH skips the edit on both (install.sh prints the export line instead), and ZYNDIFF_DRY_RUN logs every intended change without writing anything.

Every ZYNDIFF_* variable falls back to its deprecated DIFFLE_* twin (ZYNDIFF_* wins when both are set), and the first launch that uses one prints a one-time rename notice such as DIFFLE_DATA_DIR -> ZYNDIFF_DATA_DIR. LOUPE_* is not read.

path holds moved by ZYNDIFF_DATA_DIR
~/.zyndiff/reviews/<review-id>/review.json Review Records: comparison, comments, replies, comment status, summary, outcome, activity, last round yes
~/.zyndiff/sessions/<session-id>.json the session registry zyndiff sessions and zyndiff cleanup read yes
~/.zyndiff/state.json user state: lspOverrides, the dismissed what’s-new version, the launch update-check cache, a pending install migration no
~/.zyndiff/drafts/<hash>.json unsent comment drafts, one file per review no
~/.zyndiff/migration-conflicts/ old review records that clashed with different ones during the diffle migration (zyndiff doctor lists them) no
~/.zyndiff/bin/zyndiff (zyndiff.exe on Windows) the installed binary no (ZYNDIFF_INSTALL_DIR moves it)

Approved and cancelled Review Records stay on disk until you delete them. The first run moves an old ~/.diffle or ~/.loupe into ~/.zyndiff. See Migrating from diffle.

set with scope stored in
zyndiff lsp set <lang> "<command>" every run ~/.zyndiff/state.json under lspOverrides
zyndiff lsp unset <lang> removes the stored override
--lsp <lang>=<command> on zyndiff or zyndiff show one run, repeatable, wins over a stored override
--no-lsp one run, no language servers at all
rule value
languages typescript, csharp, python, go, rust, vue, svelte
disable a language empty command: zyndiff lsp set rust "" or --lsp rust=
how the command runs split on whitespace (quotes group), run directly with no shell, so pipes and && reach the server as plain arguments
refused a server that resolves inside the repository under review
Terminal window
zyndiff lsp set python "basedpyright-langserver --stdio"
zyndiff --lsp rust=rust-analyzer --lsp go=

Display prefs live in the browser’s localStorage under zyndiff-<name> keys. localStorage is per origin, and each launch picks a random port, so these reset between launches unless you pass the same -p, --port every time.

key values default
zyndiff-theme light, dark the OS color scheme
zyndiff-split true, false false (unified)
zyndiff-split-ratio number 50
zyndiff-wrap true, false false
zyndiff-view single, all all
zyndiff-file-order tree, review tree
zyndiff-sidebar width in px

The what’s-new “seen” version and language server overrides are in ~/.zyndiff/state.json instead, so they survive the port change.

behavior detail
file list a .review file at the repo root never shows in the diff or browse file list, in any mode. There is no toggle
prompt when one exists, the review shows A legacy .review file was found. with Import, Remove and Ignore
Import replaces the current Review Record’s comments and viewed list with the file’s; the file stays
Remove deletes the file, after a confirm dialog
Ignore hides the prompt for this page and leaves the file alone
git when zyndiff writes one, it adds .review to .git/info/exclude (never .gitignore)

Files zyndiff never loads from the reviewed repo

Section titled “Files zyndiff never loads from the reviewed repo”

zyndiff runs with the reviewed repository as its working directory, and does not read that repository’s .env or bunfig.toml.

path how
installed binary compiled with --no-compile-autoload-dotenv, --no-compile-autoload-bunfig, --no-compile-autoload-tsconfig, --no-compile-autoload-package-json
source checkout src/index.ts and the MCP entry run under bun --no-env-file
review spawned by the stop hook started with --no-env-file and zyndiff’s own bunfig.toml

A repo .env could otherwise set ZYNDIFF_*, VIRTUAL_ENV or PATH for zyndiff, and a bunfig.toml preload would run the repo’s code inside zyndiff.

step detail
source GitHub Releases
verify SHA-256 against the release’s checksums.txt; a mismatch aborts with checksum mismatch for <asset>
swap replaces the binary; on Windows the running exe is renamed aside as .zyndiff.exe.old* and removed by a later update
MCP servers stops servers still on the old binary, unless a review session is live; agents relaunch them on reconnect
package manager install refuses and prints that manager’s command
launch notice one line when a newer release exists, checked at most once per 24 hours, off with ZYNDIFF_NO_UPDATE_CHECK or CI
update badge the open tab asks GitHub Releases every 10 minutes and shows a badge when a newer release exists, off with ZYNDIFF_NO_UPDATE_CHECK
offline checks fail quietly