Claimed result
- Post from 2 April 2026, the most viewed and most saved piece of the whole 2026 "second brain" wave: ~22 million views, 108,510 bookmarks, 61,080 likes, 7,398 reposts, 2,221 quotes (X data read on 15/11/2026). A bookmark-to-like ratio close to 1.8 signals content people "keep", not just applaud.
- Karpathy's wiki on one of his recent research topics reaches ~100 articles and ~400,000 words. At that scale the LLM answers complex questions by reading index files and summaries it maintains itself: no "fancy" RAG was needed.
- On 4 April he publishes an improved version as an "idea file", the llm-wiki.md gist (gist), announced in a post with 26,772 likes, 46,390 bookmarks and 7.35M views (post). In the following months the community implemented it in dozens of repositories (see the other guides in this theme).
- A large share of his token use, he writes, now goes "less into manipulating code, and more into manipulating knowledge" (markdown and images).
Proof: medium-high. It is the personal practice of one of the best-known AI researchers, described with verifiable detail (folders, tools, scale). There are no external quality metrics: "it works" is his judgement. He himself calls it "a hacky collection of scripts" and says there is room for a real product.
The key idea
Stop making the LLM rediscover knowledge from scratch on every question. With classic RAG (you upload files, the AI retrieves chunks at question time) nothing accumulates: a question that needs five documents combined has to be rebuilt every time. In Karpathy's model the LLM reads each new source once and integrates it into a persistent wiki: it updates entity and concept pages, revises summaries, flags where new data contradicts old claims. Knowledge is "compiled once and then kept current".
The division of labour is sharp: you pick the sources, explore and ask the questions; the LLM does all the grunt work — summarising, cross-referencing, filing, bookkeeping. "Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase." The wiki is written almost entirely by the LLM: Karpathy says he rarely touches it.
A clarification he added in the replies: this method lets you skip writing, not reading and thinking. He reads each source, its summary and the LLM's opinion on how it fits into the wiki and what is new or surprising (reply).
Step-by-step playbook
1. Three-layer architecture (from the gist)
- Raw sources (
raw/) — articles, papers, repos, datasets, images. Immutable: the LLM reads them and never modifies them. They are the source of truth. Karpathy repeats it to Steph Ango (Obsidian's CEO): he curates everything inraw/by hand and it stays authoritative, while the derived wiki is kept separate and keeps backlinks to the originals (reply). - The wiki — a folder of LLM-generated markdown files: summaries, entity pages, concept pages, comparisons, an overview, a synthesis. The LLM owns this layer.
- The schema — a document (e.g.
CLAUDE.mdfor Claude Code orAGENTS.mdfor Codex) that tells the LLM how the wiki is structured, the conventions and the workflows to follow. It is "the key configuration file": it turns a generic chatbot into a disciplined maintainer. You evolve it together with the LLM.
2. Ingest
- Turn web articles into
.mdwith the Obsidian Web Clipper extension; with a hotkey you download all linked images locally so the LLM can see them (in Obsidian: Settings → Files and links → fixed attachment folder, e.g.raw/assets/; then Hotkeys → "Download attachments for current file", e.g. Ctrl+Shift+D). - Drop the source into
raw/and ask the LLM to process it. Typical flow: it reads the source, discusses the key points with you, writes a summary page, updates the index, updates the entity and concept pages it touches, appends an entry to the log. A single source can touch 10–15 pages. - At first Karpathy adds every source by hand, one at a time, staying in the loop. After a while the LLM "gets the pattern" and it is enough to say: "file this new doc to our wiki: (path)" (reply). You can also batch-ingest with less supervision.
3. Query
- Once the wiki is big enough you can ask complex questions: the agent searches the pages, reads them and synthesises an answer with citations.
- Output is not only text: markdown files, Marp slide decks, matplotlib charts, canvases, all viewable in Obsidian.
- Golden rule: good answers get filed back into the wiki as new pages. A comparison, an analysis, a connection you found must not vanish into chat history. That way your explorations also "add up".
4. Maintenance (lint)
Periodically ask for a "health check": contradictions between pages, claims superseded by newer sources, orphan pages with no inbound links, concepts mentioned without their own page, missing cross-references, gaps to fill with a web search. The LLM is also good at suggesting new questions and new sources.
5. Two special files
index.md(content-oriented): a catalogue of every page, each with a link, a one-line summary and optional metadata (date, number of sources), grouped by category. The LLM updates it on every ingest and reads it first when answering. It works well up to ~100 sources and a few hundred pages without embeddings.log.md(chronological): an append-only record of ingests, queries and lint passes. Trick: give every entry a fixed prefix, e.g.## [2026-04-02] ingest | Title, sogrep "^## \[" log.md | tail -5shows the last 5 operations.
6. Extra tools (as it grows)
- A search engine over the wiki: Karpathy vibe-coded a simple one that he uses through a web UI but mostly hands to the LLM via CLI. In the gist he suggests qmd (by Tobi Lütke): local search over markdown, hybrid BM25 + vectors with LLM re-ranking, with a CLI and an MCP server.
- Useful Obsidian plugins: Marp (slides), Dataview (dynamic tables from YAML frontmatter), the graph view to see hubs and orphan pages.
- The wiki is a git repo of markdown files: history, branches and collaboration for free.
- Future exploration: synthetic data + fine-tuning so the model "knows" the wiki in its weights, not just in its context.
Tools and costs
| Piece | Tool mentioned | Cost |
|---|---|---|
| Front end | Obsidian (local markdown files) | free for personal use |
| Web capture | Obsidian Web Clipper | free |
| Agent | Claude Code, OpenAI Codex, OpenCode / Pi | subscription or API of the chosen model |
| Search | index.md, then qmd or a home-made script |
free |
| Visualisation | Marp, Dataview, graph, matplotlib | free |
| Versioning | git | free |
The real cost is the agent's token usage and reading time: the method does not let you skip reading.
Limitations
- Scale: the embedding-free index works up to ~100 sources and a few hundred pages. Beyond that you need real search and provenance rules (see the GBrain guide and the criticism about the "wiki that cites itself" past ~1,000 files in the theme manual).
- Errors that spread: if the LLM summarises a source badly, the error enters 10–15 pages. That is why
raw/stays authoritative and backlinks to the source are mandatory. - It is not a product: it needs a terminal agent, folders and some discipline. Karpathy himself calls it "hacky".
- Fine-tuning on your own wiki is only an idea, not a demonstrated result.