# Repository Briefing: nilbuild/diffity
> Source: https://repoforai.com/repo/nilbuild/diffity (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/nilbuild/diffity
- **Official Docs / Website**: https://diffity.com
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 13/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.12.1 (2026-11-30) — https://github.com/nilbuild/diffity/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: CLI
- **Momentum**: 930 ★ total (+1 24h / +9 7d) · 74 forks
- **When to Use**: Best for: macOS or Linux developers who review agent-authored changes before opening a PR and want the same agent to act on inline feedback. Skip if: Your team reviews only in GitHub, needs a headless CI reviewer, or cannot permit the selected agent to access repository code.

## Overview
```text
### Architecture & Core Mechanics
Diffity is a Tauri desktop application with a React/TypeScript frontend, a Vite configuration and native application code under `src-tauri/`. The manifest includes TanStack Query, TanStack Virtual, Shiki and Zustand, plus Tauri plugins for dialogs, window state and updates. The `diffity` CLI launches the desktop UI at a repository, file, PR or selected Git ref; it is not the review engine’s headless interface.

The integration model separates the review surface from the coding agent. A developer annotates a Git diff or file in the app, then either starts an agent action there or hands the submitted review to an existing terminal session. Through the terminal integration, including MCP setup for compatible clients, the agent retrieves threads scoped to its current repository or worktree and can reply or resolve them. GitHub review submission and thread sync are a separate integration.

### Key Capabilities & Differentiators
Diffity reviews working changes, individual commits, commit ranges and whole branches. The CLI’s `--ref` accepts `work`, `staged`, `unstaged`, and ranges using `..` or `...`. Comments can target lines, files or the whole diff, and the Files tab lets reviewers annotate unchanged code. Split and unified layouts, cross-file search and badges for files changed after being marked Viewed support repeat passes on the same change.

GitHub PRs can be read, commented on and reviewed by an agent without checkout. To edit a PR, open a dedicated worktree and push changes back to the PR. The app syncs GitHub threads and submits reviews as Comment, Approve or Request changes. AI workflows use signed-in Claude Code, Codex, OpenCode or Pi. An agent review can leave inline findings, while a separate fix pass can edit code and reply to selected threads for human follow-up.

### Trade-offs & Limitations
Compared with GitHub’s browser review, Diffity’s practical advantage is reviewing work before it becomes a PR: local changes, ranges and unchanged files all support comments. Compared with an editor’s built-in diff, it gives review threads a life beyond the editor by handing them back to an existing coding-agent session. The cost is another desktop app and, for AI or GitHub workflows, separate integrations and sign-ins. Teams reviewing only published PRs may prefer to stay in GitHub.

Cross-repository work raises the importance of project grouping: a fix run can modify related repositories in the group, whereas review runs are read-only. Check what is grouped and inspect changed repositories after a fix. The terminal-agent toggle and draft privacy limit access to review threads; they do not establish that code remains local once an external agent is involved. The project’s MIT license does not govern connected services.

### Hardware & Deployment Guide
Install the `.dmg` on macOS 13.3+ (Apple Silicon or Intel). On x86_64 Linux, install the `.deb` on Ubuntu 22.04+ or Debian 12+, or the `.rpm` on Fedora; these package installs pull in Git and WebKitGTK. On Linux, GitHub tokens use GNOME Keyring or KWallet, with GitHub CLI sign-in as the fallback when no keyring is available. The optional launcher is installed from Settings → Terminal into `/usr/local/bin` and may require elevated permission.

Local Git review runs in the desktop app; GitHub synchronization and agent execution add separate authentication dependencies. AI features require a supported agent to be signed in, and Claude Code and Codex also require Node.js. The v0.12.0 release added checkout-free PR review and PR editing in a worktree. v0.12.1 fixed missing PR review comments from connected agents and failures when replying to an agent or sending a review on a PR that was not checked out.
```

## Key Capabilities
```text
- Desktop stack: Tauri and a React/TypeScript frontend, with TanStack Virtual and Shiki in the dependency manifest.
- Review scope: Inspect staged or unstaged changes, commits, ranges and branches; annotate unchanged lines from the Files tab.
- Agent handoff: MCP-capable terminal agents read submitted threads for the active repository or worktree; drafts remain private.
- PR workflow: Review without checkout, or edit in a dedicated worktree and push changes back; submit Comment, Approve or Request changes to GitHub.
- CLI launcher: Open repositories, files and PR URLs; use `--ref` for Git review scopes and `-n` for a new window.
- Follow-up review: Viewed files are flagged when they change again; `.diffityignore` filters generated files with gitignore syntax.
```

## Quick Start / Clone
```bash
sudo apt install ./Diffity_*_amd64.deb     # Ubuntu, Debian
  sudo dnf install ./Diffity-*.x86_64.rpm    # Fedora
```
