Memento Vault: Local Tool for Persistent Context in Claude Code Sessions

Memento Vault addresses the issue of Claude Code forgetting context between sessions by automatically capturing and retrieving relevant information without manual maintenance.
How It Works
The tool uses hooks that plug into Claude Code's lifecycle:
- When a session ends: A hook reads the transcript, scores it, and decides what to keep. Substantial sessions get atomic notes written to a local git repo. Each note contains one idea with frontmatter including certainty scores and tags, plus wikilinks to related notes. Trivial sessions get a one-liner in a daily log.
- When a session starts: It injects a briefing showing your project's recent sessions and the most relevant vault notes for what you're about to work on.
- On every prompt: It searches your vault and surfaces matching notes before Claude processes your input.
- On every file read: It injects context about code areas you've touched before.
Technical Details
All retrieval uses local BM25 + vector search with no LLM calls. The system has 472ms average latency per prompt and costs nothing to run. Context overhead is approximately 149 input units per session. Retrieval quality scores NDCG@10 = 0.892 on LongMemEval (500 questions).
A background consolidation layer called Inception clusters notes by embedding similarity and writes pattern notes after sessions, identifying recurring issues across projects.
The entire system uses markdown files in a git repo, browsable in Obsidian, searchable with grep, and diffable with git log. There's no database, Docker, or cloud dependency.
Installation
git clone https://github.com/sandsower/memento-vault.git
cd memento-vault
./install.sh --experimentalRequirements: Python 3 and Claude Code. QMD adds semantic search (optional). Works on Linux and macOS.
The project includes 271 tests and is MIT licensed.
📖 Read the full source: r/ClaudeAI
👀 See Also

Browser-native real-time coherence control system for Claude with SDE bands and Kalman filtering
A developer has built a real-time coherence control harness that runs entirely as a Claude artifact in the browser, treating conversation as a stochastic process with live Monte Carlo SDE paths, dual Kalman filtering, and behavioral signal detection.

OnUI: Browser Extension for Precise UI Feedback to Claude Code
OnUI is a browser extension that lets you annotate webpage elements and export structured reports for Claude Code via local MCP, eliminating ambiguous UI descriptions. Built primarily with Claude Code, it's free, open-source, and available for Chrome, Edge, and Firefox.

Yozora-fm: Interactive Anime Music Galaxy Visualization
Yozora-fm is an interactive visualization where each star represents an anime opening or ending song, with over 9,000 tracks mapped by genre and era. Users can click stars to play videos or explore the galaxy interface.

OpenPlawd: OpenClaw Skill for Automated Plaud Meeting Notes
OpenPlawd is an OpenClaw skill that automatically processes Plaud recordings into structured HTML meeting notes. It polls Plaud accounts hourly, transcribes with Whisper or OpenAI, chunks large files, and generates notes with action items via an OpenClaw agent.