Karpathy proposes LLM Wiki pattern for self-managing knowledge bases
In April 2026 Andrej Karpathy published a GitHub Gist describing the LLM Wiki pattern: an AI agent compiles immutable raw sources into a structured Markdown wiki instead of re-retrieving chunks RAG-style. The gist passed 5,000 stars, and Karpathy's own research wiki grew to about 100 articles and over 400,000 words.
- Three layers: raw/ sources, wiki/ Markdown entries and a schema.md rule file
- Three operations: ingest, query over compiled entries and lint for dead links and contradictions
- Karpathy's wiki reached roughly 100 articles and 400,000+ words without him writing a line
- Community built an Obsidian plugin and CI health checks for the pattern
Read next
Policy