diffback is designed to solve the problem of it being difficult to review coding agent changes one by one after the agent modifies multiple files at once. It presents the agent's changes together in a Pull Request-like review interface, letting users point out issues directly and send them back to the agent.
Purpose When a coding agent such as Claude Code completes a task involving multiple files, users often need to open files one by one in the VS Code Source Control view, then switch back to the terminal to describe issues in text, making it easy to miss or forget what they wanted to say. diffback brings the Pull Request-style workflow of "read the whole change, point to specific lines, leave notes, send" into agent collaboration, so users do not need to type file names and line numbers in the chat.
Key capabilities
- Unified multi-file diff: Before committing, Claude stages the content that this commit should include (or takes the entire branch before opening a PR), writes one or two lines of description for each file in the chat and marks the spots worth reviewing, then calls the plugin's show-diff.sh. VS Code opens the repository and uses the built-in multi-file diff editor to display all changed files stacked side by side, with each file collapsible.
- Comments on any selection: You can select entire lines or three characters, on either the new side or the old side. The Review panel on the right provides a comment box; click to type and press Ctrl+Enter (Cmd+Enter on macOS) to add. Commented code stays highlighted, hovering shows the content, and clicking a comment in the panel jumps back to the corresponding location. There is also an Overall note box at the bottom for general feedback. Drafts are preserved after the window reloads.
- One-click publish back to the agent: After pressing Publish, Claude receives all comments at once and handles them one by one, for example app/handlers.py:85-89 → re-raise after the last attempt; questions are answered in the chat. After modifying the code, it stages the fixes and opens the diff again. Content that was not sent when the window is closed is also published; closing with no comments means it has been reviewed with nothing to add.
- Publishing is not approval: Claude still waits in the chat for explicit confirmation before committing, pushing, or opening a PR, and first provides the commit message or PR title and description for editing.
- Local file protocol: Both sides communicate through ordinary JSON files in <git-dir>/diffback/ (usually .git/diffback/); git does not see these files, and there is noThere is a server. wait-review.sh waits in the background for review.json or for all windows in the repository to close, then moves the result into reviews/ and prints it. Line and column numbers start at 1, side is "new" or "old", and reviews delivered because a window closed use "closed" instead of "published". The format is not tied to Claude; any agent or script that can write request.json and read review.json can use this extension. See docs/protocol.md for full details.
Usage Install the plugin in Claude Code (this repository is itself a plugin marketplace, so the first command points to it); the VS Code extension can be installed from the VS Code Marketplace and Open VSX, and for manual installation you can download diffback.vsix from GitHub Releases and run code --install-extension diffback.vsix. After that, Claude will show the diff before it is about to commit, and you can also ask "show me the changes" at any time. The command palette provides diffback: Publish review and diffback: Show review panel.
Use cases Suited to developers who use coding agents such as Claude Code and want to review multi-file changes in one place before committing, especially when changes are scattered and need point-by-point feedback.
Limitations Requires VS Code 1.106 or newer, and the code command must be in PATH; VS Code forks need DIFFBACK_EDITOR set (e.g. cursor). Tested on Linux (Fedora); on macOS the scripts have run under CI's stock bash, but the extension itself has not been tested on macOS; Windows is untested, WSL may work. The diff is opened via VS Code's internal _workbench.openMultiDiffEditor command, which is not a public API and may change in future versions. Jumping back to comments on the old side can only scroll approximately, because VS Code scrolls by the new side. The comment box does not automatically take keyboard focus when it appears, to avoid breaking mouse selection andcopying in the diff. Other agents need their own instructions to run show-diff.sh, wait for review.json, and process it. On first use, Claude Code will request permission to use this skill and run the scripts; after choosing "Yes, and don't ask again" it will proceed automatically. All delivered reviews are saved in <git-dir>/diffback/reviews/. You can also manually run bash plugin/scripts/show-diff.sh <repo> staged|uncommitted|<base>...<head> to open a diff when no agent is listening.