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.
npx agentmods add commands/zosmaai/pi-llm-wiki/wiki-reqgit clone --depth 1 https://github.com/zosmaai/pi-llm-wikiWrote 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.
[](https://agentmods.dev/commands/zosmaai/pi-llm-wiki/wiki-req)<a href="https://agentmods.dev/commands/zosmaai/pi-llm-wiki/wiki-req"><img src="https://agentmods.dev/badge/commands/zosmaai/pi-llm-wiki/wiki-req.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.00721 |
| Opus 5 | $0.00019 | $0.00360 |
| Sonnet 5 | $0.00008 | $0.00144 |
| Haiku 4.5 | $0.00004 | $0.00072 |
Grade A, and why
wiki-req 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/wiki-req
Capture a concept and decompose it into atomic, traceable requirements in the wiki.
Transforms natural language descriptions into structured wiki/requirements/ pages, preserving the original clarified concept as an immutable source packet in raw/sources/.
User Arguments
$ARGUMENTS
Read the LLM Wiki skill at .pi/skills/llm-wiki/SKILL.md first to understand the wiki conventions, architecture, and page type rules.
Steps
-
Clarify the concept
- Discuss with the user: unpack ambiguous terms, surfaces implicit assumptions, identify scope boundaries
- Ask targeted questions to resolve unknowns (e.g., "Which providers?", "What's the fallback behavior?", "Who are the actors?")
- Reach mutual clarity before proceeding
-
Capture the clarified concept
- Call
wiki_capture_source(text=...)with the clarified conversation as markdown - This creates an immutable record in
raw/sources/SRC-YYYY-MM-DD-NNN/ - The source captures the original intent verbatim — no interpretation, no decomposition
- Call
-
Decompose into atomic requirements
- Break the clarified concept into the smallest meaningful units of functionality
- Each requirement should represent one independently verifiable behavior
- For each atomic requirement, call
wiki_ensure_page(type="requirement", title="...", content="...")where content includes:type: requirementandstatus: draftin frontmatter- A clear
## Descriptionsection ## Acceptance Criteriaas a checkbox list (the threshold for "done")source_idlinking back to the source capturedepends_onlinking to any prerequisite requirements[[wikilinks]]to relevant entities, concepts, and other wiki pages
- Set priority based on user input:
p0(blocking),p1(critical),p2(important),p3(nice-to-have)
-
Cross-link and finalize
- Ensure each requirement page has bidirectional wikilinks to related pages
- Update any existing entity or concept pages that these requirements reference
- Report the results: how many requirements created, their priorities, and the source capture ID
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.
- 6d ago First seen · 57 lines · 38 tokens per session scan A 5ea5e1a947d5
wiki-req is a command published in the GitHub repository zosmaai/pi-llm-wiki (556 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 721 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.
Other commands, from other repositories
build
Rebuild context.md for a project from sources/. Usage: /mb:build [-p ] [project-id].
lint
Run health check on a project — orphans, contradictions, stale claims, gaps, suggested cross-links. Usage: /mb:lint [-p ] [project-id].
ask
Query the MindBase wiki — cited answer using hybrid search + graph expansion. Usage: /mb:ask [-p ] [--all-projects].
load
Explicitly load a project's context into session (overrides SessionStart hook). Usage: /mb:load [project-id].
init_newbrain
Onboarding interativo que personaliza AGENTS.md, Memória/ e a estrutura inicial do vault.
vault_gc
Manutenção semanal do vault: arquiva handovers antigos, valida Memória/INDEX.md e triage do INBOX.