Local code review for macOS

Review the work before it’s a pull request.

Diffbench watches your git repos and shows what changed the moment it changes. Comment on any line. Then hand the comments to Claude Code, Codex or another coding agent as a review it can fetch, answer row by row, and link to each fix.

For developers who run coding agents across several repos and worktrees, and want to read the work as it lands.

Free. Every feature, any number of repos, no account.

macOS 13 Ventura or later · Apple silicon and Intel · Runs entirely on your Mac

Diffbench showing the branch feature/due-date-reminders against main. Two comments sit in the diff of src/reminders.ts, the changed files are listed on the left, and the branch list on the right shows the branch’s commits.

The problem

Most of what needs review is not a pull request yet.

Work arrives continuously, across several repos at once. Much of it is written by agents running in parallel folders of the same repository. Ordinary tooling handles four things badly.

The problem: A pull request needs a push, a remote and a round trip through a web UI. It cannot show work that is not committed.

What Diffbench does: Diffbench watches the folder. Uncommitted work, in your checkout or in an agent’s worktree, is something to look at, and it refreshes while you watch.

The problem: git diff and its GUIs show a change, then forget it. No comment, no thread, nothing to point at later.

What Diffbench does: Every view is a URL. Comments stay on the view they were written on and collect into a review with a stable id.

The problem: A comment pinned to file.rs:214 is wrong after the next rebase. It points at an unrelated line, or vanishes.

What Diffbench does: Comments anchor to the text of their line. When history moves under one, it is flagged orphaned and shown with its original text.

The problem: “Fix the things I mentioned” is not something an agent can act on.

What Diffbench does: A review has an id an agent can fetch, reply to row by row, and link each reply to the commit that addressed it.

Features

Worktrees

Watch an agent’s work before it commits.

A worktree is how an agent works without disturbing what you have open. The branch it has checked out carries a +adds −dels badge for its uncommitted changes.

Click the badge to open them. The view re-fetches itself while it is open, so the agent’s edits appear as they happen.

The uncommitted changes in an agent’s worktree named overdue-fees: a new file, src/fees.ts, and a one-line change to src/loans.ts. In the branch list, the branch agent/overdue-fees shows a +13 −0 badge.

Reviews

Hand a review to an agent. Get an answer on every row.

Your comments collect into a review with a stable id. Hand off copies instructions that carry that id. Paste them into your agent.

The agent fetches the review from Diffbench’s local API, commits each fix on the branch, and replies on each row with the commit that addressed it. Each reply links to that commit.

A review table for the branch feature/due-date-reminders. Each row shows the code a comment was written on, the comment, and the agent’s reply. Three replies name the commit that fixed the comment; one asks a question back.

Agent reviews

Let one agent review another.

An agent can post a review of a branch in one call: comments anchored to lines, a decision, and its own name on every row.

The agent that wrote the branch fetches that review and answers it the same way it answers yours.

A review written by an agent called review-agent on the branch fix/isbn-checksum, marked Changes requested, with three comments.

And the rest

  • Every way to look at a change

    A branch against the default branch, one commit, a span of commits, two branches, two commits, every file on disk, or uncommitted changes. All of them share one URL shape.

  • Links to any lines

    Click a line number, shift-click another, and the URL carries the range. Copy the link, or the link and the code, fenced and labelled for an agent.

  • Live, without losing your place

    A commit landing anywhere shows up without a refresh. If you are halfway through a comment, the update waits behind a pill.

  • Several repos at once

    Point it at your code folder and add any git repo under it from the window. Switch between them from the header, or with ⌘1 to ⌘9.

  • Comment on rendered Markdown

    Markdown files render by default. Hover a paragraph, heading or code block to comment on it; the comment is kept against its source line.

  • Branch intent

    An agent can record why a branch exists: its context and its definition of done, shown beside the branch name.

  • Branches, organised

    Sort by latest activity, group branches into sections, or archive them. Nothing in git changes.

  • Stays up from the menu bar

    It keeps running from the menu bar after its last window closes, which keeps the API up for your agents.

  • Backed up every day

    Reviews and comments are backed up beside the database: one copy a day, the last seven kept, and one before each upgrade.

Every feature is in the user guide →

For agents

A review your agent can act on, without being told how.

The server documents its own contract, at /api/docs/agents, so it always matches the API the agent is calling.

  1. You comment.

    Hover a line and click +. Comments join the review the view is collecting into.

  2. You hand off.

    Hand off asks for your decision (approve, approve after addressing, or request changes), then copies instructions with the review’s id.

  3. The agent answers.

    It fetches the review, commits each fix on the branch, and replies on each row with the commit’s sha.

  4. You check.

    Every reply links to the commit that addressed it. Resolve the row, or reply again.

An agent’s reply to one row

review=http://localhost:8788/api/r/<slug>/reviews/<review_id>
curl -s -X POST "$review/messages" \
  -H 'Content-Type: application/json' \
  -d '{"comment_id": "<row id>",
       "commit_sha": "1394fb6",
       "body": "Fixed in 1394fb6. The guard runs first now.",
       "author": "agent"}'

Works with any agent that can make an HTTP request to localhost: Claude Code, Codex, GitHub Copilot and others. Agents can also review each other’s branches through the same API.

Read the agent contract →

Private

Your code stays on your Mac.

  • Repos, comments and reviews never leave the Mac. There is no account.
  • The app’s server listens on your Mac’s loopback address only.
  • It reads your repos. It changes one only when you push or delete a branch from the app.
  • No analytics, no telemetry. The network is used to check for updates, and to activate a supporter key if you enter one.

Privacy details →

Price

Price: Free every feature, for good

No trial, no account, no limit on repos, nothing that locks later.

If Diffbench earns its place in your day, you can pay what you want for a supporter license. It unlocks nothing; it keeps Diffbench going. Payment is handled by Polar, the merchant of record.

System requirements

What you need

macOS
macOS 13 Ventura or later
Mac
Apple silicon or Intel
Git
Diffbench runs your installed git. The copy Xcode’s command-line tools install is enough.

Nothing else to install: its server and its interface are inside the app.

Questions

Frequently asked

Is it really free?

Yes. Every feature, any number of repos, for as long as you use it. There is no account, no trial and nothing that locks later.

Then why would I pay?

Only if you want to. If Diffbench earns its place in your day, or your team's, you can pay what you want for a supporter license through Polar. It unlocks nothing, because nothing is locked. It keeps Diffbench being worked on, and the app says thank you in its settings.

Does my code leave my Mac?

No. Your repos, comments and reviews stay on your Mac, and there is no analytics or telemetry. The app goes online to check for updates, and to activate a supporter key if you enter one. Privacy lists exactly what is sent.

How do updates work?

Diffbench checks for a new version once a day and always asks before installing it. Diffbench → Check for Updates… checks straight away, and Settings → General turns the daily check off. Every update is free too.

The changelog lists what changed in each version.

Which agents does it work with?

Any agent that can make an HTTP request to localhost, which includes Claude Code, Codex and GitHub Copilot. The contract is plain HTTP and JSON, documented in the agent contract. Settings → Agents installs the bundled skill for Claude Code, GitHub Copilot and the shared ~/.agents/skills folder.

Something is wrong, or missing.

Write to support@diffbench.dev. Every message is read.