LLM Wiki Plugin for Claude Code
A persistent, compounding knowledge base powered by LLMs. Based on Karpathy's LLM Wiki pattern.
Instead of RAG-style retrieval (re-deriving answers every time), the LLM incrementally builds and maintains a structured wiki of interlinked markdown files. You curate sources and ask questions; the LLM handles all the bookkeeping.
Install
Step 1: Add the marketplace:
/plugin marketplace add alsayadi/karpathy-llm-wiki-plugin
Step 2: Install the plugin:
/plugin install llm-wiki@karpathy-llm-wiki-plugin
That's it! /wiki is now available.
Usage
| Command | Description | |---------|-------------| | /wiki init [path] | Scaffold a new wiki (default: ./wiki) | | /wiki ingest <source> | Process a source and integrate into the wiki | | /wiki query <question> | Search and synthesize an answer | | /wiki lint | Health-check for issues | | /wiki search <term> | Full-text search across pages | | /wiki status | Show wiki stats |
Architecture
wiki/
raw/ # Your source documents (immutable)
pages/ # LLM-generated markdown (LLM owns this)
index.md # Content catalog
log.md # Chronological operation log
schema.md # Conventions and structure
How It Works
1. Ingest sources one at a time -- the LLM reads each, creates summary pages, updates entity/concept pages, adds cross-references, and logs the operation 2. Query the wiki -- the LLM searches pages and synthesizes answers with citations; good answers can be saved back as synthesis pages 3. Lint periodically -- finds contradictions, orphan pages, missing links, stale content
The wiki compounds over time. Works great with Obsidian for browsing (graph view, backlinks).
License
MIT




