coleam00/claude-memory-compiler

Give Claude Code a memory that evolves with your codebase. Hooks automatically capture sessions, the Claude Agent SDK extracts key decisions and lessons, and an LLM compiler organizes everything into structured, cross-referenced knowledge articles - inspired by Karpathy's LLM Knowledge Base architecture.

5 files for Claude Code, Codex and OpenCode: SessionStart, PreCompact, SessionEnd, claude-memory-compiler and 1 more — 4,446 tokens loaded in every session.

1,320Stars on the repository
5Files it configures its agents with
4,446Tokens loaded in every session
3Agents configured

Instructions

Settings

Hooks

These files are coleam00/claude-memory-compiler's own configuration — they tell Claude Code, Codex and OpenCode how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.