worker-wiki-indexer

worker-wiki-indexer is an agent for Claude Code from anh-chu/llm-wiki-pm. It costs 33 tokens per session (692 once invoked), scanned A, original, MIT.

A worker that rebuilds wiki navigation and summary files from the current Markdown pages. A wiki is a collection of linked documents used as a project's shared reference.

In plain words
What is it for?
Use it after bulk imports or whenever the wiki index is stale. It scans pages in the listed folders, groups them by type, updates the overview when needed, and records a change summary.
Why use it?
It brings the index and overview back in sync after pages are added or changed, so links, counts, sections, and update dates reflect the actual wiki.

Agent for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: model in frontmatter.

Part of the llm-wiki-pm plugin — 8 skills, 5 agents, 4 hooks shipped together

Good fit Use it after bulk imports or whenever the wiki index is stale. It scans pages in the listed folders, groups them by type, updates the overview when needed, and records a change summary.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/anh-chu/llm-wiki-pm/worker-wiki-indexer
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/anh-chu/llm-wiki-pm

Made for: Claude Code.

Or install llm-wiki-pm, the plugin that ships this one along with the rest of its 8 skills, 5 agents, 4 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 worker-wiki-indexer

README.md
[![agentmods](https://agentmods.dev/badge/agents/anh-chu/llm-wiki-pm/worker-wiki-indexer/github.svg)](https://agentmods.dev/agents/anh-chu/llm-wiki-pm/worker-wiki-indexer)
Your own site
<a href="https://agentmods.dev/agents/anh-chu/llm-wiki-pm/worker-wiki-indexer"><img src="https://agentmods.dev/badge/agents/anh-chu/llm-wiki-pm/worker-wiki-indexer/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 worker-wiki-indexer

Your own site · 80×15
<a href="https://agentmods.dev/agents/anh-chu/llm-wiki-pm/worker-wiki-indexer"><img src="https://agentmods.dev/badge/agents/anh-chu/llm-wiki-pm/worker-wiki-indexer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 692 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.00033 $0.00692
Opus 5 $0.00016 $0.00346
Sonnet 5 $0.00007 $0.00138
Haiku 4.5 $0.00003 $0.00069

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

Security

Grade A, and why

worker-wiki-indexer 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 10d 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.

.claude/agents/worker-wiki-indexer.md · 61 lines

How it starts

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

You are a wiki indexing worker. Scan all wiki pages and rebuild navigation and overview files.

Capabilities

  • Read: Scan all .md files in entities/, concepts/, comparisons/, queries/
  • Write: Rewrite index.md and overview.md
  • Bash: Run grep to extract frontmatter fields

Wiki Path Resolution

WIKI=$(cat .wiki-path 2>/dev/null | tr -d '[:space:]')
WIKI=${WIKI:-${CLAUDE_PLUGIN_OPTION_wiki_path:-${WIKI_PATH:-$(pwd)}}}

Process

  1. Read current SCHEMA.md for section taxonomy
  2. Scan each subdirectory (entities/, concepts/, comparisons/, queries/) for .md files
  3. Extract frontmatter: title, type, tags, updated, coverage from each page
  4. Rebuild index.md:
    • Group pages by type/section, alphabetical within each group
    • Preserve existing header/intro if present
    • Bump "Last updated" header to today's date
    • Update total page count
  5. Check overview.md last-updated date. If stale (> 7 days and log.md shows activity since the last overview update), regenerate it (see §Overview Regeneration below). If current, skip.
  6. Write diff summary to /tmp/wiki-index-rebuild-<YYYYMMDD>.md

Overview Regeneration

When step 5 triggers, rebuild overview.md by synthesizing page frontmatter collected in step 3:

  1. Theme clusters — group pages by dominant tags; list 3-7 top-level themes with page counts
  2. Coverage summary — break down pages by coverage tier (stub / partial / solid / authoritative); highlight sections with the weakest coverage
  3. Recent activity — summarize the last 7 days of log.md entries (new pages, updates, supersessions)
  4. Known gaps — list tags or topic areas referenced in wikilinks but with no corresponding page, or where coverage is stub-only
  5. Stats — total pages, pages by section, average coverage score

Preserve any manually-written intro paragraph at the top of the existing overview.md (everything above the first ## heading). Replace all generated sections below it.

Read the full file on GitHub · 61 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. 10d ago First seen · 61 lines · 33 tokens per session scan A dd32ff380ca9

Subscribe to this mod's changes

worker-wiki-indexer is an agent published in the GitHub repository anh-chu/llm-wiki-pm (6 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 692 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

curator

Sub-agent dispatched by /mb:lint. Read-only — has Read + lint MCP tools but no Edit/Write/Bash. Surfaces orphans, contradictions, stale claims, gaps. Suggests fixes; doesn't apply them.

frankchu91/mindbase-llm-wiki · 49 tokens

migrator

One-time sub-agent that runs /mb:migrate. Has Bash (for atomic mv operations not yet wrapped in MCP) plus mindbasemigrate + mindbasevalidatestructure. Should be invoked exactly once per legacy project.

frankchu91/mindbase-llm-wiki · 48 tokens

builder

Sub-agent dispatched by /mb:build to synthesize context.md from sources/. Tool-restricted to MCP only — has no Edit/Write/Bash so cannot bypass atomic write pipeline.

frankchu91/mindbase-llm-wiki · 39 tokens

contributor

Sub-agent dispatched for substantive contributions (PDFs, URLs, long pastes). Reads source carefully, discusses takeaways with user, proposes structured plan, commits via MCP. Cannot bypass append-only contract.

frankchu91/mindbase-llm-wiki · 43 tokens

researcher

Sub-agent dispatched by /mb:research. Has WebFetch + WebSearch + Read + MCP researchsave + searchwiki tools. Cannot Edit/Write directly — research findings flow through mindbaseresearchsave (append-only to sources/research/).

frankchu91/mindbase-llm-wiki · 54 tokens

wiki-lint

Comprehensive wiki health check agent. Scans for orphan pages, dead links, stale claims, missing cross-references, frontmatter gaps, and empty sections. Generates a structured lint report. Dispatched when the user says "lint the wiki", "health check", "wiki audit", or "clean up". Context: User says "lint the wiki"…

eliransu/digital-brain · 137 tokens