Claude Memory Compiler

Stale
GitHub Python No License

Description

Claude Memory Compiler gives Claude Code a memory that evolves with your codebase. Hooks automatically capture sessions, the Agent SDK extracts key decisions and lessons, and an LLM compiler organizes everything into structured, cross-referenced knowledge articles.

Key Features

  • Based on Karpathy's LLM knowledge base architecture — compiles Claude Code sessions into a searchable knowledge base automatically
  • Automatic session capture via Claude Code hooks — no manual logging required
  • Uses Claude Agent SDK to extract key decisions, lessons learned, and coding patterns
  • Index-guided retrieval replaces RAG — no vector database needed, pure Markdown implementation
  • Auto-compiles daily logs into structured, cross-referenced knowledge articles organized by concept
  • Built-in 7 health checks: broken links, orphans, contradictions, staleness, and more

Use Cases

💡 Automatically accumulate knowledge from Claude Code sessions into a project-specific knowledge base
💡 Auto-inject historical decisions and patterns into new sessions to avoid repeating mistakes
💡 Query historical technical solutions and approaches using natural language
💡 Share accumulated coding knowledge and best practices across team members
💡 Track key decisions and lessons learned throughout project evolution

Quick Start

Clone the repo into your project, run uv sync to install dependencies, copy .claude/settings.json into your project — hooks activate automatically on next Claude Code session

Related Projects