npm viberevertstdioApache-2.0updated 8d ago
AI broke your project? Undo the session, not your week.
What can you do with VibeRevert?
VibeRevert records an AI coding session, flags risky changes with deterministic rules, and can restore your project files to exactly how they were before it started, including work you hadn't committed.
No AI judges the AI: risk findings are reproducible, explainable, and based on rules you can inspect.
Keep using your coding agent. VibeRevert adds the safety layer around the session โ with Claude Code, Cursor, and other coding-agent workflows.
See it work
The actual CLI, condensed from a real beta payment run โ check flags it, and rollback previews what it will change before you --apply:
$ viberevert check
risk: CRITICAL ยท payments
app/api/checkout/route.ts payments (critical)
app/api/webhooks/stripe/route.ts payments (critical)
$ viberevert rollback <session> # preview โ nothing changed yet
package.json tracked_restored
app/page.tsx tracked_restored
app/api/checkout/route.ts untracked_deleted
app/api/webhooks/stripe/route.ts untracked_deleted
lib/stripe.ts untracked_deleted
.gitignore README.md (your uncommitted work) skipped_unchanged
Proof, not promises
3 real AI coding sessions. 3 exact project-file restorations. Payments, database migrations, and deployment infrastructure โ all with pre-existing uncommitted work preserved. Read the beta report โ
Quickstart
Works inside a Git repository and requires Node.js 22+. VibeRevert keeps its records on your machine and requires no VibeRevert account or hosted service.
npm install -g viberevert@beta
viberevert init # one-time setup in your project
viberevert run <your-agent> # records the session and saves your files' starting state
viberevert check # see what changed and what looks risky
viberevert rollback <session> # preview putting your files back; add --apply to restore
What it protects you from
You let an AI agent work across your project, and it touched more than you expected โ maybe payment code, a database migration, a deploy file โ while your own half-finished work was sitting right there uncommitted. VibeRevert captures your project's starting file state first, so a session you don't like doesn't cost you your afternoon.
What VibeRevert does
Around each AI coding session, VibeRevert:
- Checkpoints your project first โ working tree, staged changes, and untracked files, including work you haven't committed.
- Records the session and the project files that changed while it ran.
- Flags risky edits โ changes touching auth, payments, databases, secrets, dependencies, or infrastructure (risk taxonomy).
- Writes an agent-ready fix prompt from those findings, to paste into your next iteration.
- Restores your files to the checkpoint when you need it.
It warns you; it does not silently block your work. An optional pre-commit hook can reject a commit above your configured risk threshold โ opt-in, tunable, and bypassable like any local Git hook.
Rules decide. Agents fix.
VibeRevert does not ask another language model whether your agent's changes look risky. Its checks are deterministic: the same inputs and configuration produce the same findings, with an inspectable reason for every flag.
When something needs attention, VibeRevert can turn those findings into an agent-ready fix prompt. The rules decide what to flag; you decide what happens next.
What rollback restores โ and what it doesn't
viberevert rollback restores your local project files โ tracked, staged, and untracked, including uncommitted work โ to how they were when the session started. It previews by default; --apply writes the change, and every apply first saves an emergency checkpoint.
It does not reverse effects outside your project files. Deployments, database writes, third-party API calls, payments, and sent emails need their own recovery. Rollback is state-based rather than atomic, and it's a safety net around AI sessions, not a replacement for tests or review. Read what rollback can and can't restore before you rely on it.
One recovery layer across your coding agents
Keep using the coding tools you prefer. VibeRevert can wrap command-line agent sessions (viberevert run <your-agent>) and integrates with tools such as Claude Code and Cursor through its installers.
Built-in checkpoints live inside the agent's workflow. VibeRevert stays with the project.
It captures your project's starting state โ including uncommitted work โ then records the session, flags risky changes, previews the rollback, and keeps that recovery path outside the agent itself.
Use Claude Code today, Cursor tomorrow, or wrap another terminal agent: the safety layer stays with your project.
Wire it into your tools
VibeRevert installs non-destructively and can be removed cleanly. It integrates with Claude Code and Cursor (MCP server and hooks); every install previews its changes and keeps a recovery journal. See getting started.
An experimental terminal bridge (--pty) can intercept commands inside an interactive agent shell; it's best-effort and documented as such in the PTY contract.
Platforms
Linux, macOS, and Windows, on Node.js 22+. CI runs the suite across all three on Node 22 and 24; see compatibility for exactly what each platform is tested to do.
Learn more
- Getting started ยท Commands ยท Configuration
- What rollback can and can't restore ยท Risk taxonomy
- Security policy ยท Threat model ยท Contributing
Support VibeRevert
VibeRevert is Apache-2.0 open source. Sponsoring funds continued cross-platform testing, security work, rollback and recovery testing, and helping pay for independent review. Sponsorship does not influence risk findings or release decisions. โ Sponsor VibeRevert ยท what your support funds
License
Apache-2.0. See NOTICE and the license audit.
Install
Add VibeRevert to your client. Pick the one you use.
claude mcp add viberevert -- npx -y viberevertcodex mcp add viberevert -- npx -y viberevertamp mcp add viberevert -- npx -y viberevert{
"mcpServers": {
"viberevert": {
"command": "npx",
"args": [
"-y",
"viberevert"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"viberevert": {
"command": "npx",
"args": [
"-y",
"viberevert"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"viberevert","command":"npx","args":["-y","viberevert"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"viberevert": {
"command": "npx",
"args": [
"-y",
"viberevert"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"viberevert": {
"command": "npx",
"args": [
"-y",
"viberevert"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"viberevert": {
"command": "npx",
"args": [
"-y",
"viberevert"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"viberevert": {
"type": "local",
"command": "npx",
"args": [
"-y",
"viberevert"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"viberevert": {
"command": {
"path": "npx",
"args": [
"-y",
"viberevert"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y viberevertRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance19/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 0 days ago
- Has a release history
- Repository is not archived
- Licensed Apache-2.0
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.7.1-beta.4Latest | Aug 19, 2026 |