Answer a question using the wiki's compiled knowledge. Searches relevant pages, synthesizes with citations, supports multiple output formats (markdown/table/slides/chart/canvas), files substantive answers back into the wiki, and optionally falls back to external plugins (e.g. deepwiki-cli for source code) when local wiki coverage is insufficient — with results funneled back through wiki-ingest so future queries hit local first.
Answer a question from compiled wiki knowledge. Unlike asking the same question cold, the wiki has already synthesized and cross-referenced the relevant sources.
Like ingestion, substantive query results compound back into the wiki. When an answer is worth keeping — a comparison, a synthesis, a connection you discovered — it's filed as a new wiki page and joins the knowledge base. Your explorations compound in the wiki just like your ingested sources do. That's the whole trick: nothing valuable disappears into chat history.
--file flag: force-file the answer as a new wiki pageBefore querying, read orientation files if not done this session:
read_file {wiki_path}/SCHEMA.md
read_file {wiki_path}/index.md
read_file {wiki_path}/log.md # last 20 lines
Classify it — the strategy depends on type:
wiki-lintRun wiki-search internally for key terms, inheriting the --tier default
(active when tiers are enabled, else all). For wikis with 100+ pages, also
filter by relevant tags from SCHEMA.md's taxonomy. Karpathy's rule: read
index.md first, then drill into specific pages — this is exactly what
wiki-search does.
If local search returns very few relevant pages, note that — step ⑤b (external fallback plugins) may apply. Don't skip the local read; local context still frames how the external results get synthesized.
Use read_file. For large wikis, prioritize in order:
--format=markdown (default)
Prose with headers and [[wikilink]] citations throughout. The answer is a
mini-article.
--format=table
Structured comparison table. Each row = option/entity, columns = dimensions:
| Dimension | [[claude-3]] | [[gpt-4]] | [[gemini]] |
|--------------|--------------|-------------|-------------|
| Context | 200k | 128k | 1M |
| Multimodal | yes | yes | yes |
| Open weights | no | no | no |
| Sources | [[page-a]] | [[page-b]] | [[page-c]] |
--format=slides (Marp)
Marp-compatible markdown slide deck. Obsidian has a Marp plugin; the Marp CLI also renders to PDF/HTML/PPTX.
---