wiki-query: Knowledge Graph Query
Answer the user's question using ONLY the knowledge graph. Cite specific nodes. If the knowledge graph doesn't have the answer, say so — don't fall back to training data.
Query Strategy
- Search knowledge graph first:
```
knowledge_search(query: "[user's question]")
```
- If knowledge results reference code, drill into it:
```
find_callers(function_name: "[referenced function]")
explore(entity_name: "[referenced entity]")
```
- If knowledge graph is empty for this topic, say:
> "No knowledge found on this topic. Run /autoresearch [topic] or /wiki-ingest [source] to add it."
Answer Format
## [Question rephrased as title]
[Answer in 2-5 paragraphs]
### Sources
- [[Entity/Concept name]] — [what it contributed to the answer]
- [[Source name]] — [key claim from this source]
### Related Code
- `function_name` (file.rs:42) — [how it relates]
### Confidence: [high/medium/low]
[Why this confidence level — how many sources, any contradictions]
Rules
- NEVER answer from training data when knowledge graph has relevant nodes
- ALWAYS cite the specific knowledge node (title + kind)
- FLAG if you find contradictions between knowledge nodes
- If answer requires both knowledge AND code, combine them