v0.5.0 · macOS & Windows Native App · Dual-Role Line Auditor

Stop guessing what
AI-written diffs
actually changed.

gloss (noun) — an interlinear annotation illuminating a manuscript. Drop any Git repository onto Diffgloss: your authoring coding agent (codex / claude) explains its edits, while an independent Reviewer audits every single changed line so every hunk is accounted for as explained, collapsed, or unexplained.

100% Line-Audited Coverage
100% Citation Validity
$0.005 Per Full PR (DeepSeek)
Move cursor to tilt 3D layers
src/auth/session.ts · +14 −6 AST Split · Line Audit
12  export async function touchSession(session) {
13    const now = Date.now();
14-   return session.expiresAt > now;
15+   if (session.expiresAt <= now) return false;
16+   session.expiresAt = now + SLIDING_TTL_MS;
17+   return true;
18  }
30  export function verifySession(session) {
31-   if (session.revokedAt !== null) {
32-     throw new Error("Session revoked");
33-   }
34    return session.expiresAt > Date.now();
35  }
COVERAGE LEDGER total(6) = 3 + 1 + 2
● 3 explained ● 1 collapsed ● 2 unexplained
audit: verified ✓ codex-cli (Role A)

touchSession · L15–17

Rejects expired sessions early, then extends expiresAt by SLIDING_TTL_MS.

4/4 lines verified session.ts:15-17
audit: contradicted ✗ safety_check_removed

verifySession · L31–33

Revoked-session guard deleted despite intent saying "Do NOT weaken revoked checks."

Role B Auditor: demoted → unexplained
NEW IN V0.3.0 · NATIVE DESKTOP & DUAL-ROLE AUDIT

Drop a Git folder. Let the author explain — and an independent reviewer audit every line.

Packaged with Tauri v2 and a standalone embedded diffgloss-engine sidecar (zero Node or Bun install needed). Real-time SSE progress streams each stage as it finishes.

Diffgloss.app — Native Desktop (Tauri v2) Sidecar Ready
Drag & drop any local Git repository folder

Loads Working Tree immediately (or latest HEAD commit when clean), then streams Explain → Line Audit → Symmetric Proof.

Cache: .diffgloss/cache/<hunk_id>.json
Download Native v0.5.0 Installers
Or with Homebrew: brew install --cask atomsprout/tap/diffgloss-desktop · CLI: brew install atomsprout/tap/diffgloss or npm install -g diffgloss
ROLE A · EXPLAINER (DEFAULT) Configurable: Author CLI ↔ API Model A

Author's Coding Agent Explains Its Own Diff

Connects read-only to the agent that actually wrote the code — capturing real design intent without letting it touch your working tree.

✓ codex exec -s read-only ✓ claude -p --permission-mode plan --fork-session ↺ Auto-fallback → API Model A
↓ Strict Cold-Start Isolation (No Shared Thread) ↓
ROLE B · INDEPENDENT LINE AUDITOR Checks 100% of +/- Diff Lines

Independent Reviewer Audits Every Changed Line

Reads only the numbered +/- diff lines and Role A's claim. Catches silent omissions and contradictory explanations line by line.

verified ✓ omission_detected ⚠ (amber highlight) contradicted ✗ (demoted → unexplained)
GLASS-BOX ARCHITECTURE

Five stages from raw patch to line-audited truth

Click any stage to inspect how Diffgloss combines sub-second AST preprocessing, Author CLI explanation, independent line auditing, and symmetric-proof review.

INTERACTIVE PREVIEW

Experience the Dual-Role Coverage Ledger live

Switch real AI-authored diff scenarios, inspect Author CLI vs. Role-B Line Audit verdicts, click file:line citations, or toggle Self-Check mode.

ENGINEERED FOR TRUST

Built from hard empirical lessons

Every mechanism in Diffgloss directly counters a documented failure mode of AI code review: unfaithful prose, silent omissions, comment fatigue, and author-anchoring bias.

⌘

Native Tauri v2 Desktop App

Lightweight macOS & Windows app bundling a compiled diffgloss-engine sidecar. Drag any local Git repository folder onto the window to inspect diffs & commits with real-time SSE streaming.

⇆

Author Explains → Independent Audits

Role A connects read-only to local Codex CLI or Claude Code CLI (or configurable API Model A). Cold-start Role B verifies every +/- line and highlights omissions in amber.

✓

Mechanical Citations & Hunk Cache

Checks exact line bounds & verbatim symbols (citations_valid) with 1x repair and honest demotion. Content-addressed .diffgloss/cache/ makes repeated repo reviews instant and free.

⑂

Multi-Language AST Sub-Hunks

Lexer-aware scope tracking across TypeScript, JavaScript, Python, Go, Rust, Java & C++ splits oversized hunks along real function boundaries so sneaky edits cannot hide in big patches.

⚖

Symmetric-Proof Review

Parallel narrow specialists output both verified bugs and Ruled-Out Concerns with concrete code proof. Shaky self-dismissals are automatically escalated to cold verification.

⚙

In-Page Models, MCP & SARIF

10 one-click provider presets (DeepSeek, Claude, OpenAI, Gemini, OpenRouter, Ollama, Qwen, Kimi, GLM) saved locally with chmod 600, plus MCP stdio server, SARIF 2.1.0 & GitHub PR sync.

VERIFIED ON LIVE MODELS

12-Case Multi-Language Golden Eval

Tested across TypeScript, Python, Go, Rust, SQL migrations, GitHub Actions CI, React UI, leaked private keys, cross-file moves, nested classes, and SQL injection.

diffgloss eval --provider deepseek --model deepseek-chat
12 / 12 Golden Cases Passed
100.0% Coverage Invariant
100.0% Citation Validity
0 False Mechanical Hides
$0.0078 Total Cost (12 Cases)
31 / 31 Tests (124 Assertions)
30-SECOND SETUP

Start reviewing with clarity

Install the native macOS/Windows app — or run straight from CLI with Node 20+ or Bun 1.2+.

1. Native Desktop App (Build or Download v0.5.0)
# Or download prebuilt .dmg / .exe from GitHub Releases (v0.5.0)
git clone https://github.com/atomsprout/diffgloss.git
cd diffgloss/desktop
bun run build:all

# Launch native macOS app & drag any Git repo folder onto the window!
open src-tauri/target/release/bundle/macos/Diffgloss.app
2. Dual-Role CLI, Line Auditor & Browser Workbench
# Install the CLI (Node 20+) — or: brew install atomsprout/tap/diffgloss
npm install -g diffgloss

# Launch zero-env-var local browser workbench (configure Role A & B in-page)
diffgloss ui

# Dual-role CLI: Author Agent (Codex/Claude) explains -> Independent Line Auditor checks every line
diffgloss explain main..HEAD --explainer-mode author_cli --audit --review --serve

# Enforce zero unexplained hunks in CI (exit code 2 on violation)
diffgloss validate .diffgloss/ledger.json --max-unexplained 0