LLM Wiki

2026-08-05conceptsmastery: unfamiliar#domain/ai#kind/concept

LLM Wiki is Andrej Karpathy's pattern for a personal knowledge base: have an agent incrementally maintain a structured, interlinked markdown wiki instead of re-reading the raw material every time a question comes up.

The core layering:

  • The raw layer is immutable — articles, conversations and documents are never modified once captured; mistakes are corrected by superseding, not by rewriting history.
  • The wiki layer is owned by the agent — topic / entity / concept / summary pages are continuously merged and updated (merge, not append); the page is the entity, with no date prefix.
  • The human's role is curator — feed in material, answer questions, arbitrate conflicts; the tedious extraction, cross-linking and summarizing is the agent's job.

This repository's knowledge pipeline (sources/wiki/, see the ingest workflow) is an implementation of the pattern, plus two local extensions: PR-based ingestion (merge = understanding confirmed) and the challenge loop (fighting forgetting with questions).