“Every Claude Code Memory System Compared”
I pasted a Gemini-generated summary below the video. I haven’t tried these techniques yet.
Let me know if you’ve tried anything like this.
Claude Memory Systems: Techniques & Levels
This document summarizes the memory management strategies for Claude (specifically Claude Code) as discussed in the video * “Every Claude Code Memory System Compared”*. The systems range from simple native files to complex, multi-tool databases.
Core Memory Principles
Regardless of the level, every memory system answers one question: How does Claude pull the right context at the right time?
- Storage: Where the memory lives (Local vs. Cloud, Markdown vs. Vector).
- Retrieval: How Claude gets the data (Automatic injection vs. Manual tool calls).
The 6 Levels of Claude Memory
Level 1: Native Implementation
The simplest method using Claude’s built-in features.
claude.md: A system prompt in file form. Best for brand rules, coding styles, and project constraints.- Technique: Keep it under 200 lines to avoid “Context Rot.” Reference external files for larger docs.
memory.mmd: Claude’s auto-memory system that indexes feedback and project history.
Level 2: Structured Injection (The “Hook” Method)
Improving reliability using session hooks.
- Technique: Use a
session_starthook to inject amemory.mmdindex into the context automatically. - Structure: Organize memory into folders:
/general,/domains, and/tools. - Maintenance: Use a command like “reorganize memory” to get Claude to deduplicate and clean up its own notes.
Level 3: Semantic Search (Vector Memory)
Moving beyond keyword search to “meaning” search.
- Mem Search (by Zilliz): Extracts the “Open Claude” architecture for use in Claude Code.
- Technique: Uses a
user_prompt_submithook to search a local vector database and inject the top 3 most relevant memory chunks into every prompt before you even hit enter.
Level 4: Verbatim Recall (Mem Palace)
For when you need word-for-word accuracy of past decisions.
- Architecture: Uses a “Memory Palace” structure (Wings, Rooms, Drawers) to store conversations verbatim.
- Speed: Uses a “Symbolic Index” (AA dialect) that allows the LLM to scan thousands of records in milliseconds.
- Technique: High-speed RAG (Retrieval Augmented Generation) that avoids the loss of detail caused by summarization.
- GitHub - MemPalace/mempalace: The best-benchmarked open-source AI memory system. And it's free. · GitHub
Level 5: The “Second Brain” (Knowledge Base)
Best for deep research rather than operational tasks.
- LLM Wiki (Andrej Karpathy’s method):
- Raw Folder: You drop source docs (PDFs, transcripts).
- Wiki Folder: Claude owns this; it writes and cross-links markdown files to build a private Wikipedia.
- Recall: A hosted version that uses browser extensions to auto-build knowledge graphs.
Level 6: The Universal Brain (Multi-Tool)
For users who switch between Claude, ChatGPT, and Cursor.
- Open Brain (by Nate Jones): A central Postgres/Supabase database.
- Technique: Connect all AI tools to one “Thoughts” table via MCP (Model Context Protocol).
- Benefit: Your memory is portable; if a new AI tool comes out in 6 months, you just plug it into your existing “brain.”
Recommendations for Getting Started
- Just starting? Use Level 1. Master
claude.mdand keep it lean. - Using it daily? Move to Level 2. Set up a session hook to inject your project index.
- Losing track of old notes? Implement Level 3 (Mem Search) for semantic retrieval.
- Need cross-platform memory? Explore Level 6 (Open Brain) to keep your data in a private database you own.