gemini
14 min read

What is an LLM Wiki and Why are People Paying Attention to it ?

Andrej Karpathy just broke the internet with a new research method that is going to fundamentally change how we all use AI.

Andrej Karpathy just broke the internet with a new research method that is going to fundamentally change how we all use AI. Here’s the problem, LLM suck at deep research. They can look at a couple websites and get you surface level answers, but when you try and compare ideas or actually dive deeper, it all completely falls apart. The solution is Karpathy’s exact system for doing PhD level research with AI that creates custom LLM knowledge bases that actually get smarter over time.

The concept is straightforward. Instead of scattering knowledge across Notion, Google Docs, browser bookmarks, and sticky notes, you keep everything as structured markdown files. Then you point Claude Code (or any other agent like Gemini CLI) at the folder and ask it questions. The LLM reads your files, finds what’s relevant, and gives you grounded answers drawn from your own knowledge - not the general internet.


What Makes This Different ?

Most note-taking apps are build for human reading. You browse, search, click. They’re optimized for you to find things manually.
An LLM wiki is optimized for the model to read on your behalf. That shift changes everything about how you structure information. Here’s the core difference:

  • Traditional App: You remember where something is navigate to it

  • LLM Wiki: You describe what you need in plain language, and LLM finds and synthesizes it across your entire knowledge base.


Why does this idea appear now ?

A lot of the current AI document workflows look like RAG. You upload documents, the model retrieves relevant pieces at query time, and then generates an answer. But here there are some limitations:

  • Questions that requires synthesis across many documents often force repeated rediscovery

  • Good answers disappear into chat logs

  • Interpretations do not accumulate very well across sessions

The LLM Wiki reframes it like : ‘Instead of reassembling knowledge every time, compile it once and keep it updated‘


How LLM Wiki Actually Works ?

The architecture is the most minimal. There are 3 components:

  1. A folder of markdown files: This is your knowledge base. It can contain anything: research notes, meeting summaries, project documentation, book notes, personal reference material, code snippets with explanations.

  2. A consistent structure within each file: Good LLM wikis use a consistent internal format - a title, a brief summary, tagged topics, and then the content. The model uses this structure to locate relevant information faster.

  3. Claude Code as the query interface: You open a terminal, navigate to your wiki folder, launch Claude Code, and ask it a question. It reads the files it needs, synthesizes an answer, and can even update or add notes when you ask it to .

1. Data Ingest: Compile Raw Materials into a Wiki

Karpathy describes dropping source materials such as articles, papers, repositories, datasets, and images into a raw directory and then using LLM to incrementally compile a wiki from them. This includes:

  • Model write summaries

  • Creating Backlinks

  • Group information into concepts

  • Write page for those concepts

  • Links the page together

2. IDE: Obsidian acts as Frontend

Obsidian is the best thing we can use as IDE Frontend. Here we can view raw data, compiled wiki and derived visual outputs. The LLM writes and maintains the wiki, while the human mostly reads, explores and guides.

3. Q&A

He writes that one of his recent research wikis is roughly 100 articles and 400K words, and that at this kind of small scale, more elaborate RAG infrastructure was not strictly necessary.

The reasons he gives are practical:

  • The LLM keeps index files updated

  • It maintains brief summaries of the documents

  • It can read and connect the important related material fairly well

So the claim is not “RAG is unnecessary.”
It is closer to: “at smaller scales, a structured wiki plus index files can go surprisingly far.”

4. Output: Answers filed back to the wiki

Karpathy says he often prefers outputs not as plain terminal text but as markdown files, Marp slides, or matplotlib figures that he can view again in Obsidian.

And one of the most important ideas is this:

Good outputs can be filed back into the wiki.

That means the results of exploration become part of the knowledge base.

  • An analysis can become a new page

  • A slide deck can become both a deliverable and a knowledge artifact

  • A chart can become something queryable later

This is where the gist and the follow-up posts point in the same direction:
queries compound instead of disappearing.

5. Linting: the wiki gets ongoing health checks

He also describes running LLM-based health checks over the wiki: finding inconsistent data, filling gaps via web search, and identifying interesting connections that might deserve new pages.

This matters because it shows the wiki is not just a static archive.
It is something that can be continuously cleaned up and strengthened.

6. Extra tools: search and tooling naturally get added

In a follow-up post he says he vibe-coded a small search engine over the wiki.
He uses it directly through a web UI, but more often wants to pass it to an LLM through the CLI for larger queries.

That suggests a natural progression:

  • Start with markdown files and index pages

  • Add search tools as the repository grows

  • Eventually make those tools available to the LLM as part of its working toolset

In that sense, LLM Wiki is both a documentation pattern and a starting point for a tool ecosystem.


Set Up Your LLM Wiki in Obsidian

Step 1: Install Obsidian and Create a Vault:

Download Obsidian from the official Obsidian site. Create a new vault in a folder you’ll remember — something like ~/wiki or ~/Documents/llm-wiki.

A “vault” in Obsidian is just a folder. Everything in it is plain markdown.

Step 2: Create the folder structure

Open your Coding Agent (Claude Code, Gemini CLI) and paste the following prompt:

You are now my LLM Wiki agent. Implement this exact idea file as my complete second brain. Guide me step-by-step: create the SKILL.md schema with full rules, setup index.md and log.md, define folder conventions, and show me the first ingest example. From now on, every interaction follows the schema.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

The idea here is different. Instead of just retrieving from raw documents at query time, the LLM incrementally builds and maintains a persistent wiki — a structured, interlinked collection of markdown files that sits between you and the raw sources. When you add a new source, the LLM doesn't just index it for later retrieval. It reads it, extracts the key information, and integrates it into the existing wiki — updating entity pages, revising topic summaries, noting where new data contradicts old claims, strengthening or challenging the evolving synthesis. The knowledge is compiled once and then kept current, not re-derived on every query.

This is the key difference: the wiki is a persistent, compounding artifact. The cross-references are already there. The contradictions have already been flagged. The synthesis already reflects everything you've read. The wiki keeps getting richer with every source you add and every question you ask.

You never (or rarely) write the wiki yourself — the LLM writes and maintains all of it. You're in charge of sourcing, exploration, and asking the right questions. The LLM does all the grunt work — the summarizing, cross-referencing, filing, and bookkeeping that makes a knowledge base actually useful over time. In practice, I have the LLM agent open on one side and Obsidian open on the other. The LLM makes edits based on our conversation, and I browse the results in real time — following links, checking the graph view, reading the updated pages. Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase.

This can apply to a lot of different contexts. A few examples:

  • Personal: tracking your own goals, health, psychology, self-improvement — filing journal entries, articles, podcast notes, and building up a structured picture of yourself over time.
  • Research: going deep on a topic over weeks or months — reading papers, articles, reports, and incrementally building a comprehensive wiki with an evolving thesis.
  • Reading a book: filing each chapter as you go, building out pages for characters, themes, plot threads, and how they connect. By the end you have a rich companion wiki. Think of fan wikis like Tolkien Gateway — thousands of interlinked pages covering characters, places, events, languages, built by a community of volunteers over years. You could build something like that personally as you read, with the LLM doing all the cross-referencing and maintenance.
  • Business/team: an internal wiki maintained by LLMs, fed by Slack threads, meeting transcripts, project documents, customer calls. Possibly with humans in the loop reviewing updates. The wiki stays current because the LLM does the maintenance that no one on the team wants to do.
  • Competitive analysis, due diligence, trip planning, course notes, hobby deep-dives — anything where you're accumulating knowledge over time and want it organized rather than scattered.

Architecture

There are three layers:

Raw sources — your curated collection of source documents. Articles, papers, images, data files. These are immutable — the LLM reads from them but never modifies them. This is your source of truth.

The wiki — a directory of LLM-generated markdown files. Summaries, entity pages, concept pages, comparisons, an overview, a synthesis. The LLM owns this layer entirely. It creates pages, updates them when new sources arrive, maintains cross-references, and keeps everything consistent. You read it; the LLM writes it.

The schema — a document (e.g. CLAUDE.md for Claude Code or AGENTS.md for Codex) that tells the LLM how the wiki is structured, what the conventions are, and what workflows to follow when ingesting sources, answering questions, or maintaining the wiki. This is the key configuration file — it's what makes the LLM a disciplined wiki maintainer rather than a generic chatbot. You and the LLM co-evolve this over time as you figure out what works for your domain.

Operations

Ingest. You drop a new source into the raw collection and tell the LLM to process it. An example flow: the LLM reads the source, discusses key takeaways with you, writes a summary page in the wiki, updates the index, updates relevant entity and concept pages across the wiki, and appends an entry to the log. A single source might touch 10-15 wiki pages. Personally I prefer to ingest sources one at a time and stay involved — I read the summaries, check the updates, and guide the LLM on what to emphasize. But you could also batch-ingest many sources at once with less supervision. It's up to you to develop the workflow that fits your style and document it in the schema for future sessions.

Query. You ask questions against the wiki. The LLM searches for relevant pages, reads them, and synthesizes an answer with citations. Answers can take different forms depending on the question — a markdown page, a comparison table, a slide deck (Marp), a chart (matplotlib), a canvas. The important insight: good answers can be filed back into the wiki as new pages. A comparison you asked for, an analysis, a connection you discovered — these are valuable and shouldn't disappear into chat history. This way your explorations compound in the knowledge base just like ingested sources do.

Lint. Periodically, ask the LLM to health-check the wiki. Look for: contradictions between pages, stale claims that newer sources have superseded, orphan pages with no inbound links, important concepts mentioned but lacking their own page, missing cross-references, data gaps that could be filled with a web search. The LLM is good at suggesting new questions to investigate and new sources to look for. This keeps the wiki healthy as it grows.

Indexing and logging

Two special files help the LLM (and you) navigate the wiki as it grows. They serve different purposes:

index.md is content-oriented. It's a catalog of everything in the wiki — each page listed with a link, a one-line summary, and optionally metadata like date or source count. Organized by category (entities, concepts, sources, etc.). The LLM updates it on every ingest. When answering a query, the LLM reads the index first to find relevant pages, then drills into them. This works surprisingly well at moderate scale (~100 sources, ~hundreds of pages) and avoids the need for embedding-based RAG infrastructure.

log.md is chronological. It's an append-only record of what happened and when — ingests, queries, lint passes. A useful tip: if each entry starts with a consistent prefix (e.g. ## [2026-04-02] ingest | Article Title), the log becomes parseable with simple unix tools — grep "^## \[" log.md | tail -5 gives you the last 5 entries. The log gives you a timeline of the wiki's evolution and helps the LLM understand what's been done recently.

Optional: CLI tools

At some point you may want to build small tools that help the LLM operate on the wiki more efficiently. A search engine over the wiki pages is the most obvious one — at small scale the index file is enough, but as the wiki grows you want proper search. qmd is a good option: it's a local search engine for markdown files with hybrid BM25/vector search and LLM re-ranking, all on-device. It has both a CLI (so the LLM can shell out to it) and an MCP server (so the LLM can use it as a native tool). You could also build something simpler yourself — the LLM can help you vibe-code a naive search script as the need arises.

Tips and tricks

  • Obsidian Web Clipper is a browser extension that converts web articles to markdown. Very useful for quickly getting sources into your raw collection.
  • Download images locally. In Obsidian Settings → Files and links, set "Attachment folder path" to a fixed directory (e.g. raw/assets/). Then in Settings → Hotkeys, search for "Download" to find "Download attachments for current file" and bind it to a hotkey (e.g. Ctrl+Shift+D). After clipping an article, hit the hotkey and all images get downloaded to local disk. This is optional but useful — it lets the LLM view and reference images directly instead of relying on URLs that may break. Note that LLMs can't natively read markdown with inline images in one pass — the workaround is to have the LLM read the text first, then view some or all of the referenced images separately to gain additional context. It's a bit clunky but works well enough.
  • Obsidian's graph view is the best way to see the shape of your wiki — what's connected to what, which pages are hubs, which are orphans.
  • Marp is a markdown-based slide deck format. Obsidian has a plugin for it. Useful for generating presentations directly from wiki content.
  • Dataview is an Obsidian plugin that runs queries over page frontmatter. If your LLM adds YAML frontmatter to wiki pages (tags, dates, source counts), Dataview can generate dynamic tables and lists.
  • The wiki is just a git repo of markdown files. You get version history, branching, and collaboration for free.

Why this works

The tedious part of maintaining a knowledge base is not the reading or the thinking — it's the bookkeeping. Updating cross-references, keeping summaries current, noting when new data contradicts old claims, maintaining consistency across dozens of pages. Humans abandon wikis because the maintenance burden grows faster than the value. LLMs don't get bored, don't forget to update a cross-reference, and can touch 15 files in one pass. The wiki stays maintained because the cost of maintenance is near zero.

The human's job is to curate sources, direct the analysis, ask good questions, and think about what it all means. The LLM's job is everything else.

The idea is related in spirit to Vannevar Bush's Memex (1945) — a personal, curated knowledge store with associative trails between documents. Bush's vision was closer to this than to what the web became: private, actively curated, with the connections between documents as valuable as the documents themselves. The part he couldn't solve was who does the maintenance. The LLM handles that.

Note

This document is intentionally abstract. It describes the idea, not a specific implementation. The exact directory structure, the schema conventions, the page formats, the tooling — all of that will depend on your domain, your preferences, and your LLM of choice. Everything mentioned above is optional and modular — pick what's useful, ignore what isn't. For example: your sources might be text-only, so you don't need image handling at all. Your wiki might be small enough that the index file is all you need, no search engine required. You might not care about slide decks and just want markdown pages. You might want a completely different set of output formats. The right way to use this is to share it with your LLM agent and work together to instantiate a version that fits your needs. The document's only job is to communicate the pattern. Your LLM can figure out the rest.

This will create the entire folder structure needed. You can also copy it from the following GitHub Gist.

Step 3: Ingest your first Knowledge Base

Add a new file under your raw/ folder and give the following prompt to the LLM:

I have ingested a new file under the raw folder. Ingest it.

And you will the LLM do the magic. It will go through the file, summarize it, find cross references, link them.

Step 4: MindMap created by Obsidian

Click on the mindmap button on obsidian to see the entire mind-map created by obsidian. This is how my mindmap looks like:


Most Useful way to understand LLM Wiki

LLM Wiki tends to be strongest when:

  • materials keep accumulating

  • similar questions recur

  • links and context matter

  • human-readable intermediate outputs are valuable

It is not something every team should adopt immediately.
If real-time data, high-stakes decisions, or large-scale freshness are the real problem, other retrieval systems may come first.

Still, the idea matters.
At minimum, Karpathy’s proposal suggests that alongside better models, we may also need better-maintained memory layers.

Enjoyed this?

Like, comment or subscribe on Substack to get the next one.