.wiki-compiler.json file lives in your project root and controls everything about how the wiki compiler runs — what files it reads, where it writes output, and how Claude uses the result.
/wiki-init creates this file automatically. You can edit it manually at any time.
Example config
Fields
Display name for the knowledge base. Used in logs and session context injected by the SessionStart hook.
Directories to scan for
.md files. Each entry is an object with a path and an optional exclude list.path— relative path to a directory (include the trailing slash)exclude— subdirectories withinpathto skip (useful for excluding the wiki output directory itself)
Source files are never modified. The compiler only writes to the
output directory.Path to the directory where the compiled wiki lives. All topic articles, You can delete this directory and regenerate it at any time by running
INDEX.md, schema.md, and compile logs are written here./wiki-compile.Controls how aggressively Claude uses the wiki versus your raw source files. Accepts
staging, recommended, or primary.See Adoption Modes for a full explanation of each mode.Defines the section structure for every topic article. Generated by Each entry has:
/wiki-init based on a sample of your source files, then saved here so you can edit it.name— the section headingdescription— guides the compiler on what content belongs hererequired— iftrue, the section cannot be removed (SummaryandSourcesonly)
If
article_sections is missing, the compiler falls back to a built-in default template.Optional list of seed topic names to guide the compiler’s classification. Useful when your content covers a known set of subjects and you want the compiler to anchor to those names rather than discover topics from scratch.Leave this as an empty array if you want the compiler to discover topics automatically.
Sets the link format used in compiled articles. Accepts
obsidian or markdown.obsidian— uses[[wikilinks]], compatible with Obsidian’s graph view and backlink featuresmarkdown— uses standard[text](path)links, compatible with any markdown renderer
Editing the config
You can edit.wiki-compiler.json directly in any text editor. Changes to most fields (including article_sections and mode) take effect the next time you run /wiki-compile or start a new Claude session.