KB Query
Use when answering a user question from an AgentKB Markdown knowledge base.
AgentKB keeps Markdown as the canonical storage format. Load the smallest sufficient context first, and make every write reviewable with Git diff.
Context Order
- Read the project
context-pack.md. - Read
_system/indexes/home.mdand_system/indexes/knowledge-index.mdonly if the context pack is insufficient. - Read the few canonical notes needed for the answer.
- Read raw sources only for provenance or conflict resolution.
Trust Priority
AGENTS.md- Accepted ADRs and decisions
current-state.mdcontext-pack.md- Canonical notes
- Memory snippets
- Logs, inbox, and drafts
Do not read personal/ or archive/ unless the user explicitly asks about them.
Procedure
- Answer with source-grounded synthesis.
- Call out conflicts, low confidence, and stale context.
- Decide whether the answer has long-term value.
- If it does, propose or make a concise write-back to knowledge, playbook, decision, candidate, or context-pack.
- Review the Git diff for any write-back.