LLM Wiki Compiler
A Claude Code and Codex-compatible plugin that compiles knowledge into a topic-based wiki — from scattered markdown files or entire codebases. Reduce context costs by ~90% and give your agent a synthesized understanding of any project.
Documentation
What's New in v2.1
- Codex-compatible plugin metadata — install from the same
plugin/ package root
- Skill-first Codex workflows — use natural prompts instead of Claude slash commands
- Shared session context helper — one wiki context renderer for Claude hooks and Codex guidance
What's New in v2.0
- Codebase mode — generate wikis from code repositories, not just markdown files
- Auto-detection —
/wiki-init detects whether you're in a codebase or knowledge project
- Knowledge graph visualization — interactive canvas-based graph of your wiki


Inspiration
This plugin implements the LLM Knowledge Base pattern described by Andrej Karpathy:
"Raw data from a given number of sources is collected, then compiled by an LLM into a .md wiki, then operated on by various CLIs by the LLM to do Q&A and to incrementally enhance the wiki, and all of it viewable in Obsidian. You rarely ever write or edit the wiki manually, it's the domain of the LLM."
The key insight: instead of re-reading hundreds of raw files every session, have the LLM compile them into topic-based articles once, then query the synthesized wiki. Knowledge compounds instead of fragmenting.
What It Does
You have 100+ files across meetings, strategy docs, codebases, and research. Every Claude session re-reads them. This plugin compiles them into topic-based articles that synthesize everything known about each subject — with backlinks to sources.
Before: Read 13+ raw files (~3,200 lines) per session
After: Read INDEX + 2 topic articles (~330 lines) per session

How It Works
flowchart LR
subgraph Sources["📁 Raw Sources (you own)"]
M1["meetings/"]
M2["strategy/"]
M3["research/"]
M4["notes/"]
end
subgraph Commands["⚡ Commands"]
INIT["/wiki-init<br/>samples files<br/>proposes structure"]
CAPTURE["/wiki-capture<br/>link + context"]
COMPILE["/wiki-compile<br/>batch compilation"]
INGEST["/wiki-ingest<br/>single file, interactive"]
SEARCH["/wiki-search<br/>find anything"]
LINT["/wiki-lint<br/>health check"]
end
subgraph Wiki["📖 Compiled Wiki (LLM owns)"]
INDEX["INDEX.md"]
T1["topics/retention.md"]
T2["topics/onboarding.md"]
T3["topics/..."]
C1["concepts/..."]
SCHEMA["schema.md"]
end
Sources -->|"383 files · 13 MB"| COMPILE --> Wiki
Sources -->|"1 link + context"| CAPTURE --> Wiki
Sources -->|"1 file"| INGEST --> Wiki
INIT -->|"creates config +<br/>article structure"| COMPILE
Wiki -->|"13 articles · 161 KB<br/>84% fewer tokens"| LLM["🤖 Your LLM Agent<br/>reads wiki, not raw files"]
LINT -.->|"checks"| Wiki
SEARCH -.->|"searches"| Wiki
Install
Clone the repo
git clone https://github.com/ussumant/llm-wiki-compiler.git
Claude Code
# Add as a local marketplace
claude plugin marketplace add /path/to/llm-wiki-compiler
# Install the plugin
claude plugin install llm-wiki-compiler
# Restart Claude Code for hooks to register
For a single Claude session without installing:
claude --plugin-dir /path/to/llm-wiki-compiler/plugin
Codex
This repo includes a Codex plugin manifest at plugin/.codex-plugin/plugin.json and local marketplace metadata at .agents/plugins/marketplace.json. Add this repository as a local Codex plugin marketplace, then install LLM Wiki Compiler from that marketplace.
Codex does not use Claude slash commands. Invoke the same workflows with prompts: