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/thomascasali/claude-kb-workflow/kb-querygit clone --depth 1 https://github.com/thomascasali/claude-kb-workflowWrote 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/thomascasali/claude-kb-workflow/kb-query)<a href="https://agentmods.dev/commands/thomascasali/claude-kb-workflow/kb-query"><img src="https://agentmods.dev/badge/commands/thomascasali/claude-kb-workflow/kb-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.00000 | $0.00317 |
| Opus 5 | $0.00000 | $0.00159 |
| Sonnet 5 | $0.00000 | $0.00063 |
| Haiku 4.5 | $0.00000 | $0.00032 |
Grade A, and why
kb-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.
What it actually says
/kb-query — Interroga la LLM Wiki
Rispondi alla domanda usando la LLM Wiki come fonte primaria: $ARGUMENTS
Path della Wiki: imposta
$LLM_WIKI_PATHnel tuo workspace (es.~/llm-wiki/).
Steps
- Leggi
$LLM_WIKI_PATH/wiki/index.mdper orientarti - Identifica le pagine rilevanti per la domanda
- Leggi le pagine pertinenti (progetti, concetti, decisioni, lezioni)
- Se la risposta non è nella wiki → segnalalo esplicitamente e suggerisci
/kb-ingest - Rispondi citando le pagine usate:
[fonte: wiki/projects/X.md]
Comportamento
- Prima la wiki — non andare a leggere i progetti direttamente se la wiki ha già la risposta
- Cita le fonti — ogni affermazione ha il link alla pagina wiki
- Segnala gap — se manca info, di' quale
/kb-ingesteseguire - Non inventare — se non è nella wiki, dì "non so, esegui
/kb-ingest [progetto]"
Esempio
Utente: /kb-query quali progetti usano PostgreSQL?
→ Leggi index.md → trova progetti rilevanti → leggi loro pagine → rispondi con citazioni.
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 · 26 lines · 0 tokens per session scan A 412a52d845cd
kb-query is a command published in the GitHub repository thomascasali/claude-kb-workflow (2 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 317 tokens. 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-31.
Other commands, from other repositories
get-to-work
Autonomous ops work. Args: [mode] [repeat]. Modes: tasks | opps | full | escalating (default). Repeat: cycle (keep going, default) | once (single pass). Run this before stepping away from an ops repo.
tidy
Consistency check for non-code repos with INDEX.md hierarchy. Verifies INDEX.md accuracy, MEMORY.md references, orphaned files, stale dates, and WAITING markers.
recap
Summarize what happened in the project since a given date. Produces a short lead on what's different now, backed by tables and lists covering completed work, state changes, backlog movement, and key decisions. Use when the user wants to catch up on project activity, review recent progress, or generate a status update…
whats-next
Generate an executive overview of the project. Synthesizes state, backlogs, and recent plans into a ranked action plan answering "What should we do next?".
batch-execute
Execute a batch of ops plans continuously without user input, storing any issues and user questions in a .md file to be processed with the user afterwards. Do NOT invoke this yourself! Should only be invoked by the user.
batch-plan
Create a batch of ops plans continuously without user input, storing any user questions in a .md file to be processed with the user afterwards. Do NOT invoke this yourself! Should only be invoked by the user.