claude-mem
Installation
SKILL.md
Claude Code Persistent Memory
Overview
Claude Code forgets everything between sessions. Two open-source tools solve this by automatically capturing context and injecting it into future sessions:
- claude-mem (v15) — a Claude Code plugin that records what Claude does through lifecycle hooks, compresses it into observations and summaries with an AI model, stores them in a local SQLite database, and injects relevant context into the next session.
- Claude Subconscious — a Letta demo app: a background agent that watches sessions and whispers guidance back. Its README says it is a demo, not meant for production; Letta points to Letta Code for that.
Both eliminate the need to re-explain context when returning to a project.
Instructions
Option A: claude-mem
GitHub: thedotmack/claude-mem (Apache-2.0). Needs Node.js 20.12+ (the package engines field); Bun and uv are installed automatically if missing.