Karpathy's LLM-Wiki pattern as a Claude Code plugin. Build and maintain a persistent, AI-tended research wiki from sources, capture daily thoughts, query what you know, lint for orphans and contradictions. Operations: /mb:init, /mb:contribute, /mb:build, /mb:ask, /mb:lint, /mb:status, /mb:research, /mb:daily-brief, /mb:migrate.
An open-source implementation of Andrej Karpathy's LLM Wiki idea: an AI that builds and maintains a wiki from your sources. Not RAG-in-a-vector-DB. A real markdown wiki on your disk, that an LLM gardens for you between conversations.
npx mindbase-app
One command: starts the local server, opens the web app, and walks you through picking a free local model that fits your RAM. No API key, nothing leaves your machine. (Node 20+)
MindBase implements Andrej Karpathy's LLM-Wiki pattern: you feed it sources (papers, articles, thoughts); the LLM reads, cross-references, flags contradictions, and writes structured wiki pages. Later, when you ask a question, the wiki already has the synthesized answer — no vector-search re-derivation at query time.
Status: Early access, actively developed. What's new: CHANGELOG · Releases
Why MindBase
You read a lot. Papers, articles, tweets, docs. You want to remember them, connect them, form opinions from them. Today you have two bad options:
Notion / Obsidian / Roam: Passive containers. You do all the organizing. AI features are bolted-on generation, not maintenance.
NotebookLM / Perplexity Pages / ChatGPT search: RAG-based. Nothing accumulates. Every question re-derives the answer from raw sources.
MindBase is the third option: the LLM actively maintains a persistent, structured wiki as you feed it sources. Knowledge compounds. Your context.md gets sharper every time you contribute. The AI remembers you across sessions because your beliefs are written down in markdown files — not stored in a chat history that gets summarized away.
Think of it as a personal Wikipedia that an AI intern writes for you, kept up to date, cross-referenced, and honest about what it doesn't know.
How it works (30 seconds)
Three physical layers on disk (Karpathy's model):
Layer
Who owns it
What lives there
sources/
You — append-only, the AI never rewrites it
Quick captures, full notes, PDFs, URLs
context.md + sources/research/
The AI — every change human-approved
The maintained wiki: synthesis, concept pages, [[wikilinks]]
state/ · logs/ · artifacts/
Derived — always rebuildable
Search index, snapshots, lint findings, op history
Three operations run the loop: ingest (AI reads a source, discusses takeaways, you approve the wiki updates), build (regenerate context.md from everything unbuilt), lint (the AI audits its own wiki for contradictions, stale claims, and orphans).
What makes it different
The AI asks before writing. Every ingest shows takeaways + a checkbox plan; only what you approve gets written. No black-box edits to your knowledge.
You can watch the wiki absorb your notes. Every note carries a status chip — ✨ Add to wiki until digested, ✓ In wiki after.
It audits its own knowledge. One command re-reads the whole wiki and reports contradictions with the exact conflicting sentences quoted. Notion and NotebookLM structurally cannot do this.
Free and local by default. Hardware-detect wizard installs the best Ollama model for your RAM. Cloud keys optional.
Plain markdown on disk. Grep it, git it, open it in Obsidian, leave anytime.