wiki-init

wiki-init is a command for Claude Code from zosmaai/pi-llm-wiki. It costs 23 tokens per session (311 once invoked), scanned A, original, MIT.

A command that creates a new LLM Wiki in the current directory. An LLM Wiki is a structured collection of source material and editable pages designed for an AI assistant to maintain.

In plain words
What is it for?
Use it to start a personal or company wiki for a chosen topic, then add source material and process it into knowledge pages.
Why use it?
It removes the need to create the wiki's folders, configuration, metadata, and templates by hand.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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.

agentmods
npx agentmods add commands/zosmaai/pi-llm-wiki/wiki-init
Clone the repo
git clone --depth 1 https://github.com/zosmaai/pi-llm-wiki

Made for: Claude Code.

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-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/zosmaai/pi-llm-wiki/wiki-init.svg)](https://agentmods.dev/commands/zosmaai/pi-llm-wiki/wiki-init)
Your own site
<a href="https://agentmods.dev/commands/zosmaai/pi-llm-wiki/wiki-init"><img src="https://agentmods.dev/badge/commands/zosmaai/pi-llm-wiki/wiki-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 311 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00023 $0.00311
Opus 5 $0.00012 $0.00156
Sonnet 5 $0.00005 $0.00062
Haiku 4.5 $0.00002 $0.00031

Measured 6d ago against content hash a80d40b4c6e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

wiki-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 6d 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.

commands/wiki-init.md · 31 lines

What it actually says

/wiki-init

Initialize a new LLM Wiki vault using the wiki_bootstrap tool.

User Arguments

$ARGUMENTS

Steps

  1. If the user provided a topic in $ARGUMENTS, use it. Otherwise, ask the user for the wiki topic.
  2. Determine mode: default to personal; use company if the user specifies --mode company or requests it.
  3. Call wiki_bootstrap(topic=<topic>, mode=<mode>) to create the vault.
  4. Report the result and suggest next steps:
    • "Use wiki_capture_source to add your first source (URL, file, or text)."
    • "Run /wiki-ingest after capturing sources to synthesize them into knowledge pages."

Do NOT manually create directories or files. The wiki_bootstrap tool handles all scaffolding including:

  • .llm-wiki/raw/sources/ — immutable source packets
  • .llm-wiki/wiki/ — editable knowledge pages
  • .llm-wiki/meta/ — auto-generated metadata
  • .llm-wiki/config.json — vault configuration
  • .llm-wiki/WIKI_SCHEMA.md — operating rules
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. 6d ago First seen · 31 lines · 23 tokens per session scan A a80d40b4c6e7

Subscribe to this mod's changes

wiki-init is a command published in the GitHub repository zosmaai/pi-llm-wiki (558 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 311 once invoked, about $0.0001 per session on Opus 5. 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.