# samvallad33/vestige [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/samvallad33/vestige  
**GitHub Stars:** 664  
**npm Downloads (last month):** 404  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/samvallad33-vestige

## Description
Local-first cognitive memory for AI agents. FSRS-6 scheduling, smart ingest, SQLite storage, portable sync, embedded dashboard, and optional Cognitive Sandwich hooks for Claude Code, Cursor, Codex, and other MCP clients.

## Tools
Capabilities this server exposes over MCP:

- **backfill** — Re-score older memories through shared entities; preview, receipt, or undo.
- **causal_walk** — Walk a failure backward from explicit start points (failing_test, stack_frame, ci_run, logged_write, version_range); any kind carries node_id, the memory recording the symptom. A Strata log follows recorded causal edges only and says why when none lead upstream. Results are hypotheses, not proven causes. promote=true records trail edges on the legacy engine only.
- **codebase** — Code memory. Actions: 'remember_pattern', 'remember_decision', 'get_context' (patterns and decisions marked current or stale, and the scopes holding them), 'verify' (re-check anchors and, with a codebase, change records), 'reanchor' (replace reviewed evidence), 'ingest_repo' (a checkout's commits as anchored change records; previews unless dryRun=false).
- **dedup** — Duplicates and exact tag maintenance. Actions: scan (default, read-only), plan_merge, plan_supersede, apply (confirm=true), undo, tag_rename, tag_merge (preview-token gated), protect, policy. Merges invalidate, never delete. Withheld on Strata in 4.0: plan_merge, plan_supersede, apply, verdict, protect.
- **forgotten_lesson** — Earlier memories on recorded causal edges from a failure, lowest FSRS retrievability first.
- **gather** — A GitHub issue's evidence as receipts, then the walk.
- **ghostlink** — Never-composed memory pairs, each with its proof from recorded edges only. Modes: propose (lens bridge|divergent), bounty, weave (write), map, inspect, explore, predict, harden (write).
- **intention** — Intentions. Actions: 'set', 'check', 'update', 'list'; 'graph' evaluates evidence-aware plans through a nested command. A trigger fires on a clock or on exact equality with a handle in the check context; descriptions are never parsed.
- **maintain** — Lifecycle: 'consolidate', 'dream', 'dream_compile', 'gc' (dry run default), 'importance_score', 'backup', 'export', 'restore'. Withheld on Strata in 4.0: consolidate, restore.
- **memory** — Manage one memory: 'get', 'get_batch', 'state', 'promote' / 'demote' (demote never deletes), 'edit' (admit a successor, retire the previous node). Erasure is withheld on Strata in 4.0.
- **memory_status** — Store status. Views: 'health' (default), 'retention', 'timeline' (memories by day), 'changelog' (state-change audit trail), 'provenance' (memoryId), 'coverage', 'stats' (counts by type, tag, age, retention), 'tools' (advertised tools and actions; pass tool for one schema).
- **precedent** — Operator stops and why.
- **project** — Project the durable subset of a scope (decisions, patterns, rule-tagged facts) into a fenced region of CLAUDE.md or MEMORY.md, one memory id per line. 'preview' (default) shows the diff; 'write' needs confirm=true and replaces only the fence.
- **recall** — Find memories by exact handle: a full memory id or an exact tag; a unique id prefix of 8+ characters also resolves. Free text and the 'reason' / 'contradictions' modes return similarity_disabled.
- **receipt** — 'get' shows what a write did from its receipt id; 'replay' re-derives that state from the log and reports any mismatch.
- **selftest** — Planted-cause selftest: walks recorded edges back to a planted cause in a throwaway log.
- **session_start** — Start-of-session context in one call: open intentions, status and code memories under one token budget.
- **smart_ingest** — Save one memory ('content') or up to 20 ('items'); each write passes the gate and returns a receipt. Secret-shaped content is refused unless allowSecrets is set.
- **suppress** — Hide a memory from every read; the log keeps its bytes. On Strata in 4.0 it cannot be undone (reverse=true is refused) and is not erasure.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "vestige": {
    "command": "npx",
    "args": ["-y","vestige-mcp-server"]
  }
}
```

## Documentation

## What samvallad33/vestige does

samvallad33/vestige gives MCP clients a local memory layer for AI coding sessions. It records decisions, facts, fixes, active plans, and session state so agents can recover project context across turns. Memory entries can be tied to code, while failures, edits, and commits can be connected for later root-cause analysis.

The implementation is written in Rust and uses local SQLite storage. Its persistence layer is described as an append-only, BLAKE3 hash-chained store called Strata. Retrieval avoids embeddings and vector search: callers can use deterministic handles or exact-token BM25 lookup. The project describes the memory and safety workflow as local, with no cloud database and no API cost.

## How it works

The `session` tool boots context for a new interaction, including active plans and live reflex state. `remember` writes code-anchored information, while `recall` retrieves entries through deterministic handles or exact-token BM25 matching. When an agent needs to understand a recurring failure, `causal_walk` follows relationships across failures, edits, and commits.

Memory maintenance happens through `curate`, which can edit, supersede, link, or hide stale entries. `precedent` exposes safety-related checks, including safety stops, secret scanning, and receipt verification. Optional Cognitive Sandwich hooks can inject pinned rules, active plans, and previous decisions before turns, and can support safety behavior such as blocking risky shell commands, repairing invalid MCP parameters, and interrupting failure loops.

## Setup and configuration

The one-command installer is:

```bash
npx @vestige/init
```

It detects Antigravity, Claude Code, Cursor, Codex, and Windsurf, then configures the local MCP server and lifecycle hooks. Restart the editor after installation.

A manual MCP configuration can launch the package with:

```json
{
  "mcpServers": {
    "vestige": {
      "command": "npx",
      "args": ["-y", "vestige-mcp-server"]
    }
  }
}
```

macOS and Linux users can also use the project’s shell installer. Standalone binaries are available through GitHub Releases, and Nix users can run the repository with `nix run github:samvallad33/vestige`. The repository also provides a GitHub PR Gate action.

## Tools and capabilities

- `session`: load session context, active plans, and live reflex state.
- `remember`: save code-anchored decisions, facts, and fixes.
- `recall`: perform deterministic-handle and exact-token BM25 retrieval.
- `causal_walk`: trace relationships among failures, edits, and commits.
- `curate`: edit, supersede, link, or hide memories.
- `precedent`: inspect safety stops, scan for secrets, and verify receipts.

## Limitations and notes

Retrieval is intentionally based on deterministic handles and exact-token BM25 search rather than embeddings. The safety and lifecycle behavior beyond the MCP tools depends on the optional Cognitive Sandwich hooks and the client integration. Storage is local, so deployments should account for the machine hosting the SQLite-backed data and its append-only log. The project is licensed under AGPL-3.0.

_Full upstream README: https://allmcps.com/mcp/samvallad33-vestige/readme_

