Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>DiffAssistantNew to Visual Studio Code? Get it now.
DiffAssistant

DiffAssistant

Pham Thanh Trung

|
1 install
| (0) | Free
Review a Git branch like a pull request, with Claude Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DiffAssistant

Review a Git branch like a pull request, inside VS Code, with Claude Code.

Pick a branch to compare with. DiffAssistant lists the changed files, tracks what you have viewed, and keeps your comment threads on the diff lines. Claude can review the change, write a guide that walks you through it, answer questions in a thread, and fix what the threads ask for.

The guide overview for a change

Requirements

  • macOS on Apple silicon (arm64) or Intel (x64).
  • VS Code 1.149.0 or later.
  • A Git repository in the workspace.
  • Claude Code, signed in. DiffAssistant finds the claude binary by itself. If it cannot, set diffassistant.claudePath. The status bar shows Claude: sign in when you need to sign in.

Features

Review the change like a pull request

  • Compare with Branch… picks the branch to compare with. The Changed Files view lists every file in the change.
  • Open one diff, or use Open All Changes to see every file in one editor.
  • Mark a file as viewed (Ctrl+Alt+V). DiffAssistant then opens the next file you have not viewed. Press N to jump to it yourself.

Changed Files with one file viewed

Comment threads

  • Comment on any diff line. Reply, edit, resolve, reopen, or delete a thread.
  • Next Thread (Alt+F9) and Previous Thread (Shift+Alt+F9) step through every open thread in all files.

Pull requests and merge requests

  • Publish to PR… (title button in Changed Files) sends your open threads to the GitHub pull request or GitLab merge request of the checked-out branch, as one review. You choose each comment, the verdict (Comment, Approve, Request changes), and what to do with lines that are not in the PR diff. Your unsent drafts on GitHub or GitLab go out with the review.
  • Threads from the PR appear in the same comment widgets, with the reviewer's name and avatar. A reply in a thread that is on the PR posts at once. Resolve also resolves on the PR when you are allowed to.
  • DiffAssistant syncs when the window gets focus, and on Sync with PR. The status bar and the Changed Files view show PR [#142](https://github.com/aquariuxfintech/diffassistant/issues/142) and when it last synced.
  • Sign-in: DiffAssistant uses the sign-in on your machine. Each request sends the token from gh for GitHub or from glab for GitLab, for the host of origin. DiffAssistant does not check the sign-in first: when the platform refuses a request, it shows the error, and you fix the sign-in in the CLI. DiffAssistant never runs git push: push your branch yourself before you publish.

Review with Claude

  • Review with Claude… opens a picker. Choose focus areas, add instructions, and limit the review to the open file or to files that match a glob.
  • Save your own presets, for all repos or for this repo only.
  • Claude leaves each finding as a comment thread on the line. Step through them with Next Finding and Previous Finding, or run the review again.

A Claude finding as a thread on a diff line

Ask Claude and fix threads

  • Click Ask Claude in a thread, press Cmd+Shift+Enter, or mention @claude. Claude answers in the thread. When Claude already spoke in a thread, a plain reply also gets an answer.
  • Fix Threads with Claude… lets Claude edit the files to do what the open threads ask.

Claude answers a question in a thread

Guide

  • Write Guide asks Claude to explain the change in an overview, chapters, and diagrams.
  • Each chapter has stops: places in the diff to read in order. Use ] and [ to move between stops, and V to mark a stop reviewed.
  • Linked Folders lets Claude read folders outside the repo, such as docs or a shared library, while it writes the guide.
  • The File panel in the secondary side bar shows the current file, its chapter, its stops, and its threads.

Claude Runs

  • The Claude Runs view lists each run. Pause, resume, stop, or retry a run, and read its log.
  • A guard hook blocks git push in every Claude run.
  • Generate Commit Message with Claude writes a message from your uncommitted changes. Find it in the Source Control view.

Keyboard shortcuts

Key Command Where
N Next Unviewed File Diff editor or Changed Files view
Ctrl+Alt+V Mark as Viewed Diff editor
Alt+F9 Next Thread Diff editor or Open All Changes
Shift+Alt+F9 Previous Thread Diff editor or Open All Changes
] / [ Next / Previous Guide Stop Diff editor, when a guide exists
V Mark Stop Reviewed Diff editor, when a guide exists
Cmd+Shift+Enter Ask Claude Comment box

Settings

Setting Default What it does
diffassistant.claudePath "" Path to the claude binary. Empty means find it automatically.
diffassistant.review.model opus Model for reviews and the guide: opus, sonnet, or haiku.
diffassistant.review.effort high Effort for reviews and the guide: high, medium, or low.
diffassistant.fix.model sonnet Model for fixing threads and replying in them.
diffassistant.fix.effort medium Effort for fixing threads and replying in them.
diffassistant.review.instructions "" Extra instructions that start filled in the review picker.
diffassistant.review.scope all What a review covers by default: all or openFile.
diffassistant.telemetry.enabled true Send anonymous usage data.

Your data

  • Review presets for all repos live in VS Code's storage for DiffAssistant. You add, edit, and delete them in the review picker.
  • Each repo keeps its threads, guide, and review state in .diffassistant/ at the repo root. DiffAssistant hides this folder from Git through .git/info/exclude.
  • DiffAssistant sends anonymous usage data. Turn it off with diffassistant.telemetry.enabled. If VS Code's telemetry.telemetryLevel is off, DiffAssistant sends nothing.

Develop

You need Node 26.14.0 and pnpm 12.25.1 (see .node-version and packageManager).

pnpm install
pnpm run compile   # type-check, then bundle src into dist/ with esbuild and the webviews with Vite
pnpm run watch     # rebuild the bundle and type-check on every change
pnpm test          # build, then core tests on VS Code's Node, then e2e tests in VS Code 1.149.0
pnpm run shots     # screenshots in a window maximized to 1470x923
pnpm run perf 5    # activation time over 5 launches
pnpm run package   # build a .vsix with the minified bundle
pnpm run release patch   # bump the version (patch, minor, major, or x.y.z), date the changelog, package, commit, tag, publish, and push

pnpm run package reads DIFFASSISTANT_POSTHOG_KEY and DIFFASSISTANT_POSTHOG_HOST from the shell or from .env (copy .env.example). .env is git-ignored, and .claude/settings.json stops Claude Code from reading it.

The extension ships as one bundle, dist/extension.cjs, plus dist/hook.cjs for the guard hook. Tests compile with tsc into out/ and drive the bundle.

pnpm install turns on the pre-commit hook in .githooks/. It runs the script tests, the core tests a change can affect, and the changelog check. It does not run the e2e tests. Run them with pnpm run test:e2e, or pnpm run test:e2e review stops for some labels.

See CHANGELOG.md for what changed.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft