Directory · Hooks
Claude Memory Compiler
Claude Code hooks that capture sessions, extract decisions and lessons, and compile them into a cross-referenced markdown knowledge base.
★ 1,328 stars · last updated 2026-04-06 · Free (check license) · View on GitHub
Best for
- Claude Code users who want persistent memory across sessions
- Building a personal knowledge base from coding conversations
- Teams wanting index-based retrieval without a vector database
- Experimenting with Karpathy's LLM Knowledge Base pattern
Install
uv sync
Our take
Uses SessionEnd and PreCompact hooks to flush transcripts through the Claude Agent SDK into daily logs, then compile.py builds concept articles and a SessionStart hook injects the index into new sessions. Retrieval relies on a markdown index rather than RAG, which the README says suits roughly 50 to 500 articles. No license is specified, and setup is described mainly as instructions for an agent to follow, with full details in AGENTS.md.
Similar hooks
- Claude Code Ultimate Guide: Large open guide to Claude Code covering agent workflows, hooks, skills, MCP, security, and team adoption, with reusable templates.
- dcg (Destructive Command Guard): Rust pre-execution hook that blocks destructive shell, git, filesystem, database, and cloud commands run by AI coding agents.
- Claude Code Showcase: Example Claude Code project config with hooks, skills, agents, slash commands, MCP setup, and GitHub Actions workflows to copy from.
- Claude Code Hooks Mastery: Reference project implementing all 13 Claude Code hook events as UV Python scripts, plus sub-agents, status lines, and output styles.
- Continuous Claude v3: Hooks, skills, and agents that keep Claude Code context across sessions via YAML handoffs, ledgers, and a PostgreSQL memory store.
- Build with Claude: Plugin marketplace and discovery hub of agents, commands, hooks, and skills for Claude Code users extending their workflows.