LLM Wiki

article Andrej Karpathy

A pattern for building personal knowledge bases using LLMs. Instead of RAG-style retrieval from raw documents on every query, the LLM incrementally builds and maintains a persistent, interlinked wiki — a structured collection of markdown files that compounds over time. Three-layer architecture: raw sources (immutable), wiki (LLM-generated), schema (conventions). Three operations: ingest (process source into wiki pages), query (search and synthesize with optional filing back), lint (health-check for contradictions and gaps). The key insight is that wikis fail because maintenance burden exceeds value for humans, but LLMs eliminate that friction — they don’t forget cross-references or get bored updating pages. Traces the lineage to Vannevar Bush’s Memex (1945).

https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f