.wiki-compiler.json and takes effect at the start of the next Claude session.
The three modes
| Mode | Claude’s instruction | Your CLAUDE.md / AGENTS.md |
|---|---|---|
staging (default) | “Wiki available — check it when you need depth” | Unchanged |
recommended | ”Check wiki articles before raw files” | Unchanged |
primary | ”Wiki is your primary knowledge source” | You can optionally simplify startup reads |
staging
The default mode. Claude is told the wiki exists and can consult it for depth, but it is not instructed to prefer it over raw files. Your existing AGENTS.md and CLAUDE.md are completely untouched. Usestaging while you’re validating that the compiled articles are accurate and well-structured.
recommended
Claude is instructed to check wiki articles before reading raw source files. This is the main efficiency win — Claude reads a single synthesized article instead of scanning many raw files for each question. Your CLAUDE.md and AGENTS.md remain unchanged. The prioritization instruction is injected by the SessionStart hook.primary
Claude treats the wiki as its primary knowledge source. At this level, you can optionally simplify your AGENTS.md startup reads, since Claude will default to the wiki rather than raw files. Useprimary once you’ve run /wiki-compile regularly, validated topic articles across several sessions, and trust the coverage indicators.
How mode injection works
The plugin never modifies your CLAUDE.md or AGENTS.md. Instead, it uses a SessionStart hook to inject context at the beginning of each session. The hook reads the currentmode from .wiki-compiler.json and adds the appropriate instruction to Claude’s context.
This means:
- Changing the mode takes effect at your next session start — no restart required
- Rolling back is instant: change
modeback tostagingand the stronger instructions disappear - Your existing project files are never touched
The SessionStart hook runs automatically once the plugin is installed. You don’t need to configure it — it reads
.wiki-compiler.json on its own.Changing mode
Edit themode field in .wiki-compiler.json directly:
Recommended progression
Start with staging
Run
/wiki-init and /wiki-compile, then leave the mode at staging. Use Claude normally and let it consult the wiki organically. Check a few topic articles manually to see if they accurately reflect your knowledge.Move to recommended
Once you’re satisfied that the compiled articles are accurate and cover your main topics, change to
recommended. Claude will start preferring wiki articles over raw files for research. Watch for cases where it returns wrong or outdated information — those point to articles that need a recompile or a section with low coverage.Safety guarantees
- Your CLAUDE.md and AGENTS.md are never modified by the plugin
- The wiki output directory can be deleted and regenerated at any time
- Changing
modeback tostagingimmediately reduces Claude’s wiki reliance - Deleting
.wiki-compiler.jsondisables the SessionStart hook entirely