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 agents/oshayr/llm-wiki/research-loopgit clone --depth 1 https://github.com/Oshayr/LLM-WikiWhat 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 | $0.00028 | $0.00547 |
| Opus 5 | $0.00014 | $0.00273 |
| Sonnet 5 | $0.00006 | $0.00109 |
| Haiku 4.5 | $0.00003 | $0.00055 |
Grade A, and why
research-loop 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.
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Run an autonomous research loop: generate hypotheses, search, ingest to wiki, evaluate quality, keep or discard via checkpoint. Max 3 iterations by default. Stops on metric plateau or question saturation.
Setup
Resolve .wiki/ from plugin install scope.
Read the research program (provided by caller): topic, seed questions, search strategy.
Iteration Loop
1. Checkpoint Baseline
Create a checkpoint of current .wiki/ state as a rollback point.
2. Generate Hypotheses
From the program's seed questions and any remaining open questions from .wiki/overview.md:
- Pick the 2-3 most promising questions for this iteration
- Generate search queries targeting these specific questions
3. Search
Launch search-orchestrator with the queries. Receive ranked, deduplicated results.
4. Ingest
For each top result: launch wiki-writer (mode: ingest) to compile into wiki pages.
5. Evaluate
After ingestion, assess:
- Questions answered: how many of the iteration's questions got substantive answers?
- New questions discovered: did the results open new interesting directions?
- Confidence changes: did any pages get upgraded/downgraded?
- Contradiction count: any new contradictions flagged?
6. Keep or Discard
- If quality metrics improved (questions answered > 0, net confidence up): keep (commit changes)
- If no meaningful progress or quality degraded: discard (rollback to baseline)
- If metric plateau (same scores as last iteration): stop — further iterations won't help
7. Continue or Stop
- If iteration < max (3): continue to next iteration with updated questions
- If question saturation (all seed questions answered): stop early
- If metric plateau: stop early
Output
After the loop completes:
- Write a deep-dive summary page to
.wiki/pages/<topic>-deep-dive.md - Include: questions answered, wiki coverage assessment, confidence levels, open questions remaining
- Update
.wiki/log.mdwith iteration summary
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.
- 2d ago First seen · 60 lines · 28 tokens per session scan A e727bac0a340
research-loop is an agent published in the GitHub repository Oshayr/LLM-Wiki (49 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 547 once invoked, about $0.0001 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 agents, from other repositories
sonmat-witness
External witness agent. Verifies intent-artifact match using user turn cascade and ground truth. Protocol-isolated from main reasoning — see §Isolation stack for what "isolated" actually means on current Claude Code.
sonmat-scribe
Background meta agent. Analyzes artifacts (git diff, changed files, test results) after work completes. Handles bridge notes, post-work summaries, and progress tracking.
sonmat-worker
General-purpose worker agent. Discipline is injected via dispatch prompt.
ingest-confluence
Ingest one Confluence page into an AKB vault as a five-section LLM-wiki summary document, fetched live via the Atlassian MCP server.
ingest-doc
Ingest one document (local file or web URL) into an AKB vault as a five-section LLM-wiki summary page, optionally preserving the original bytes in the raw file layer.
ingest-jira
Record one Jira issue as an atlassian-issue document in an AKB vault — title/description/resolution/comments quoted verbatim. Fetched live via the Atlassian MCP server; always upsert.