create-llm-wiki
v1.1.0
Published
CLI tool to scaffold LLM Wiki projects based on Karpathy's LLM Wiki pattern
Maintainers
Readme
create-llm-wiki
A CLI tool to scaffold LLM Wiki projects — a pattern by Andrej Karpathy where an LLM incrementally builds and maintains a persistent, interlinked wiki from your source documents.
What is LLM Wiki?
Unlike RAG (which re-retrieves from raw documents on every query), LLM Wiki compiles knowledge once into structured markdown files and keeps them current. Each new source ingested makes the wiki richer and more interconnected.
┌─────────────────────────────────────────────┐
│ raw/ → Immutable source documents │
│ wiki/ → LLM-generated wiki pages │
│ CLAUDE.md → Schema & workflow rules │
└─────────────────────────────────────────────┘Install
npm install -g create-llm-wikiQuick Start
# Create a new wiki project
create-llm-wiki init my-wiki
# Navigate into the project
cd my-wiki
# Start ingesting sources with your preferred LLM coding agent
# e.g. Claude Code, Cursor, Windsurf, GitHub Copilot, etc.
> ingest raw/my-article.mdWhat Gets Generated
Running create-llm-wiki init my-wiki creates the following structure:
my-wiki/
├── CLAUDE.md # Wiki schema (operations, templates, conventions)
├── README.md # Project overview
├── .gitignore
├── raw/ # Place your source documents here
├── wiki/ # LLM-maintained wiki pages
│ ├── index.md # Page index organized by category
│ ├── log.md # Append-only operation log
│ └── overview.md # Evolving knowledge synthesis
├── assets/ # Images, diagrams, media
└── .obsidian/ # Obsidian vault config (with Dataview plugin)Three Operations
Once your wiki is set up, use your LLM coding agent to run these operations:
| Operation | Trigger | What it does |
|---|---|---|
| Ingest | ingest raw/file.md | Read source, write summary, update entities/concepts, cross-link pages |
| Query | Ask any question | Search wiki, synthesize answer with citations, optionally save back |
| Lint | lint | Health check — find broken links, orphan pages, missing cross-refs |
Browsing with Obsidian
Open the generated project folder as an Obsidian vault. The scaffolded config includes:
- Graph View for visualizing page relationships
- Dataview plugin for advanced queries like:
TABLE summary, updated, tags FROM "" WHERE category = "concept" SORT updated DESC
CLI Reference
Usage: create-llm-wiki [options] [command]
Commands:
init <name> Create a new LLM Wiki project
help [command] Display help for command
Options:
-V, --version Output the version number
-h, --help Display helpRequirements
- Node.js >= 18
- Git (optional, for automatic repo initialization)
- An LLM coding agent for wiki maintenance (e.g. Claude Code, Cursor, Windsurf, GitHub Copilot, etc.)
- Obsidian (recommended, for browsing)
Credits
Based on the LLM Wiki pattern by Andrej Karpathy.
License
MIT
