A keyboard-first review desk for diffs and documents. Launch it from the CLI, jump around like a code editor, and export inline comments back to automation without losing your flow.
- Fast review loops: open a range, scan, comment, close, and get JSON back.
- Keyboard-centric:
/,n/N,j/k,gg/G,:by default. - Flexible inputs: diff two refs, review a single file, or inject text.
- Local-first: comments live under
.ai-diffinside the repo.
- Diff view for
base..headranges. - Document mode for text or files outside git.
- Inline comments stored per repo and exported on close.
- Tauri + React UI, with a web fallback for HTTP mode.
npm install
npm run dev
AI_DIFF_COMMENTS=1 TAURI_DEV=1 TAURI_DEV_URL=http://localhost:5173 \
cargo run --manifest-path src-tauri/Cargo.toml -- --repo /path/to/repo--repo /pathSet repository root (diff mode).--base refBase ref for diff (defaults to main/master fallback).--head refHead ref for diff (defaults to HEAD).--open-file /pathOpen a file; auto-detects git root.--text "..."Review injected text.--text-base64 "..."Review base64 text.--stdinRead review text from stdin.--name "Label"Label for document mode.--export relative/path.jsonExport comments on close.--stdoutPrint comments to stdout on close.--export-allExport all comments for the repo.
When AI Diff is started with CLI args, it prints comment JSON to stdout on close
by default. Pass --export to write a file instead.
/Focus searchn/NNext/previous search resultj/kNext/previous filegg/GJump to top/bottom:Jump to a line number (:+42,:-7, or:120)
Optional environment variables:
VITE_AI_DIFF_API_BASEBase URL for the HTTP API (web mode).AI_DIFF_CORSComma-separated allowed origins for the HTTP API (*to allow all).AI_DIFF_RATE_WINDOWRate limit window in ms.AI_DIFF_RATE_LIMITRequests per window.AI_DIFF_DEBUG_ERRORSSet to1to expose server error details.
npm run tauri:buildArtifacts land in:
src-tauri/target/release/bundle/
npm run lint
npm run test
npm run test:server
npm run test:e2e
cargo test --manifest-path src-tauri/Cargo.tomlSee CONTRIBUTING.md for local setup, coding standards, and review notes.
MIT. See LICENSE.