viberevert
VibeRevert は AI コーディングセッションを記録し、決定的なルールでリスクのある変更を検出し、プロジェクトファイルをセッション開始前の状態に正確に復元できます。コミットしていない作業もそのまま対象です。
AI に AI を評価させることはありません。 リスク検出の結果は再現可能で説明可能、そしてあなた自身が確認できるルールに基づいています。
使い慣れたコーディングエージェントをそのまま使えます。 VibeRevert は、Claude Code や Cursor、その他のコーディングエージェントのワークフローの周りにセーフティレイヤーを追加します。
動作の様子
右に示す実際の CLI 出力は、ベータ版の実際の実行から凝縮したものです。check がリスクを検出し、rollback が --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_unchangedRelated MCP server: uacos
約束ではなく、実証
実際の AI コーディングセッション 3 件。3 件ともプロジェクトファイルを正確に復元しました。 決済、データベースマイグレーション、デプロイインフラ — いずれも既存の未コミット作業を保持したままです。ベータ版レポートを読む →
クイックスタート
Git リポジトリ内で動作し、Node.js 22+ が必要です。VibeRevert は記録をあなたのマシン上に保持し、VibeRevert アカウントやホステッドサービスは不要です。
npm install -g viberevert@betaviberevert 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何から守ってくれるのか
AI エージェントにプロジェクト全体を扱わせたら、想定以上に多くのファイルを触られた — たとえば決済コード、データベースマイグレーション、デプロイファイル — 一方で、自分の中途半端な作業は未コミットのままそこにあります。VibeRevert は、まずプロジェクトの開始時点のファイル状態を取り込むので、気に入らないセッションでも午後を無駄にしません。
VibeRevert が行うこと
AI コーディングセッションの各回について、VibeRevert は:
まずプロジェクトをチェックポイントします — コミットしていない作業も含め、ワーキングツリー、ステージング済み変更、未トラックファイル。
セッションを記録し、その間に変更されたプロジェクトファイルも記録します。
リスクのある編集にフラグを立てます — 認証、決済、データベース、シークレット、依存関係、インフラに触れる変更(リスク分類)
その検出結果から次回合わせに貼り付けられるエージェント向け修正プロンプトを生成します
必要なときにファイルをチェックポイントへ復元します
これはあなたに警告するもので、黙って操作を妨げることはありません。オプションの pre-commit フックを使えば、設定したリスクしきい値を超えるコミットを拒否できます。オプトインで調整可能、ほかのローカル Git フックと同じくバイパスもできます。
ルールが判定し、エージェントが修正する
VibeRevert は、別の言語モデルに「エージェントの変更はリスクに見えるか」を質問しません。チェックは決定的です。同じ入力と設定からは常に同じ検出不都合が得られ、それぞれのフラグには検証可能な理由があります。
何かに注目が必要なとき、VibeRevert はその検出結果を、エージェントに即つかえる修正プロンプトへ翻訳します。何をフラグするかを決めるのはルール、次にどうするかを決めるのはあなたです。
ロールバックで復元されるもの — されないもの
viberevroll は ローカルプロジェクトファイル — 追跡済み、ステージ済み、未そして未追跡のファイル(コミットしていない作業を含む)— を、セッションが始まった時点の状態へ要件します。デフォルトではプレビューのみを行われ、実際に反映するには --apply し、適用のたびにまず緊急チェックポイントへ保存されます。
プロジェクトファイルの外へ及んだ影響は元に戻しません。デプロイ、データベースへの書き込み、第三者が提供する API 呼び出し、決済、送信済みメールは、それぞれ法文の復旧処理が必要です。ロールバックは原子処理ではなく、状態ベースのものです。AI セッションを待つ守りの網であり、テストやレビューの代わりではないません。実際にこれを当てにする前に ロールバックが復元できることや勿論をご読んでください。
コーディングエージェントをつなぐ 1 つの復元レイヤー
好みのコーディングツールをそのまま使ってください。VibeRevert はコマンドラインのエージェントセッションをラップできる。 (viberevert run <your-agent>) します。導入セットアップを通じて Claude Code や Cursor といったツールとも連携します。
ビジルトインのチェックポイントはエージェントのワークフロー内部に存在します。VibeRevert はプロジェクトとともにある。
プロジェクトの初期状態(コミットしていない作業を含む)を取り込み、セッションを記録し、リスクのある変更をフラグし、ロールバックをプレビューし、その復旧経路をエージェント側の外側に保持し続けます。
今日は Claude Code、明日は Cursor、その他のターミナルエージェントをラップする — セーフティレイヤーはプロジェクトに残ります。
ツールへの組み込み
VibeRevert は非破壊的にインストールされ、清潔にはがすことができます。Claude Code と Cursor(MCP サーバーとフック)に統合されており、どのインストールも変更内容をプレビューし、復旧ジャーナルを保持します。基本 をご確認ください。
実験的 なターミナルブリッジ (--pty) は、対話型エージェントシェル内のコマンドを確認できます。ベストエフォートであり、その旨が [PTY 契約]に明記されています。(docs/pty-contract.md)。
対応プラットフォーム
Linux・macOS・Windows で動作し、Node.js 22+ を対応し。CI は3環境すべてで Node 22 と 24 を使用してスイートを実行しています。各プラットフォームで検証済みの範囲の定義は 互換性 を参照してください。
もっと学ぶ
VibeRevert を支援する
VibeRevert は Apache-2.0 のオープンソースです。スポンサー資金は、継続的なクロスプラットフォームテスト、セキュリティ作業、ロールバック評価とリカバリテスト、独立したレビュー費用に使わります。スポンサー行為が、リスク検出結果やリリースの判断に働きかけることはありません完成。 → VibeRevert をスポンサーする · 支援が反映された使われ方
ライセンス
Apache-2.0 に基づきます。NOTICE と ライセンス監査 もご覧ください。
Available Tools
8 toolscheck_repoB
Run safety checks against the working tree or staged diff and return the resulting ReportFile (or summary when large). Side-effecting (class B per D99.V): always persists the ReportFile under .viberevert/.
Inputs: task, since, staged, threshold.
classify_riskA
Project a check report's findings into per-severity counts (critical, high, medium, low). Read-only (class A per D99.V); no threshold input -- returns the full per-level histogram.
Inputs: report, session.
create_checkpointA
Create a standalone VibeRevert checkpoint capturing the current working tree state. Returns the new checkpoint id and creation timestamp. Side-effecting (class B per D99.V); writes a checkpoint directory under .viberevert/checkpoints/. When name is supplied, uses the D22 name-uniqueness lock; nameless checkpoints skip the lock entirely.
Inputs: name.
explain_diffA
Render a CommonMark explanation of a check report alongside the report's metadata. Reads an existing ReportFile (read-only, class A per D99.V); does not run new checks.
Inputs: report, session, threshold.
generate_fix_promptA
Render a fix-prompt from a VibeRevert check report. Returns the rendered prompt text, the absolute path to the persisted sibling fix-prompt.txt, and the source report id. Side-effecting (class B per D99.V); writes the sibling fix-prompt.txt via atomic temp+rename. The on-disk sibling is always the full untruncated text (D81); the MCP wire response's prompt_text is capped at 262144 bytes (D99.U) -- when truncated, the response carries truncated:true + bytes_omitted.
Inputs: report, session.
get_policyA
Return the project's resolved policy slice from .viberevert.yml: block/warn risk thresholds, check toggles, frameworks, and rollback exclude patterns. Applies M C defaults (D57) before returning. Read-only (class A per D99.V); does not run checks or mutate state.
Inputs: no named parameters.
list_risky_filesA
Project a check report into a per-file risky-files list (path, max_severity, finding_count) sorted by [max_severity DESC, finding_count DESC, path ASC]. Read-only (class A per D99.V). Capped at 500 entries per D99.U.
Inputs: report, session.
start_sessionA
Start a new VibeRevert session: create the inner checkpoint, capture pre-session git status, and acquire the active-session lock. Returns the new session id, checkpoint id, and start timestamp. Side-effecting (class B per D99.V); writes session state and uses the D22 start lock during execution.
Inputs: task.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have clearly distinct roles (create checkpoint, run checks, configure policy, start session), and the report-consuming tools produce different outputs. However, create_checkpoint and start_session overlap in checkpoint creation, and explain_diff, classify_risk, and list_risky_files all operate on check reports, requiring careful reading to choose the right one.
All tool names follow a consistent verb_noun snake_case pattern: create_checkpoint, check_repo, explain_diff, classify_risk, list_risky_files, get_policy, start_session, generate_fix_prompt. There is no mixed casing, vague single-word verbs, or inconsistent naming style.
Eight tools is a well-scoped surface for a checkpoint and safety-reporting server. Each tool covers a recognizable stage of the workflow, and none feel like duplicates or padding.
The server can create checkpoints, start sessions, run checks, and analyze reports, but there is no end/abort session tool, no revert or rollback operation despite the server being named VibeRevert, and no way to manage checkpoints beyond creating them. These are significant gaps that leave core workflows incomplete.
Maintenance
Related MCP Connectors
IaC, CI and dependency security review for coding agents: local scan CLI plus hosted OAuth MCP.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Audit your MCP servers for poisoned tools and leaked secrets, and check AI-generated code for flaws.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceOpen-source AI code review MCP server for local git diff auditing with deterministic security rules and AI-powered analysis using any OpenAI-compatible model.4MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first code intelligence and safety layer for AI coding agents. MCP server exposes dependency graph, impact analysis, and AST-compressed repo context, backed by typed local memory, patch-scope safety gates, and git-independent transaction rollback.1MIT
- AlicenseCqualityDmaintenanceSecurity scanner and MCP server that catches dangerous patterns in MCP servers and AI agent projects, such as leaked secrets, shell execution, and prompt-injection text. Runs as both a CLI and MCP server with CI-friendly severity gates.21MIT
- AlicenseNot gradedqualityCmaintenanceAI code reviews and git activity digests with machine-readable risk scoring, available as an MCP server for use within an agent session.1MIT