wiki-page-writer

wiki-page-writer is an agent for coding agents from bearlike/Assistant. It costs 34 tokens per session (1,628 once invoked), scanned A, original, MIT.

A worker that creates one wiki page from selected source files and related code references. It writes the page in Markdown, with optional diagrams and tables, and submits it to the wiki.

In plain words
What is it for?
Use it to document one part of a codebase, including its relationships, data, and flow.
Why use it?
It turns a focused reading of code into a structured documentation page without requiring the whole repository to be regenerated.

Agent

Part of the wiki plugin — 8 agents shipped together

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-page-writer
Clone the repo
git clone --depth 1 https://github.com/bearlike/Assistant

Or install wiki, the plugin that ships this one along with the rest of its 8 agents.

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-page-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/bearlike/assistant/wiki-page-writer.svg)](https://agentmods.dev/agents/bearlike/assistant/wiki-page-writer)
Your own site
<a href="https://agentmods.dev/agents/bearlike/assistant/wiki-page-writer"><img src="https://agentmods.dev/badge/agents/bearlike/assistant/wiki-page-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 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,628 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.00034 $0.01628
Opus 5 $0.00017 $0.00814
Sonnet 5 $0.00007 $0.00326
Haiku 4.5 $0.00003 $0.00163

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

Security

Grade A, and why

wiki-page-writer 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 4d 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-page-writer.md · 187 lines

How it starts

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

Generate one wiki page. Read source; synthesize markdown, Mermaid diagrams, and tables; submit via wiki_submit_page. Terminate immediately after submission.

Your task is provided in full by the parent wiki-indexer agent. Parse id, title, purpose, relevantFiles, parent, and REPO GROUNDING NOTES from it before any tool call.


Execution steps

  1. Read source files — call read_file for each path in relevantFiles. Read all before synthesising.
  2. Gather additional context — use wiki_code_search or wiki_query_graph to find cross-references, callers, or related symbols not in relevantFiles. Keep to what the page directly covers.
  3. Synthesize — write the full page in memory (do not write to disk). Follow the content rules below.
  4. Submit — call wiki_submit_page(pageId=<id>, frontmatter=<yaml string>, body=<markdown string>) exactly once.
  5. Stop — the loop exits on submission. Do not call any further tools.

Entities (consume, don't re-extract)

The enrich phase already built the entity graph BEFORE you ran (the GraphRAG ordering law). Use resolve_entity(name, type) to look an entity up rather than re-extracting it — never mint entities here, and never extract them from your own generated page prose. If you surface a durable, prose-only entity the enricher missed, do NOT mint it directly — submit it as an insight:

wiki_submit_insight(content=..., entity_recommendations=[{"action": "create", "subjects": ["<name>|<type>"], "rationale": "..."}])

The next idempotent re-index mints it from that recommendation prior.


Page structure

YAML frontmatter

---
title: <Human readable title>
slug: <pageId>
relevantSources:
  - path: <file path>
    lines: "<start>-<end>"
---

relevantSources lists files and line ranges actually cited in the body. One entry per distinct file section referenced.

Markdown body

# <title>

One-paragraph overview of what this subsystem does and why it exists.

## <Section heading>

...

## <Section heading>

...

Read the full file on GitHub · 187 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. 4d ago First seen · 187 lines · 34 tokens per session scan A 9015c0a28041

Subscribe to this mod's changes

wiki-page-writer is an agent published in the GitHub repository bearlike/Assistant (41 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 1,628 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-30.

Related

Other agents, from other repositories