Clause
Every edit Claude Code makes is a clause you haven't signed yet.
Claude writes straight to disk, at full speed. Clause keeps each of those changes pending,
inline in your editor, until you Keep it or Discard it: one block, one file, or all at
once. Close Claude, close the editor, reboot. Your review is right where you left it.
It works with Claude Code, with Codex, with
OpenCode 2.x, with OMP, and with
AGY (Antigravity CLI). The review is the same extension in VS Code or Cursor, including a write
OMP hands to the VS Code editor.

An independent open-source project. Not affiliated with or endorsed by Anthropic.
export function cartTotal(items: Item[]): number {
- return items.reduce((sum, item) => sum + item.price, 0);
+ return items.reduce((sum, item) => sum + item.price * item.quantity, 0);
}
^ 1 of 2 v | Discard Ctrl+N | Keep Ctrl+Y
Green is what Claude wrote. Red is what it replaced, back where it was. The bar is your call.
Why Clause
Claude Code asks for your approval at the moment it edits, and then the change scrolls away.
/rewind restores whole turns; /diff only shows. Switch to accept edits mode and you gain
speed but lose track of what changed.
Clause gives you both. Claude keeps its pace, and you get the review Cursor users know: inline,
block by block, open until you close it. Like a contract you read clause by clause before you
sign. Hence the name.
How it feels
- Ask Claude for a change. It edits four files and keeps going.
- The file it just touched opens at the change: Claude's lines in green, the old ones in red,
right where they were. Your keyboard focus stays in the terminal.
Ctrl+Y keeps a block. Ctrl+N discards it. Select two lines inside a block and Ctrl+Y
keeps just those. Ctrl+Enter keeps the whole file. Changed your mind? Ctrl+Z takes it back.
Alt+L, or the Review Next File button in the status bar, takes you to the next file.
- Not now? Close everything. Tomorrow, after a reboot, every block you haven't decided on is
still waiting.
Highlights
- Survives everything. Pending state lives in files on disk, not in a process. Quit Claude,
close the editor, crash it, reboot: the same blocks come back.
- The agent hears about your Discards. Your next prompt tells it which files lost changes, so
it re-reads them instead of building on code that is gone.
- Find every change at a glance. A violet
◆ marks each file with pending changes in the file
tree and on its tab, and the folders above it turn violet too. Git's letters stay where they are.
- One list, one click. The Clause view in the Source Control sidebar lists every file and
block, with Keep All and Discard All at the top.
- Safe to change your mind.
Ctrl+Z takes back a Keep or a Discard, newest first, as if it
were an edit. A file Claude created goes to the trash when discarded, never deleted outright.
- Yours alone. Everything stays in
~/.claude/pending-edits/ on your machine, readable only by
you. No network calls. The plugin has zero dependencies, just Node's built-in modules.
Quick start
You need Node.js on the PATH of the process that starts the agent, VS Code 1.100+ or Cursor, and
Claude Code, OpenCode, or OMP. Details are under Requirements.
1. Install the extension
Download clause-0.6.0.vsix from the latest release, then:
code --install-extension clause-0.6.0.vsix # VS Code
cursor --install-extension clause-0.6.0.vsix # Cursor
Or build the same file from source:
git clone https://github.com/Yashpal-0/clause.git
cd clause/vscode-extension
npm install
npm run package
2. Allow the proposed API (once per editor)