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/deepfounder-ai/llm-wiki/wiki-querygit clone --depth 1 https://github.com/deepfounder-ai/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/deepfounder-ai/llm-wiki/wiki-query)<a href="https://agentmods.dev/commands/deepfounder-ai/llm-wiki/wiki-query"><img src="https://agentmods.dev/badge/commands/deepfounder-ai/llm-wiki/wiki-query.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.00028 | $0.00584 |
| Opus 5 | $0.00014 | $0.00292 |
| Sonnet 5 | $0.00006 | $0.00117 |
| Haiku 4.5 | $0.00003 | $0.00058 |
Grade A, and why
wiki-query 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 5d 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 — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/wiki-query
Answer $ARGUMENTS using the wiki. Work in the current session (don't dispatch to a sub-agent for
the query itself — the user wants the answer here, with access to the conversation context).
Steps
-
Use the index already in context. The SessionStart hook injects a block listing pages in the global (and local, if present) wiki. Scan it for pages whose title or tags match the question.
-
If no index block is in context (fresh session without the hook, or the wikis were empty at start), rebuild and read the caches manually:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/build-index.sh --path ~/.claude/wikiThen Read
~/.claude/wiki/.wiki/index.cache.json, and if./wiki/exists, also Read./wiki/.wiki/index.cache.json. -
Pick 1–3 relevant pages by title+tag match. Read them in full (
~/.claude/wiki/pages/<slug>.mdor./wiki/pages/<slug>.md). -
Answer the user's question in chat. Cite the pages you used by slug (e.g. "From
prompt-cachingandclaude-sdk-basics: …"). If the wiki does not have enough information:- Say so plainly. Do not hallucinate.
- Suggest the user ingest a specific URL or file with
/wiki-ingest.
-
Log the query (append one line to
~/.claude/wiki/.wiki/log.jsonl, and the local log if you used it):{"ts":"<ISO-UTC>","op":"query","scope":"global","slugs":["prompt-caching"],"action":"read"} -
At the end of your answer, ask:
Save this answer as a new wiki page? (y/N) If the user replies
y(or obviously affirmative), dispatch towiki-curatorvia the Agent tool withsubagent_type: "wiki-curator"and a prompt explaining: this is atype: sessioningest, here is the question and your answer, decide update-vs-create, standard procedure.
Style
- Be direct. Synthesise across pages if more than one applies; don't dump their contents verbatim.
- If the question is ambiguous, ask one clarifying question first before hunting for pages.
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.
- 5d ago First seen · 49 lines · 28 tokens per session scan A 93fe6c58d01c
wiki-query is a command published in the GitHub repository deepfounder-ai/llm-wiki (13 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 584 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 commands, from other repositories
wiki-graph
Build the LLM Wiki knowledge graph.
wiki-ingest
Ingest a source document into the LLM Wiki.
wiki-lint
Health-check the LLM Wiki for issues.
wiki-query
Query the LLM Wiki and synthesize an answer.
wiki-longform
Generate a long-form article from the compiled wiki.
wiki-compile
Compile raw sources into the wiki (incremental by default).