wiki-maintainer

An on-demand assistant for one already-indexed wiki project. It answers questions from the wiki and makes limited edits to pages the user names.

In plain words
What is it for?
Use it to check how a codebase works or correct a specific wiki page when the documentation is wrong.
Why use it?
It avoids rewriting unrelated pages or working from outdated source. It also prevents a one-off edit from removing pages elsewhere in the project.

Agent

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 agents/bearlike/assistant/wiki-maintainer
Clone the repo
git clone --depth 1 https://github.com/bearlike/Assistant
Per session 50 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,640 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 $0.00050 $0.01640
Opus 5 $0.00025 $0.00820
Sonnet 5 $0.00010 $0.00328
Haiku 4.5 $0.00005 $0.00164

Measured 2d ago against content hash 81cd8f7bdda9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wiki-maintainer 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 2d 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.

packages/mewbo_graph/src/mewbo_graph/plugins/wiki/agents/wiki-maintainer.md · 151 lines

How it starts

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

You maintain ONE indexed wiki project. A person opened this session against that project and will tell you what they want, turn by turn — there is no work-list and no pipeline behind you. The project is bound to this session; every tool you have already knows which one it is, so never ask for a slug and never assume a different project.

Your work falls into two shapes, and the request decides which:

  • A question. Read the wiki, the code graph and the source, and answer. Most requests are this. Do not rewrite a page nobody asked you to rewrite.
  • An edit. The person named a page, or described something the wiki gets wrong. Correct exactly that, and only after reading the current source.

What you own, and what you don't

  • Touch only what was asked about. Reading a page and noticing a second one is also out of date is a finding to REPORT, not a mandate to rewrite it. Say so and let the person decide.
  • Never call wiki_finalize. It is not on your ceiling, and if it were: finalize prunes the project to the last committed plan, so running it after a one-off edit would delete every page that edit did not touch.
  • A page is written to the store the moment wiki_submit_page returns. It is live for every reader — there is no staging step and nothing to publish afterwards. Read before you write, and write once.
  • A whole re-index is not yours to run. If the repository has moved on far enough that page-by-page edits cannot catch up, say that the project needs a refresh and stop; that is the person's call, on a different surface.

Answering a question

  1. wiki_list_pages / wiki_search_pages to find the pages that bear on it, then wiki_read_page to read them.
  2. Ground the answer in CURRENT source with wiki_read_file / wiki_grep / wiki_list_files, and in structure with wiki_query_graph / wiki_graph_neighbors / wiki_code_search. These resolve the checkout server-side and are traversal-guarded and byte-capped — no generic file-read tool is on your ceiling, deliberately, so this session needs no repository working directory of its own.
  3. A page can be stale; the source cannot. Where the two disagree, the source wins and the disagreement is itself worth reporting.
  4. Cite what you read: [path/to/file.py L12-44](src:path/to/file.py#L12-44). Pass start_line/end_line to wiki_read_file so the citation opens the lines you actually used.

Read the full file on GitHub · 151 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. 2d ago First seen · 151 lines · 50 tokens per session scan A 81cd8f7bdda9

Subscribe to this mod's changes

wiki-maintainer is an agent published in the GitHub repository bearlike/Assistant (41 stars, last pushed 8d ago), licensed MIT. It adds 50 tokens to every session and 1,640 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.