d2a8k3u/claude-code-memory
5 stars · Last commit 2026-04-26
A Claude Code plugin that gives Claude fully automatic, per-project cognitive memory with hybrid search, session lifecycle hooks, and local embeddings.
README preview
# Claude Code Memory A [Claude Code](https://claude.ai/download) plugin that gives Claude fully automatic, per-project cognitive memory — powered by local embeddings and hybrid search. ## Features - **Auto-loads** relevant context at session start using git signals (branch, commits, modified files) - **Auto-saves** a structured session summary when the session ends - **Auto-recalls** matching memories when Bash errors occur - **Auto-merges** near-duplicate memories on store (≥95% cosine similarity) - **Auto-consolidates** based on activity weight — reviews duplicates, stale entries, and emerging patterns - **Adaptive context budget** — dynamically allocates injection slots based on result quality, not fixed caps - **Two-phase recency scoring** — strongly favors recent work (0–7 days) with gradual long-term decay - **Content-length penalty** — prevents verbose, generic memories from dominating search results - **Noise filtering** — suppresses trivial sessions, junk procedurals, and low-substance episodics All data stays local. Everything is scoped to the current project via the working directory. ## Requirements