kb-query
Answer a question from one or more llmkb knowledge bases, cite what you used,
and — when the answer produced durable new knowledge — file it back.
When to use
A user asks a question that the KB(s) should be able to answer, or asks you to research within them.
Steps
- Route via the index first. Read
wiki/index.md(each KB's) — one line per page — to find the pages most likely to hold the answer. For multiple KBs, read each index; results are tagged by KB name. - Search at scale. If the index is large or routing is unclear, run
llmkb search "<query>" --kb <dir>(repeat--kbfor several KBs). Use the hits to pick pages. - Read the pages you selected and compose the answer.
- Cite every page you drew on by its
[[Title]]. - Compound (optional but encouraged). If answering produced durable new
synthesis not already captured, write it as a
conceptpage (emptysources= agent-authored), then runllmkb reindex, append a## [YYYY-MM-DD] synthesis | <title>line towiki/log.md, and runllmkb lint.
Done when
The question is answered with page citations, and any new synthesis is filed, indexed, logged, and lint-clean.