LLM Wiki Idea File

Andrej Karpathy's idea file from April 2026: an LLM agent builds and maintains a wiki of linked Markdown files from raw sources.

Website ↗

A GitHub gist by Andrej Karpathy, created on 4 April 2026, with the single file llm-wiki.md. It calls itself an idea file: a text to paste into an LLM agent, which then works out the details with its user.

Content

  • The idea: instead of searching raw documents again for every question, an LLM builds and keeps a wiki of linked Markdown files. The gist calls it "a persistent, compounding artifact".
  • Three layers: raw sources that the user curates and nobody changes, the wiki that the LLM owns, and a schema file such as CLAUDE.md or AGENTS.md with the conventions.
  • Operations: ingest reads a new source, updates the pages it touches and logs the change. Query answers from the wiki and can file good answers back as pages. Lint looks for contradictions, stale claims, orphan pages and missing links.
  • Navigation: index.md lists the content, and log.md records every change in order.
  • Background: it ties the idea to Vannevar Bush's Memex.

This knowledge base follows the pattern; How an LLM Wiki Works shows how.

More on this

By
  • Andrej Karpathy AI researcher and educator: founding member of OpenAI, Director of AI at Tesla, founder of Eureka Labs, author of the LLM wiki pattern.
See also
  • How an LLM Wiki Works How an LLM wiki works, shown on this knowledge base: Markdown in its own Git repository, a Python tool with MCP for agents, and a website that only displays it.

Show in the graph view →