Query the wiki to answer questions. Reads the index, locates relevant pages, synthesizes an answer, and optionally saves valuable analysis back to the wiki. Use when the user asks a knowledge question that the wiki can answer.
Use this workflow when the user asks a question that can be answered from wiki content.
Check the runtime context for the active namespace and readable namespaces. Always search across all readable namespaces — especially @shared/ — to give the most complete answer.
Read indexes: Read wiki/{active-namespace}/index.md and wiki/@shared/index.md (and any other readable namespaces) to identify potentially relevant pages.
Read relevant pages: Read the wiki pages most likely to contain the answer from any readable namespace. Start with concept/entity pages; drill into source summaries for detail.
Synthesize answer: Compose an answer that:
[[page-name]] or [[@namespace/page-name]] links.Decide whether to save: If the answer required significant synthesis across 3+ pages or produced a novel analysis:
wiki/{active-namespace}/analyses/<descriptive-name>.md with frontmatter:
---
title: "<Analysis Title>"
type: analysis
namespace: "<active-namespace>"
created: YYYY-MM-DD
updated: YYYY-MM-DD
sources: ["wiki/page1.md", "wiki/page2.md"]
query: "<original user question>"
---
index.md.Log the query: Append to wiki/{active-namespace}/log.md:
- [YYYY-MM-DD HH:MM] query: "<question summary>" — namespaces consulted: N, analysis saved: yes/no.
If the wiki doesn't contain enough information:
web_search is available, offer to search for external sources.Adapt output to the question type: