BrainDB turns Karpathy LLM wiki into agent memory
BrainDB is a local-first memory layer that implements Andrej Karpathy's "LLM wiki" concept as a structured, interlinked database for AI agents. By moving beyond simple text chunks, it allows agents to maintain a persistent knowledge graph that automatically detects contradictions, manages provenance, and utilizes temporal decay to prioritize relevant information.
BrainDB is the "missing middle" between stateless RAG and complex enterprise graph databases, offering a pragmatic solution for long-term agent memory.
- –Replaces flat vector chunks with typed entities like facts, thoughts, and rules for more precise context retrieval.
- –Features a sophisticated 4-tier scoring system that combines fuzzy search, semantic embeddings, and graph neighborhood analysis.
- –Native MCP support and specialized skills for Claude Code allow for immediate integration into existing developer workflows.
- –Built-in "temporal decay" ensures that frequently accessed knowledge stays prominent while stale facts gradually lose relevance.
- –Operates on a standard Python/PostgreSQL stack, making it far easier to deploy and manage than specialized graph infrastructure.
DISCOVERED
45d ago
2026-04-20
PUBLISHED
45d ago
2026-04-19
RELEVANCE
AUTHOR
dimknaf