Skip to content
praneethilluruPublic

About

Local-first Git diff review workbench and stdio MCP server with deterministic risk scoring. Leave inline comments & suggested edits and hand structured feedback back to your coding agent.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZynDiff

License: MIT Live Site Live Demo MCP

Review AI-generated diffs before they ship.

ZynDiff is a local-first Git diff review workbench and native stdio MCP server with deterministic risk scoring. It opens your local git diff changes in a PR-style browser workspace on 127.0.0.1, lets you leave inline comments and Ctrl+G suggested edits, triages risk with zero AI API calls, and returns structured Markdown feedback straight to your coding agent.

Live Website · Interactive Live Demo · Documentation · CLI Reference · Report a Security Issue


Why ZynDiff

Coding agents generate 500-line diffs in seconds, and terminals are a poor place to review them. Pushing a local branch to a remote forge just to leave three review notes for an agent running on your own machine is backwards. ZynDiff brings PR-grade code review to 127.0.0.1 with zero accounts, zero API keys, and zero outbound telemetry.

Key Features

  • Unified & Side-by-Side Diff Viewer: Inspect working tree, staged, branch comparisons, commit ranges, single commits (zyndiff show), or full directories (zyndiff browse) with syntax highlighting and word-level diffs.
  • Inline Comments & Suggested Edits (Ctrl+G): Click any line number or drag a range, tag notes (issue, nit, question, praise), and press Ctrl+G to propose exact replacement code blocks. Reviews persist locally in ~/.zyndiff.
  • Deterministic Risk Scorecard (gc): Fixed, zero-AI rules score effective diff size, missing test coverage, public API signature changes, dependency updates, git churn hotspots, and leftover markers. Same diff, same score every time.
  • Native stdio MCP Server & --wait CLI: Connect directly to Claude Code, Codex, Cursor, Gemini CLI, VS Code, Windsurf, OpenCode, Zed, or GitHub Copilot CLI via zyndiff mcp serve—or block any shell workflow with zyndiff --wait.
  • LSP Code Intelligence: Go to definition (gd), type definition (gy), hover docs (gh), and references (gA) across TypeScript, Python, C#, Go, Rust, Svelte, and Vue.
  • 100% Local 127.0.0.1 Privacy: Never uploads code, never loads the reviewed repo's .env, and requires no external services.

Quick Start

Run with bunx / npx (once published)

bunx zyndiff
# or
npx zyndiff

Native Binary Installer

macOS & Linux:

curl -fsSL https://zyndiff.dev/install | sh

Windows (PowerShell 7+):

pwsh -c "irm https://zyndiff.dev/install.ps1 | iex"

Then wire ZynDiff into your installed coding agents:

zyndiff setup

Run From Source (Requires Bun + Git)

git clone https://github.com/praneethilluru/ZynDiff.git
cd ZynDiff
bun install
bun run start        # builds client/ and opens http://127.0.0.1:<port>

Usage Examples

zyndiff                        # Review working tree vs HEAD (untracked files included)
zyndiff staged                 # Review staged changes only
zyndiff main                   # Compare current branch against main
zyndiff v1.0..v1.1             # Review a commit range
zyndiff show                   # Inspect the latest commit with message and author
zyndiff --wait > feedback.md   # Block until feedback is submitted, print prompt to stdout
zyndiff mcp serve              # Run the native stdio MCP server

CLI Commands

Command Description
zyndiff [ref] Review working tree, staged, <branch>, <ref1>..<ref2>, or browse [path]
zyndiff show [rev] Review a single commit against its parent (HEAD by default)
zyndiff --wait [ref] [--json] Block until feedback is returned, then print Markdown or JSON to stdout
zyndiff setup Wire ZynDiff MCP/skills into detected coding agents (--remove to undo)
zyndiff mcp serve Launch the stdio MCP server for coding agents
zyndiff lsp Inspect or override language servers per language
zyndiff sessions / cleanup List running review servers or stop stale sessions
zyndiff update Download, verify SHA-256, and update the binary (--check to inspect)
zyndiff doctor Diagnose agent plugin installs and configuration (--fix to repair)

Full flag reference: CLI Reference or zyndiff --help.

Keyboard shortcuts

Press ? in the UI for this list at any time; it is generated from the same key table the app uses. Keys follow one grammar, vim style: an optional count, then a key or a two-key chord such as gg, dd or yy. 10j moves ten lines. A count waits until the next key or Esc. A half-typed chord is dropped after 1 second, and so is a chord with an unknown second key, without running anything. Esc cancels a pending count or chord first, then closes the open dialog. Keys are ignored while you type in a field.

Move

key action
j Next line (takes a count)
k Previous line (takes a count)
J Next file (takes a count)
K Previous file (takes a count)
] Next hunk (takes a count)
[ Previous hunk (takes a count)
gg First line of the file
G Last line of the file, or line N with a count (takes a count)
gf Go to the file path on the cursor line
zo Expand the current file
zc Collapse the current file
zO Expand every file
zC Collapse every file
Ctrl+d Half a page down (takes a count)
Ctrl+u Half a page up (takes a count)
h Side-by-side: old side
l Side-by-side: new side
Ctrl+o Jump back
Ctrl+i Jump forward

Comment

key action
c Comment on the cursor line
V Start a visual range (j k ] [ extend it, Esc cancels)
c Visual range: comment on the range
C Comment on the cursor's file
gv Reselect the last visual range
e Edit the comment on the cursor line
dd Delete the comment on the cursor line
u Undo the last comment delete (offered for 8 seconds)
R Resolve or reopen that comment
yy Copy that comment, or the cursor line when it has none
} Next comment on the cursor line
{ Previous comment on the cursor line

Search

key action
Ctrl+p Go to a changed file (fuzzy)
/ Search the file
n Next match (takes a count)
N Previous match (takes a count)
g/ Search all changed files

View

key action
m File list: tree / review order
t Light / dark theme
s Side-by-side / unified
w Wrap long lines
o Single-file / all files
r Re-run the diff

Review

key action
v Toggle viewed on the file
P Preview review feedback
gc Open the review scorecard

Code

key action
gd Go to definition (on a definition: list references)
gy Go to type definition
gh Hover docs for the cursor word
gA List references
gs Symbols in this file
gS Symbols in the repository
Ctrl/⌘ + click Go to definition of the word under the pointer. Resting the pointer on a word shows its hover docs.

Help

key action
gw What's new
? Keyboard help
Esc Cancel a count or chord, leave the mode, close the overlay
Ctrl/⌘ + Enter Save the open comment

Website & Interactive Live Demo (web/)

Live deployment: https://zyndiff.vercel.app · Interactive Workbench: https://zyndiff.vercel.app/demo/

The static marketing site, /demo interactive diff-review workbench, and Starlight documentation live in web/ and build to static HTML/JS/CSS (web/dist) ready for Vercel or Cloudflare Pages:

cd web
npm install
npm run build   # outputs static site to web/dist
npm run preview

vercel.json is preconfigured at the repository root so deploying on Vercel works out-of-the-box with Root Directory ./.


Architecture

  • src/ — Core CLI, git diff parser, deterministic Risk Scorecard engine, prompt compiler, LSP bridge, local HTTP server, and stdio MCP server.
  • client/ — Svelte 5 + Vite + Shiki diff-review UI embedded in the local CLI workbench.
  • web/ — Astro + Starlight product site, interactive client-side /demo workbench, and documentation.
  • plugins/ & integrations/ — Agent integrations for Claude Code and Codex.

License

MIT © 2026 Praneeth Reddy Illuru — see LICENSE.

About

Local-first Git diff review workbench and stdio MCP server with deterministic risk scoring. Leave inline comments & suggested edits and hand structured feedback back to your coding agent.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages