MRX Claude Code
Cursor-like inline diff review for any AI CLI agent's file edits — right inside VS Code — with visual claude chats in tabs (or the plain CLI in a terminal, if you prefer it).
Works with any AI CLI tool out of the box (Claude, Codex, Qwen, and more) — no setup, no hooks required. Review, accept, or revert changes without ever leaving VS Code.
Requirements
- VS Code 1.85 or newer.
- For chats and
claude terminals: Claude Code installed and signed in on the machine where the folder is. The extension runs your own unmodified claude; it has no login of its own and never sees your credentials. Diff review works without it.
This is an unofficial extension. It is not made by, endorsed by or affiliated with Anthropic.
Features
Review every AI edit before it lands.
Accept or reject each AI change with one click in the side panel — per file, or per folder (recursively) via hover-revealed buttons.
Run an AI CLI agent right inside the embedded terminal.
See changed files in their real folder structure.
Review changes hunk by hunk directly in the editor.
Pick the terminal theme and the folders to ignore on the Settings page.
Diff review
- Works with any AI CLI tool's file edits (Claude, Codex, Qwen, or anything else) — detected via workspace file writes, no hooks or CLI-specific integration required.
- Review changes hunk by hunk directly in the editor, or accept/revert a whole file at once.
- Accept or revert a whole folder at once — hover a folder row in the pending-files tree for recursive accept/reject buttons.
- The changes tab shows how many files are currently pending.
- Find All References, Go to Definition (Project-wide), Go to Implementations, Go to Type Definition, and Rename Symbol (Project-wide) are available from the diff editor's right-click menu — these bridge to VS Code's real, project-wide language service (Monaco's own built-ins only see the single file being diffed, so they can't resolve anything outside it).
mrx-claude-code.excludedFolders lets you exclude additional folders from tracking, on top of the built-in list (node_modules, .git, dist, etc.) — defaults to node_modules, .angular, build.
mrx-claude-code.autoOpenDiffEditor (default true) controls whether a diff tab pops open automatically when a tracked file changes. Turn it off to keep tracking changes (pending list, accept/revert) without a tab appearing on every write — open a file's diff yourself from the pending-files list.
Visual chat
Many chats at once, each in its own tab with its own claude process. A dot on the tab tells you which one is working, waiting for an answer, or finished while you looked elsewhere.
Streaming markdown, collapsible thinking, inline diffs for edits, command output, todo lists, subagents, plan approval and questions.
Permission prompts as a card: Yes, Yes and don't ask again, No, or tell Claude what to do instead. Modes (ask / edit automatically / plan / auto) switch with Shift+Tab.
@ mentions files, / runs commands, images paste straight in, and the file or selection open in the editor is sent along as context (one click to turn off).
Messages sent while Claude works are queued and can be removed again. Esc stops the current turn.
Model, effort and context usage are in the composer bar. The line below it always shows your plan's 5-hour and weekly usage (or your own Claude Code statusLine, with mrx-claude-code.chat.useStatusLine), the connected browser by name, whether the chat is on Remote Control, and whether Claude Code has an update.
Works over Remote-SSH: the CLI runs where the folder is; pasted images and the UI stay on your side.
Nothing listens on a port: the chat talks to the claude process over stdin/stdout.
The same session can move between a chat and a terminal tab at any time (right-click the tab).
Background work stays in sight: subagents, shells and monitors that outlive their tool call are listed above the composer with what they are doing and for how long. Click one to find the call, or stop it there.
Integrated terminal & Claude sessions
- An embedded terminal (xterm.js + node-pty) lives in the "MRX Claude Code" panel, so you don't need to leave VS Code to run
claude or any other CLI.
- The
+ menu opens a visual chat, a terminal running claude, or a bare shell; mrx-claude-code.defaultTab decides which comes first.
- Tabs are remembered across restarts — visual chats with their history, without starting claude until you need it. A terminal tab's name follows whatever title the running program sets (e.g. claude's own chat/session name); if it looks like a real chat name (not a shell-set path), it's remembered. On the next VS Code startup, each remembered tab is recreated and automatically resumed with
claude --resume "<name>". Plain shell tabs are never remembered, and if nothing was open, nothing opens automatically — no default blank tab, whether on startup or after closing your last tab.
- Claude Sessions panel (clock icon in the terminal toolbar): lists every claude session recorded for this workspace — not just the ones currently open as tabs — sorted by last activity, with a search box. Click a session to resume it in a new tab; hover for a delete (trash) button, which asks for confirmation inline before permanently deleting that session's conversation history.
- This reads claude's own session transcripts directly off disk, since there's no public API for it — an internal, undocumented format that a future Claude Code release could change without notice.
- Terminal tab titles show the running program's title (truncated to the tab's width), with the full name available as a hover tooltip.
Usage
- Open the "MRX Claude Code" panel in VS Code's activity bar.
- Run an AI CLI agent — Claude, Codex, Qwen, or anything else — in a visual chat, the integrated terminal, or an external terminal. Edits are picked up automatically, no setup needed.
- Review pending diffs: per hunk in the editor, or per file/folder in the pending-files list.
- Accept or revert changes per hunk, per file or per folder.
- Open the Claude Sessions panel any time to resume or clean up past conversations for this workspace.
Settings
| Setting |
Default |
Purpose |
mrx-claude-code.excludedFolders |
["node_modules", ".angular", "build"] |
Extra folder names/patterns to exclude from tracking (matches a whole path segment, case-insensitive, supports */?) |
mrx-claude-code.autoOpenDiffEditor |
true |
Whether a diff tab opens automatically when a tracked file changes; when false, changes are still tracked (pending list) without a tab popping open |
mrx-claude-code.supportedFileDetectionMode |
defaultAndCustom |
Use the built-in text-file rules together with custom settings, or custom only |
mrx-claude-code.supportedFileExtensions |
[] |
Extra file extensions treated as text |
mrx-claude-code.supportedFilenames |
[] |
Extra exact filenames treated as text |
mrx-claude-code.supportedFilenamePatterns |
[] |
Extra filename glob patterns treated as text |
mrx-claude-code.maxFileLines |
5000 |
Files longer than this are ignored entirely (no baseline, no diff); 0 disables the limit |
mrx-claude-code.burstDetectionEnabled |
true |
Advanced — hold files beyond the burst threshold to confirm a git branch change before opening a diff |
mrx-claude-code.burstDetectionWindowMs |
300 |
Advanced — sliding window (ms) used to count changes for burst detection |
mrx-claude-code.burstDetectionThreshold |
8 |
Advanced — number of files changed within the window that counts as a burst |
mrx-claude-code.burstDetectionHoldMs |
2000 |
Advanced — how long to hold burst-threshold-exceeding files before opening their diff |
mrx-claude-code.defaultTab |
chat |
What comes first in the + menu and what a click in the sessions list opens: chat or terminal |
mrx-claude-code.claudePath |
"" |
Full path to the claude executable used by chats; empty searches PATH and the usual install locations |
mrx-claude-code.chat.initialPermissionMode |
inherit |
Mode a new chat starts in; inherit follows Claude Code's own settings |
mrx-claude-code.chat.allowBypassPermissions |
false |
Offer "Bypass permissions" in the mode menu |
mrx-claude-code.chat.chrome |
false |
Start chats with the browser tools (Claude in Chrome); /chrome switches them per chat |
mrx-claude-code.chat.useStatusLine |
false |
Show your own statusLine output instead of the usage meters |
mrx-claude-code.chat.checkForUpdates |
true |
Show when a newer Claude Code is available (anonymous request to registry.npmjs.org) |
mrx-claude-code.chat.useCtrlEnterToSend |
false |
Ctrl+Enter sends, Enter starts a new line |
The default tab, the terminal theme and the excluded folders are on the panel's Settings page. Everything else is in VS Code's own settings.
Development
npm install
npm run compile
Press F5 in VS Code to launch the Extension Development Host.
Package the extension:
npx @vscode/vsce package
Credits
This extension started as a fork of ai-cli-diff-view by konan-1947, taken while it was under the MIT license. The change tracker and diff review are based on that work.
License
MIT
| |