LOCAL RUST KERNEL · ZERO CLOUD API KEYS
Stop Claude Code Forgetting Rules After /compact
Replace lossy LLM session compression and 200-line markdown truncation with exact-handle BLAKE3 Strata memory scoring 97.6% R@1 on InMind CPU benchmarks.
Why Default Mitigations Fail
- Context compaction summarizes conversation prose with an LLM, stripping exact file paths, line ranges, commit SHAs, and standing rules.
- Static markdown memory files silently truncate or bloat context windows while offering zero drift detection when files change on disk.
- Vector RAG memory servers embed chunks via external APIs and retrieve lookalike snippets instead of exact canonical handles.
How Vestige Solves It Locally
- Standing directives detected by PreInvocation save automatically to Strata as pinned decisions at $0.00 API cost.
- Vestige reloads pinned rules and active session state across PreCompact, PostCompact, and SessionStart lifecycle transitions.
- Verified on CPU-only v7.1.0 benchmarks with 97.6% Implicit Turn R@1 on InMind and 99.57% Session Any@10 on LongMemEval-S with zero embeddings or cloud keys.
One-Command Setup Across Claude Code, Cursor, Windsurf, Codex, and Antigravity
npx @vestige/init
MCP config or verification reference:
{"mcpServers":{"vestige":{"command":"npx","args":["-y","vestige-mcp-server"]}}}
Step-by-Step Hardening Checklist
- Install Vestige MCP and lifecycle hooks: Execute npx @vestige/init so Claude Code connects to vestige-mcp-server and lifecycle hooks capture standing rules automatically.
- Anchor architecture decisions with exact file paths: Use remember with exact file line frames or let PreInvocation pin standing instructions into local Strata storage.
- Survive /compact cleanly across sessions: Call session start or recall by exact handle or tag after compaction to hydrate exact untouched constraints in milliseconds.
Documented Production Incidents & References
Frequently Asked Questions
Why does Claude Code forget rules right after /compact?
Compaction rewrites conversation history into lossy prose summaries to save tokens, dropping exact constraints, error receipts, and line numbers unless a persistent external ledger re-injects them.
How is Vestige different from claude-mem or Mem0?
claude-mem relies on lossy LLM session summaries and Mem0 sends facts to cloud vector pipelines without execution gates. Vestige stores exact handles locally in Rust with zero vectors and pairs memory with 102 PreToolUse safety rules.
What CPU benchmark accuracy does Vestige achieve without embeddings?
On Vestige v7.1.0 running strictly on local CPU, benchmarks recorded 97.6% Implicit Turn R@1 on InMind, 99.57% Session Any@10 on LongMemEval-S, and 93.95% Session R@5 on LoCoMo-10.