memory
Persistent intelligent memory system for Claude Code sessions with decay-based retrieval.
Optional command that replaces Claude Code's built-in flat-file memory with an intelligent, decay-based system backed by SQLite.
claude-launchpad memoryInteractive setup - asks before changing anything.
Prerequisites
Memory requires native dependencies that are not bundled with the CLI (to keep install fast for everyone). Install them first:
npm install better-sqlite3 sqlite-vecThis requires a C++ compiler (Xcode on macOS, build-essential on Linux). The CLI will prompt you if these are missing.
Flags
| Flag | Description |
|---|---|
--dashboard | Open the interactive memory TUI dashboard |
Default behavior
Running claude-launchpad memory without flags uses a smart default:
- If memory is not installed, it starts the interactive installer
- If memory is already installed, it shows memory stats
claude-launchpad memory --dashboard requires memory to be installed first.
What it installs
- SQLite database at
~/.agentic-memory/(shared across projects, scoped per project internally) - SessionStart hook that injects relevant memories at session start
- Stop hook that extracts facts from the conversation transcript
- 7 MCP tools for storing, searching, and managing memories
- Memory guidance section in CLAUDE.md
/lp-migrate-memoryskill for porting legacy auto-memory files- Global MCP server registration via
claude mcp add --scope user. If auto-registration fails, run manually:claude mcp add --scope user agentic-memory -- npx claude-launchpad memory serve
How it works
Memories decay naturally based on their type:
| Type | Half-life | What it stores |
|---|---|---|
| working | Session only | Scratch notes, cleared each session |
| episodic | 60 days | Specific events - bugs fixed, decisions made |
| semantic | 1 year | Facts - architecture, API contracts, conventions |
| procedural | 2 years | How-to knowledge - build, deploy, commands |
| pattern | 6 months | Recurring issues, common solutions |
Retrieval uses multi-signal scoring:
- Text match (BM25 via FTS5) - 35%
- Importance (user-assigned) - 20%
- Recency (exponential decay) - 20%
- Git context (branch + file overlap) - 15%
- Access frequency - 10%
MCP tools
| Tool | What it does |
|---|---|
memory_store | Save a memory with type, importance, and tags |
memory_search | Search by keyword with ranked results |
memory_recent | Load recent context-matched memories |
memory_forget | Soft-delete (decay) or hard-delete a memory |
memory_relate | Create typed relations between memories |
memory_stats | Count, types, DB size, top-injected |
memory_update | Modify a memory while preserving access history |
Dashboard
claude-launchpad memory --dashboardTUI with vim navigation:
j/k- navigate memory list[/]- switch projects/- search1-5- filter by type (0 = all)l- cycle lifespan filter (healthy/fading/stale)s- cycle sort modep- project picker?- help
Migrating from built-in memory
After installing, use /lp-migrate-memory inside Claude Code. It reads your legacy ~/.claude/projects/*/memory/*.md files, deduplicates, and stores them with appropriate types and importance.
Doctor integration
When memory is detected, doctor adds a Memory analyzer that checks:
- MCP server registered
- SessionStart and Stop hooks configured
- Built-in auto-memory disabled
- CLAUDE.md guidance present
- MCP tool permissions set
doctor --fix auto-repairs missing permissions and auto-memory settings.