News

Karpathy’s LLM Wiki: how a local folder gives Claude a lasting memory of your work

Andrej Karpathy's LLM Wiki pattern turns a plain folder into a knowledge base that Claude writes and keeps up to date. Here is how the three layers work, how to seed it with your exported chats, and what it cannot keep private.

Finley · FoxAI World5 min read
18
Finley holds a book beside a glowing folder and floating icons, beneath the Anthropic logo.A wiki that remembers

Conceptual cover created with AI.

Every new chat with an AI assistant tends to start the same way: you explain who you are, what the project is, which supplier you are negotiating with and how you like your emails written. The assistant helps, and the next day you explain it all again. One answer that has spread widely since April 2026 is Andrej Karpathy’s “LLM Wiki” pattern, often sold on YouTube as a “second brain”. Stripped of the hype, it is a folder of plain text files that an AI keeps in order for you. Here is how it works, how to start it with Claude, and where its limits are.

What the LLM Wiki pattern is

Karpathy, a well-known AI researcher, described the idea in a public GitHub gist called llm-wiki.md, published on 4 April 2026. It has three layers. The first is the raw sources: contracts, meeting notes, articles, exported chats. The AI reads them but never changes them. The second is the wiki itself, a set of Markdown pages that the language model writes and maintains on its own; Karpathy’s text says you never, or rarely, write it yourself. The third is a schema, a short instruction file such as CLAUDE.md or AGENTS.md that sets the conventions: how pages are named, what goes where, which steps to follow.

The division of labour is the point. You choose the sources and ask the questions. The model does the bookkeeping that people usually give up on: summarising, cross-linking and updating. Unlike a typical retrieval setup, where the AI searches raw documents again for every question, the knowledge is digested once and kept in a readable, growing form.

Finley sits at an Anthropic-branded laptop surrounded by folder, document and security symbols.
AI-generated conceptual illustration.

How the wiki stays up to date

The gist describes three routines. Ingest: when a new source arrives, the model reads it, writes a summary page, updates the pages for the people, companies and concepts involved, and records the change. A single source can touch 10 to 15 pages. Query: when you ask something, the model searches the wiki and answers with references to its pages; a good answer can be saved back as a new page. Lint: from time to time the model checks the wiki for contradictions, outdated claims, orphan pages and missing links.

Two files hold it together. index.md is a catalogue of all pages and is updated on every ingest, so the model can look up what exists instead of reading everything. log.md is an append-only diary of what was added and when. Many people browse the result in Obsidian, a note-taking app with a graph view, but that is optional: the files are ordinary Markdown, and the model can manage the folder without it.

How to seed it with what Claude already knows

The practical question is where the first content comes from. The tutorial that prompted this guide uses a sensible start: your existing chat history. In Claude you go to Settings, then Privacy, and choose “Export data”. According to Anthropic’s help center, a download link is sent to your account email; it expires 24 hours after it is created and may work only once. The export covers conversations and account data, not the original files you uploaded. It is available on the individual Free, Pro, Max and Ultra plans, but not from the iOS or Android apps. On Team and Enterprise plans, members can export only if an owner has allowed it.

The rest is a short workflow. Create a folder, connect it to Claude in the desktop app so the model can read and write files there, add a schema file that describes the three layers and routines, then drop the export into the raw folder and ask Claude to build the first version of the wiki. After that, the habit matters more than the setup: attach the folder whenever you start a chat about that area of your work, and ask Claude to file new decisions back into the wiki. A weekly scheduled task can run the lint step for you.

Limits and privacy trade-offs

Karpathy himself calls the document intentionally abstract: it is an idea to adapt, not a finished product. He also notes that the simple index approach works surprisingly well at moderate scale, around 100 sources. Beyond that, you may need search tools or a stricter structure.

The bigger caveat is privacy. A folder on your own disk feels private, but every file Claude reads in a chat is processed by Anthropic like any other message. A local folder gives you ownership and portability, not confidentiality. A simple rule helps: your own know-how, templates and notes are fine; personal documents are your decision; company data only where your employer allows it; customer names, personnel files and passwords stay out. For a team, a personal account and a shared folder are the wrong tool; that needs a business plan and proper access rules.

Editor’s assessment

The facts are modest: a public description of a three-layer folder pattern, and a documented way to export your Claude chats. The judgement is ours. The LLM Wiki is worth trying for anyone who uses Claude several times a week on the same kind of work, because it moves context from your memory into files you can read, correct and take to another tool. It is not magic memory. Its quality depends on two human jobs that do not go away: choosing what goes in, and checking what the model wrote before you rely on it for a negotiation or a decision. There’s a simpler handoff here: let the model keep the notes, and keep the final word yourself.

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.