Review, edit, and approve AI-proposed changes in VS Code's native diff editor before they are applied.
Companion extension for the vscode-diff-mcp MCP server. Works with any MCP client: opencode, Claude Code, Codex, Cursor, and more.
How it works
An AI agent calls edit_with_diff / write_with_diff instead of editing a file directly.
This extension opens the change in VS Code's native diff editor (old vs new).
You review — and can edit the proposal by hand — then click Accept or Reject (Cmd+Enter / Cmd+Shift+Enter; closing the editor counts as reject).
On accept, the MCP server applies the approved content to the file. Nothing is written on reject.
Requirements
VS Code 1.94+
The vscode-diff-mcp MCP server configured in your MCP client (see the repo README)
[!NOTE]
If the extension is missing, the MCP server auto-installs it silently
(code --install-extension iamseb4s.vscode-diff-mcp) when no heartbeat
arrives within 10s of startup.
Features
Native diff editor with accept/reject buttons in the editor title bar