Skip to main content
Adoption modes let you roll out the wiki gradually. Start with light integration, validate the output, then increase Claude’s reliance on the wiki as you gain confidence in it. The mode is set in .wiki-compiler.json and takes effect at the start of the next Claude session.

The three modes

ModeClaude’s instructionYour 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. Use staging while you’re validating that the compiled articles are accurate and well-structured. 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. Use primary 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 current mode 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 mode back to staging and 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 the mode field in .wiki-compiler.json directly:
{ "mode": "staging" }
{ "mode": "recommended" }
{ "mode": "primary" }
1

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.
2

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.
3

Move to primary

After several sessions in recommended mode without quality issues, switch to primary. At this point you can also simplify your AGENTS.md startup reads, since Claude will default to INDEX.md and relevant topic articles instead of scanning raw directories.
You can move backwards at any time. If you add a large batch of new source files and want Claude to fall back to raw files while you recompile, switching to staging takes effect immediately at the next session.

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 mode back to staging immediately reduces Claude’s wiki reliance
  • Deleting .wiki-compiler.json disables the SessionStart hook entirely