SuperAPI AI Directory

vibe-revert

Local safety layer for coding agents: deterministic risk checks, checkpoints and policy inspection, plus restoring files to their pre-session state.

Open website

About this tool

VibeRevert is a project integrity protection layer for AI coding agents and vibe coding, providing recording, inspection, repair, and recovery capabilities around a single AI coding session.

Purpose When you have an AI agent work in your project, it may touch things beyond what was intended, such as payment code, database migrations, or deployment files, while your own uncommitted work may be in the same workspace. VibeRevert captures the project's starting file state before the session begins, so that one suboptimal session does not cost you a large amount of work.

Main capabilities

  • Checkpoint the project before the session begins, covering the working tree, staged changes, and untracked files, including work that has not yet been committed.
  • Record the session and the project files that changed while the session was running.
  • Flag high-risk edits with deterministic rules, involving authentication, payments, databases, secrets, dependencies, or infrastructure (see risk classification).
  • Generate repair prompts that can be handed to the agent based on these findings, for use in the next iteration.
  • Restore files to the checkpoint when needed.
  • It only warns; it does not silently block your work. An optional pre-commit hook can reject a commit when it exceeds a configured risk threshold, and is opt-in, adjustable, and bypassable like any local Git hook.

Rules decide, the agent repairs VibeRevert does not have another language model judge whether the agent's changes are risky. Its checks are deterministic: the same input and configuration produce the same findings, and every flag has an inspectable reason. When something needs attention, VibeRevert can turn these findings into repair prompts that can be handed to the agent. The rules decide what to flag; you decide what to do next.

Roll back everything or only the parts that went wrong viberevert rollback restores local project files (tracked, staged, and untracked, including uncommitted work) to the state at the start of the session. By default it previews first; only --apply writes changes, and before each application it first saves a recoverable emergency checkpoint. Since 0.8.0, it is also possible to restore only part of the session. For example, if the agent's changes to the payment part are wrong, but the tests it added are fine, you can put back only the payment-related changes and keep the rest.

There are four ways to select, and any one of them switches rollback to selective mode. Positive selectors combine by intersection, so --only 'payments/**' --risk critical means critical changes within payments/, not payments plusall unrelated critical files. The path selector follows renamed files, so files moved out of payments/ can still match. It only executes when everything you selected can be restored: if any selected path drifts after the session ends, the entire operation refuses rather than applying only half, and --force cannot override this. If a selective apply is interrupted, the next one fails closed and points to the emergency checkpoint, rather than layering a second partial restore on top of a partial restore.

Two current limitations to be aware of

  • Sessions that ended before 0.8.0 cannot undergo selective rollback. They did not record what they contributed, and it cannot be reconstructed. Full rollback for these sessions remains available as usual. See MIGRATIONS.md.
  • --finding requires a full finding id, printed by viberevert check --since <session> --json. Short prefixes are not yet accepted.

It cannot reverse effects outside project files. Deployments, database writes, third-party API calls, payments, and sent emails require their own recovery means. Rollback is state-based rather than atomic; it is a safety net around AI sessions, not a substitute for testing or review. Before relying on it, read what rollback can and cannot restore.

One recovery layer across coding agents You can keep using your preferred coding tool. VibeRevert can wrap command-line agent sessions (viberevert run <your-agent>), and integrates with tools such as Claude Code and Cursor through the installer. Built-in checkpoints exist inside the agent workflow, while VibeRevert stays on the project side: it captures the project's starting state (including uncommitted work), records the session, flags risky changes, previews rollback, and keeps the recovery path outside the agent. Use Claude Code today, Cursor tomorrow, or wrap another terminal agent, and the safety layer always stays with the project.

Integrate with your tools VibeRevert installs non-destructively and can be removed cleanly. It integrates Claude Code and Cursor (MCP server and hooks); every installation previews its changes and keeps a recovery log. See the getting started guide. An experimental terminal bridge (--pty) can intercept commands inside an interactive agent shell; it is best-effort and is described as such in the PTY contract.

Supported platforms and requirements Supports Linux, macOS, and Windows, and requires Node.js 22+. CI runs the test suite on three platforms and on Node 22 and 24; see the compatibility notes for the capabilities specifically tested on each platform.

License and support VibeRevert is an Apache-2.0 open source project. Sponsorship funds ongoing cross-platform testing, security work, rollback and recovery testing, and helps pay for independent review costs. Sponsorship does not influence risk findings or release decisions. See NOTICE and the license audit.

Some details (such as the specific command list, configuration items, the full content of risk classifications, the compatibility matrix, etc.) are not fully expanded in the provided materials; consult the corresponding documentation in the project repository.