Inline Comments & Suggested Edits
Click a line or drag across line numbers, tag issue / nit / question / praise, and press Ctrl+G to propose exact replacement lines.
ZynDiff opens local git diff changes in a PR-style browser workspace, lets you leave inline comments and suggested edits, and exports structured feedback straight back to your coding agent via CLI or stdio MCP.
bunx zyndiffNative binary:curl -fsSL https://zyndiff.dev/install | sh
export function resolveRef(ref: string) { const base = ref || "HEAD"; return runGit(["rev-parse", base]); const sha = runGit(["rev-parse", "--verify", base]); if (!sha) throw new NoSuchRef(base); return sha.trim();}Agents write code faster than you can read it in a terminal. ZynDiff makes the read cheap enough to do every time.
When the change breaks in production, the bug is yours, whoever typed it. Read it before it merges.
A diff you skip is code you can't explain later, and you need that picture of the system to decide what to refactor or delete.
An agent stops when the tests pass. Intent, naming, boundaries and what shouldn't exist at all still come from you.
An agent can produce a 600-line diff in minutes. Deciding whether it's right still takes a person reading it.
Toggle Split vs. Unified view, click any line number to add inline comments or Ctrl+G suggested edits, inspect the deterministic Risk Scorecard, and export your structured Markdown prompt.
src/api/rateLimiter.ts & worker/risk_scorer.py modified without matching test filessrc/core/sessionGuard.tssrc/core/sessionGuard.ts touched in 14 recent commitsTODO marker in worker/risk_scorer.pyWorking tree, staged changes, a branch, a commit range, or the whole codebase, rendered in your browser with a file tree and syntax highlighting, not scrolled past in the terminal. Unified or side-by-side, your choice.
zyndiff show reviews one commit with its message, author and hash above the files, pinned to the full hash so it reopens the same diff later.
$ zyndiff# working tree vs HEAD$ zyndiff staged# staged changes only$ zyndiff main# this branch vs main$ zyndiff v1.0..v1.1# a commit range$ zyndiff browse src/# the whole subtree$ zyndiff show# the last commit, message and author on top$ zyndiff --wait# block until you send feedback
Click a line, or drag across line numbers for a range. Press c on the cursor line if you'd rather keep your hands on the keys. Tag a note nit, issue, question or praise, and press Ctrl+G to suggest the replacement lines. Every note is saved to a durable Review Record that survives restarts and re-runs, and an unsent draft comes back after a reload.
const res = await fetch(url, opts);No timeout here, so an agent hangs on a dead dev server.
Added an AbortController with a 10s timeout. Marked addressed; it's yours to resolve.
Return the whole redline as one prompt, each comment with its file, line and the code around it. Over the local stdio MCP server, Claude Code, Codex or any MCP client fixes the code, replies inline, marks comments addressed and asks for a re-review. You refresh, check the work, and resolve the thread. Agents can't.
No MCP? zyndiff --wait blocks until you send feedback, then prints the prompt on stdout. Any agent that can run a shell command can drive it.
## Code Review — fix/fetch-timeout → main — 2026-12-02---### client/src/lib/api.ts — Line 88```86 | export async function getJson(url: string) {87 | const opts = { headers: JSON_HEADERS };> 88 | + const res = await fetch(url, opts);89 | return res.json();```No timeout here, so an agent hangs on a dead dev server.---### src/utils/git.ts — Line 43```41 | const base = ref || "HEAD";42 | const sha = runGit(["rev-parse", "--verify", base]);> 43 | + if (!sha) throw new NoSuchRef(base);44 | return sha.trim();45 | }```**[issue]** Throws on a fresh repo where HEAD has no commits. Guard the empty case first.---## Summary: 2 comment(s) across 2 file(s)
A deterministic scorecard flags what deserves your attention: size, untested code, public API and dependency changes, hotspots, and risky leftovers. Files come in review order, grouped by project with dependencies first. Lockfiles and generated code collapse, and moved code is marked. Same diff, same score, no AI.
How the scorecard worksClick a line or drag across line numbers, tag issue / nit / question / praise, and press Ctrl+G to propose exact replacement lines.
Fixed rules band diff size, untested code, public API shifts, dependency updates, git hotspots, and leftover markers. Same diff, same score.
Claude Code, Codex, Cursor, Gemini CLI, and Windsurf read comments over stdio MCP while gd, gh, and gA jump via local LSPs.
No forge, no cloud database, no API keys, and zero outbound telemetry. Reviews persist locally in ~/.zyndiff.
Run immediately with bunx zyndiff or npx zyndiff, or install the self-contained binary with zero runtime dependencies. git on your PATH is the only prerequisite.
curl -fsSL https://zyndiff.dev/install | shpwsh -c "irm https://zyndiff.dev/install.ps1 | iex"zyndiff mcp serve runs a native stdio MCP server for your agents.~/.zyndiff on your machine.
Throws on a fresh repo where HEAD has no commits. Guard the empty case first.