wiki-global-init

wiki-global-init is a command for Claude Code from ussumant/llm-wiki-compiler. It costs 0 tokens per session (367 once invoked), scanned A, original, MIT.

A setup command for a global wiki shared across projects. It creates or repairs the default wiki folders and configuration in a location you can browse, back up, sync, and edit.

In plain words
What is it for?
Use it to create or check the default global wiki, choose a custom location, and prepare folders for captured sources and wiki articles.
Why use it?
It provides one known place for knowledge from different projects instead of leaving each project with an isolated collection of notes.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the llm-wiki-compiler plugin — 1 skill, 12 commands, 1 hook shipped together

Good fit Use it to create or check the default global wiki, choose a custom location, and prepare folders for captured sources and wiki articles.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ussumant/llm-wiki-compiler/wiki-global-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ussumant/llm-wiki-compiler

Made for: Claude Code.

Or install llm-wiki-compiler, the plugin that ships this one along with the rest of its 1 skill, 12 commands, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki-global-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/ussumant/llm-wiki-compiler/wiki-global-init/github.svg)](https://agentmods.dev/commands/ussumant/llm-wiki-compiler/wiki-global-init)
Your own site
<a href="https://agentmods.dev/commands/ussumant/llm-wiki-compiler/wiki-global-init"><img src="https://agentmods.dev/badge/commands/ussumant/llm-wiki-compiler/wiki-global-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-global-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/ussumant/llm-wiki-compiler/wiki-global-init"><img src="https://agentmods.dev/badge/commands/ussumant/llm-wiki-compiler/wiki-global-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00367
Opus 5 $0.00000 $0.00183
Sonnet 5 $0.00000 $0.00073
Haiku 4.5 $0.00000 $0.00037

Measured 9d ago against content hash 108e157563c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

wiki-global-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/commands/wiki-global-init.md · 65 lines

What it actually says

Initialize the Global Wiki

Create or repair the user's default cross-project wiki.

Arguments

  • /wiki-global-init — initialize the default global wiki
  • /wiki-global-init --path ~/Somewhere — initialize a custom global wiki directory

Codex prompt equivalents:

Set up my global wiki

or:

Use ~/Knowledge as my global wiki

Global wiki location

Default:

~/Knowledge

Override:

LLM_WIKI_GLOBAL_DIR=/path/to/wiki-root

Prefer ~/Knowledge over hidden app storage because users can browse it, back it up, sync it, edit sources, and understand where their knowledge lives.

Instructions

  1. Resolve the target directory:
    • --path wins if provided.
    • Else LLM_WIKI_GLOBAL_DIR if set.
    • Else ~/Knowledge.
  2. Create the directory if it does not exist.
  3. Create these subdirectories if missing:
    wiki-sources/captures/
    wiki/
    
  4. If .wiki-compiler.json does not exist, create it from templates/global-wiki-config.json.
  5. If .wiki-compiler.json exists, verify it includes wiki-sources/captures/ in sources[]; ask before adding it if missing.
  6. Do not overwrite an existing config.
  7. Print:
    Global wiki ready at {path}
    
    Try:
    https://example.com
    capture this in my wiki
    

Default config

Use templates/global-wiki-config.json as the default config shape. The default wiki is a knowledge-mode wiki with capture sources enabled and output at wiki/.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 65 lines · 0 tokens per session scan A 108e157563c1

Subscribe to this mod's changes

wiki-global-init is a command published in the GitHub repository ussumant/llm-wiki-compiler (321 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 367 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.