# Vestige Vestige stops AI coding agents from breaking your repository, leaking secrets, or forgetting yesterday's architecture decisions. It runs locally in Rust as a command guardrail, signed audit log, and cross-session memory layer for Claude Code, Cursor, Windsurf, Codex CLI, and Antigravity without needing embeddings or paid cloud APIs. [![Rust](https://img.shields.io/badge/Rust-000000)](https://github.com/samvallad33/vestige) [![License: AGPL-3.0](https://img.shields.io/github/license/samvallad33/vestige)](LICENSE) [![Release](https://img.shields.io/github/v/release/samvallad33/vestige)](https://github.com/samvallad33/vestige/releases/tag/v7.1.1) [![Glama Score](https://glama.ai/mcp/servers/samvallad33/vestige/badges/score.svg)](https://glama.ai/mcp/servers/samvallad33/vestige) [![Add to Cursor](https://img.shields.io/badge/Cursor-Install_MCP-000000)](cursor://anysphere.cursor-deeplink/mcp/install?name=vestige&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInZlc3RpZ2UtbWNwLXNlcnZlciJdfQ==) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_MCP-0098FF)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22vestige%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22vestige-mcp-server%22%5D%7D) ## Install in one command ```bash npx @vestige/init ``` The installer detects Antigravity, Claude Code, Cursor, Codex, and Windsurf on your machine, sets up the local MCP server, and connects the pre-execution safety hooks. Restart your editor once it finishes.
Homebrew, standalone binaries, manual MCP JSON, Nix, and GitHub Actions - Homebrew on macOS and Linux: `brew install samvallad33/tap/vestige` - Shell installer on macOS and Linux: `curl -fsSL https://raw.githubusercontent.com/samvallad33/vestige/main/scripts/install.sh | sh` - Windows and prebuilt binaries: [GitHub Releases](https://github.com/samvallad33/vestige/releases/tag/v7.1.1) - Nix: `nix run github:samvallad33/vestige` - Manual MCP config: `{"mcpServers":{"vestige":{"command":"npx","args":["-y","vestige-mcp-server"]}}}` - Proof-Carrying PR Action: `uses: samvallad33/proof-carrying-pr-action@v1` - Causal Gate and Shield PR Action: `uses: samvallad33/vestige@v7.1.1`
## What happens in a live session Instead of waiting for an AI model to remember a rule, Vestige wires a fast native Rust hook binary directly into your editor lifecycle and writes every event into a local BLAKE3 hash-chained ledger called Strata. ```text 1. You state a rule once: "Never bypass pre-commit hooks or force push to main." Vestige PreInvocation: Auto-saved to Strata as a pinned owner directive. 2. Agent tries: git reset --hard HEAD~1 Vestige PreToolUse: BLOCKED (OP-004): `git reset --hard` wipes uncommitted work. 3. Agent edits guarded code: Vestige PreToolUse: BLOCKED (Chesterton's Fence): inspect why this fix exists before editing. 4. You make a git commit: Vestige post-commit: Automatically writes a commit receipt to Strata anchored to the SHA and diff. ``` You can read the full breakdown in [How Hooks and Strata Work](docs/HOW-HOOKS-AND-STRATA-WORK.md). ## What Vestige fixes - **Stops destructive commands before they execute:** Vestige enforces 102 deterministic local rules that stop commands like `git reset --hard`, `git clean -fdx`, `terraform destroy`, `npm install` without `--ignore-scripts`, hidden `|| true` test masking, `.env` secret leaks, and concealed Unicode smuggling before the shell runs them. Every check happens locally in Rust in milliseconds without calling an LLM judge or sending code to the cloud. - **Saves rules and commits automatically:** When you state a standing rule in chat, Vestige detects and saves it to Strata as a pinned directive before your agent even finishes replying, and git hooks record commit receipts automatically so nothing gets forgotten after a context reset. - **Stops agents from breaking guarded fixes and guessing in loops:** Chesterton's Fence blocks edits to code protected by a past fix until the agent inspects the original cause, while Anti-Spiral halts repeated failed commands and forces root-cause tracing with `causal_walk`. - **Creates a tamper-evident coding agent audit log and proof-carrying PRs:** Every decision, commit, and blocked command is appended to Strata and verified before a turn ends. Vestige also signs local test runs as standard in-toto Statement v1 DSSE envelopes using Ed25519 keys, allowing CI to verify AI-authored pull requests offline with [`proof-carrying-pr-action`](https://github.com/samvallad33/proof-carrying-pr-action) for SOC 2 and EU AI Act audit trails. ## Tools | Tool | Purpose | | :--- | :--- | | `session` | Loads session context, active plans, and live reflex state | | `remember` | Saves code-anchored decisions, facts, and verified fixes | | `recall` | Looks up records by exact handle or exact-token BM25 | | `causal_walk` | Traces root cause across failures, edits, and commits | | `curate` | Edits, supersedes, links, or hides outdated memories | | `precedent` | Inspects safety stops, scans secrets, and verifies receipts | ## Benchmarks All results below were measured on `v7.1.0` running purely on a local CPU with no paid API calls. | Benchmark | Metric | Score | | :--- | :--- | :--- | | **InMind** (125 queries) | Implicit Turn R@1 / R@5 | **97.6%** / **97.6%** | | **LongMemEval-S** (470 queries) | Session Any@5 / Any@10 | **97.66%** / **99.57%** | | **LoCoMo-10** (1,982 queries) | Session R@5 / Turn Exact R@5 | **93.95%** / **83.35%** | | **BEAM 100K** (355 queries) | Session Any@5 / Any@10 | **80.56%** / **88.45%** | | **STATE-Bench** (86 episodes) | Turn Exact R@5 / R@10 | **95.35%** / **100.0%** | | **ConvoMem** (100 queries) | Turn Exact R@5 / Sess@5 | **93.0%** / **100.0%** | You can reproduce every number locally with `bash benchmarks/run_all.sh`, read the full tables in [benchmarks/README.md](benchmarks/README.md), browse the [Benchmark and Documentation Site](https://samvallad33.github.io/vestige/), or explore the [Live WebGPU Demo](https://stara-companion.pages.dev/?v=pro-reset). ## Comparisons and security guides - [All Comparisons Matrix](https://samvallad33.github.io/vestige/vs/) · [Vestige vs Mem0](https://samvallad33.github.io/vestige/vs/mem0/) · [Vestige vs Cognee MCP](https://samvallad33.github.io/vestige/vs/cognee/) · [Vestige vs claude-mem](https://samvallad33.github.io/vestige/vs/claude-mem/) · [Vestige vs Zep and Graphiti](https://samvallad33.github.io/vestige/vs/zep/) · [Vestige vs Supermemory](https://samvallad33.github.io/vestige/vs/supermemory/) · [Vestige vs Letta and MemGPT](https://samvallad33.github.io/vestige/vs/letta/) · [Vestige vs MCP Security Scanners](https://samvallad33.github.io/vestige/vs/mcp-security/) - [Native Rust PreToolUse Hooks](https://samvallad33.github.io/vestige/hooks/) · [Offline in-toto DSSE Proof-Carrying PRs](https://samvallad33.github.io/vestige/proof-carrying-pr/) · [SOC 2 and EU AI Act Coding Agent Audit Logs](https://samvallad33.github.io/vestige/audit-log/) · [Machine-Readable llms.txt](https://samvallad33.github.io/vestige/llms.txt) ## Docs and license [How Hooks and Strata Work](docs/HOW-HOOKS-AND-STRATA-WORK.md) · [Proof-Carrying PRs](docs/PROOF-CARRYING-PRS.md) · [Decision Receipts](docs/DECISION_RECEIPTS.md) · [Cursor Setup](docs/integrations/cursor.md) · [Codex Setup](docs/integrations/codex.md) · [Storage and Backups](docs/STORAGE.md) · [Cognitive Sandwich](docs/COGNITIVE_SANDWICH.md) · [Commercial Licensing](COMMERCIAL-LICENSE.md) · [Changelog](CHANGELOG.md) · [AGPL-3.0](LICENSE) by [@samvallad33](https://github.com/samvallad33)