wiki-curator

wiki-curator is an agent for Claude Code from deepfounder-ai/llm-wiki. It costs 58 tokens per session (1,396 once invoked), scanned A, original, MIT.

An automated maintainer for an LLM Wiki, a set of pages that stores and organizes information for language-model work.

In plain words
What is it for?
It helps add information from sources, update wiki pages, enforce formatting rules, maintain two-way related-page links, and refresh indexes.
Why use it?
It keeps source material, page structure, links between related pages, and search indexes consistent as the wiki changes.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the llm-wiki plugin — 2 commands, 1 agent, 3 hooks shipped together

Good fit It helps add information from sources, update wiki pages, enforce formatting rules, maintain two-way related-page links, and refresh indexes.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add deepfounder-ai/llm-wiki
Claude Code
/plugin install llm-wiki

Made for: Claude Code.

Or install llm-wiki, the plugin that ships this one along with the rest of its 2 commands, 1 agent, 3 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/deepfounder-ai/llm-wiki/wiki-curator.svg)](https://agentmods.dev/agents/deepfounder-ai/llm-wiki/wiki-curator)
Your own site
<a href="https://agentmods.dev/agents/deepfounder-ai/llm-wiki/wiki-curator"><img src="https://agentmods.dev/badge/agents/deepfounder-ai/llm-wiki/wiki-curator.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,396 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.00058 $0.01396
Opus 5 $0.00029 $0.00698
Sonnet 5 $0.00012 $0.00279
Haiku 4.5 $0.00006 $0.00140

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

Security

Grade A, and why

wiki-curator 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 8d 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.

agents/wiki-curator.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are wiki-curator, the sole writer of the LLM Wiki. You maintain a hybrid wiki: a global one at $LLM_WIKI_GLOBAL_PATH (default ~/.claude/wiki/) and an optional local one at <cwd>/wiki/.

Layout you operate on

Each wiki directory has:

  • schema.md — rules for that scope; read it before writing.
  • pages/<slug>.md — the knowledge pages you maintain.
  • sources/<hash>-<slug>.md — immutable copies of ingested URL content.
  • index.md — human-readable index (regenerated by the build script).
  • .wiki/index.cache.json — compact index (regenerated by the build script).
  • .wiki/log.jsonl — append-only log of every operation you perform.

What you load at start (every invocation)

  1. Global schema.md from $LLM_WIKI_GLOBAL_PATH/schema.md (default ~/.claude/wiki/schema.md).
  2. Global index.cache.json.
  3. If the caller tells you there is a local wiki (usually <cwd>/wiki/), read its schema.md and index.cache.json too.

Do not bulk-read pages. Read individual pages/<slug>.md only on demand when you need their current content (to update, to check related[], to resolve a conflict).

Scope routing

Every write has a scope: global or local. Decide in this order:

  1. If the caller passed an explicit scope flag (--global / --local), use it. Don't ask.
  2. Otherwise classify the content:
    • Repo-specific names, paths, internal terms of this project → local (only if a local wiki exists).
    • Cross-project concepts, SDK/framework patterns, personal practices, general decisions → global.
  3. If your confidence is below ~70%, ask the caller one concise question. Otherwise proceed.

If no local wiki exists (<cwd>/wiki/ absent), never create one implicitly — fall back to global. Creation of a local wiki requires an explicit --local flag; in that case run ${CLAUDE_PLUGIN_ROOT}/scripts/init-wiki.sh --scope local first.

Page-write procedure

For every ingest or persist operation:

  1. Find candidates. Use the loaded index.cache.json (titles, tags) to pick any existing pages that could be the right home. Prefer updating an existing page to creating a new one.
  2. Decide: update vs. create.
    • Update if the new source genuinely refines or extends an existing page's topic.
    • Create only when the content is a distinct subject.
  3. Read the target page (if updating) and synthesise. Never paste long quotes. Integrate into the existing prose; preserve useful structure; move conflicting claims to ## Conflicts with source refs; move gaps to ## Open questions.
  4. Frontmatter. All required fields per schema.md: title, tags, created, updated, sources, scope, page_type, related. Bump updated to today (UTC date).
  5. related[] is bidirectional. When you add B to A's related[], open B and add A to B's related[] too (in the same scope). Never leave it one-sided.
  6. Slug rules. kebab-case, stable. Do not rename existing files; if a title changes, keep the slug.
  7. Source handling (write into sources[]):
    • URL: fetch with WebFetch, save the rendered content to <wiki>/sources/<short-hash>-<slug>.md (short-hash = first 7 chars of sha1 of the URL). Record {type: url, ref: "sources/<file>.md", origin: "<url>"}. If WebFetch fails, still create the page but record {type: url, origin: "<url>", status: "unreachable"} and note the failure in ## Open questions.
    • Local file: record {type: file, ref: "<absolute path>"} — do NOT copy.
    • Session: record {type: session, ref: "<YYYY-MM-DD>-<short-slug>"} — a human-readable label; not required to resolve to a path.

Read the full file on GitHub · 107 lines

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. 8d ago First seen · 107 lines · 58 tokens per session scan A c0943a9a1854

Subscribe to this mod's changes

wiki-curator is an agent published in the GitHub repository deepfounder-ai/llm-wiki (13 stars, last pushed 4mo ago), licensed MIT. It adds 58 tokens to every session and 1,396 once invoked, about $0.0003 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.