Redline
Review what Claude writes, line by line, inside your own editor. Install · How you use it · How it works · Shortcuts · FAQ
Why RedlineClaude Code works fast, often in several sessions at once. The catch: you stop seeing your own code change. Redline puts every edit back in front of you, in the file, where it happened, so you keep or drop each one in a second, and Claude keeps working.
InstallYou need git, Claude Code and VS Code or Cursor. From the extension store
Updates come through the Extensions view, like any extension. From sourceYou also need Node.js 20.19+ or 22.12+.
Then quit your editor completely (Cmd+Q) and open it again. That's it.
What
|
| Button | What it does |
|---|---|
| Accept ⌥⌘Y | Keeps the change. Your file isn't touched; Redline just stops asking about it. |
| Reject ⌥⌘N | Puts the old lines back, as a normal edit you can undo with Cmd+Z. |
| Ask | Opens a thread on this change: ask Claude about it, or ask it to fix something. |
| Why | Shows what you asked and what Claude said when it made the change. |
| Diff | Opens the full diff of the file. |
| ⌃ 3/4 ⌄ · ‹ 1/2 › | Jump to the previous / next change, and the previous / next file. |
3. Move on. The bar at the bottom jumps to the next change and the next file, and opens the next file when one is done. Accept all in Claude's band takes everything at once, and you can still undo it from History.
The Redline sidebar
| Panel | What's in it |
|---|---|
| Review | Repository → worktree → Claude session → file → change, with counts. Click to jump. |
| History | Every accept and reject, each with ↶ Undo. |
| Pull Requests | Open PRs per repo (needs the gh CLI), and Open PR for a finished worktree. |
| Worktrees | Your worktrees with their status, and one-click cleanup of merged ones. |
| Controls | On / off, updates, rich mode, Claude usage, and your picture in the band. |
In Claude
| Command | What it does |
|---|---|
/redline |
What's waiting for review |
/redline open |
Open the review in your editor |
/redline editor cursor · code |
Choose which editor opens |
/redline off · on |
Turn Redline off or on, in Claude and the editor together |
Keyboard shortcuts
| Mac | Windows / Linux | |
|---|---|---|
| Accept the change at the cursor | ⌥⌘Y | CtrlAltY |
| Reject the change at the cursor | ⌥⌘N | CtrlAltN |
| Next / previous change | ⌥] / ⌥[ | Alt] / Alt[ |
| Next / previous file | ⌥⇧] / ⌥⇧[ | AltShift] / AltShift[ |
| List of all changes | ⌥⌘R | CtrlAltR |
| Turn Redline on / off | ⌥⌘⇧O | CtrlAltShiftO |
How it works
Redline has two parts that talk through files only:
- The Claude Code plugin (
claude-plugin/) saves a copy of each file just before Claude's first edit to it: the baseline. It also notes why each change was made, and shows the band above the prompt. - The editor extension (this repo) compares each file with its baseline and draws the difference.
pending = file now ≠ its baseline
accept = move the baseline forward (your file isn't touched)
reject = write the baseline lines back (undoable)
Everything stays on your machine, inside each repo's .git/inline-review/ and ~/.claude/inline-review/. Nothing is committed, pushed or sent anywhere.
FAQ
I don't see the Accept / Reject buttons
Make sure the file is one Claude changed in this session (the status bar shows how many files are waiting). If you just installed, quit the editor completely and reopen it; reloading the window isn't enough for rich mode. Redline → Controls shows what's missing and fixes it in one click.
The band doesn't show above Claude's prompt
It appears once Claude edits a file. In sessions that were open before you installed, type /reload-plugins. In Claude Desktop, start a new session.
Does it stage or commit anything?
It never commits. Accept also stages the change in git only when git's staged version still matches the old one (setting: redline.stageOnAccept), so your own staging is never overwritten.
Can I put my own picture in the band?
Redline → Controls → Band picture, and pick an .svg, .png or .jpg (64×64 is plenty). Back to the Redline mark undoes it.
How do I turn it off?
/redline off in Claude, the ⏻ button in the sidebar, or ⌥⌘⇧O. One switch covers Claude and the editor, and nothing in git or your files changes.
Install without the script
Clone this repo (the Claude plugin installs from it), run npm ci && npm run package, and install the redline-inline-review-<version>.vsix it makes via Extensions → ⋯ → Install from VSIX…. Then open Redline → Controls, which installs the Claude plugin and turns on rich mode.
Develop
npm ci
npm run check # lint, format, types, tests
npm run package # builds redline-inline-review-<version>.vsix
To publish a release to the Marketplace and Open VSX, follow RELEASING.md.
Press F5 in VS Code to run the extension from source. CLAUDE.md describes the architecture and the rules the code keeps.
License
MIT © Gitam Shimoni