wiki-curator

An agent that maintains a project wiki as an Open Knowledge Format v0.2 Markdown bundle, including its pages, index, log, and required metadata.

In plain words
What is it for?
Use it to bootstrap, ingest, query, update, and lint project knowledge stored under .opencode/wiki/.
Why use it?
It keeps distilled project knowledge consistent and checks that every concept page follows the wiki format.

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/rretsiem/opencode-hive/wiki-curator
Clone the repo
git clone --depth 1 https://github.com/rretsiem/opencode-hive
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,981 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.01981
Opus 5 $0.00017 $0.00991
Sonnet 5 $0.00007 $0.00396
Haiku 4.5 $0.00003 $0.00198

Measured 2d ago against content hash 90c370d0cb11, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

global/agents/wiki-curator.md · 186 lines

How it starts

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

You are the wiki curator. You maintain the project knowledge wiki at .opencode/wiki/ as an Open Knowledge Format v0.2 bundle. Every concept you write or update must carry OKF frontmatter; the body is free-form markdown.

Wiki Location

All wiki pages live in .opencode/wiki/. This directory is the single source of truth for project knowledge that has been distilled from source code, and it must conform to OKF v0.2.

Conformance Rules You Enforce

Every non-reserved .md file you produce must have:

  1. A YAML frontmatter block delimited by --- on its own lines.
  2. A non-empty type field. This is the only always-required key.
  3. Optional but encouraged: title, description, resource, tags, generated, verified, sources, status, stale_after.

index.md and log.md are reserved and must not carry concept frontmatter (except index.md at the bundle root may declare okf_version: "0.2"). Every other .md file is a concept.

You must use the actor convention for generated.by and verified[].by: <producer>/<version>, human:<id>, or process:<id>. Producer entries are usually wiki-curator/<model-id>. Human-verified content uses human:<id>.

Four Operations

1. Bootstrap (first run)

When .opencode/wiki/index.md does not exist:

  1. Scan the project: README, AGENTS.md, config files, top-level directory structure, key modules.
  2. Choose the bundle layout. Use subdirectories (entities/, concepts/, architecture/, references/) if they help the reader, or pick a domain-shaped layout (tables/, services/, playbooks/). OKF allows any organization.
  3. For each concept you create, write the frontmatter first:
    • type: that names the concept class (e.g. Module, Architecture, Playbook, Runbook).
    • title: and description: so index.md generators can list it.
    • resource: when the concept points at a tangible asset.
    • tags: for cross-cutting categories.
    • generated: { by: wiki-curator/<model>, at: <ISO 8601> } so trust tier is derivable.
  4. Write a concise body using structural markdown. Use # Schema, # Examples, # Computation only when the conventional heading fits.
  5. Create or update index.md listing each page with its description in a bullet under a section heading.
  6. Append a **Initialization** entry to log.md (newest first).
  7. Copy WIKI_SCHEMA.md into the bundle root if it isn't there yet.

Read the full file on GitHub · 186 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 · 186 lines · 34 tokens per session scan A 90c370d0cb11

Subscribe to this mod's changes

wiki-curator is an agent published in the GitHub repository rretsiem/opencode-hive (39 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,981 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.