AGENTS.md or CLAUDE.md. Once it’s there, Claude reads the wiki automatically at the start of every session — no extra commands needed.
How it works
The plugin injects wiki context via aSessionStart hook based on the mode in your .wiki-compiler.json. Adding the snippet below to AGENTS.md instructs Claude to read the wiki index first, then pull specific topic articles as needed — falling back to raw source files only when coverage is low.
Integration steps
Compile your wiki
Run
/wiki-compile at least once and let it finish. On a large knowledge base this can take 5–10 minutes.Validate the output
Open
wiki/INDEX.md and spot-check a few topic articles. Confirm the content accurately reflects your knowledge base before telling Claude to rely on it.Add the snippet to AGENTS.md
Open your project’s
AGENTS.md (or CLAUDE.md — both work) and paste the following, replacing {your output path} with the value of output in your .wiki-compiler.json:AGENTS.md vs CLAUDE.md
Both files work. Claude Code reads whichever one it finds.AGENTS.md is the newer convention and is preferred for multi-agent projects, but either is fine for this use case. If you already have one of these files, just append the snippet — the plugin never modifies either file on its own.
Changing how much Claude prioritizes the wiki
The plugin has three modes you can set in.wiki-compiler.json:
| Mode | Behavior |
|---|---|
staging (default) | “Wiki is available — check it when you need depth” |
recommended | ”Check wiki articles before raw files” |
primary | ”Wiki is your primary knowledge source” |
mode to recommended or primary and adding the snippet is the cleanest setup.