Query the knowledge wiki and get synthesized answers
Query the wiki to find information. Uses Obsidian CLI for fast search and link graph traversal.
/wiki-query <question>
/wiki-query What is React?
/wiki-query How do attention mechanisms work?
/wiki-query What papers discuss agentic memory?
Use obsidian search to find relevant pages:
obsidian search query="<keywords>" format=json
Examples:
obsidian search query="RAG" format=json → returns files mentioning RAGobsidian search query="reinforcement learning" format=json → returns RL-related pagesThe search returns a JSON array of file paths like:
["wiki/entities/RAG.md", "wiki/entities/Reinforcement Learning.md"]
For each relevant entity, get its backlinks to understand context:
obsidian backlinks file="Entity Name" format=json
This shows which other pages reference this entity — useful for:
Read the content of relevant pages:
obsidian read path="wiki/entities/Entity.md"
Or use the Read tool for direct file access if Obsidian CLI is slow.
Combine information from the pages into a coherent answer.
## Answer
[Synthesized answer based on the wiki pages]
## Sources Consulted
- [[Entity Page]] — [what it contributed]
- [[Another Page]] — [what it contributed]
## Related Entities (via backlinks)
- [[RelatedEntity]] — linked from X pages
| Command | Purpose |
|---|---|
obsidian search query="X" | Full-text search across all wiki files |
obsidian search query="X" path=wiki/entities | Search only in entities folder |
obsidian backlinks file="X" | Find pages linking to entity X |
obsidian links file="X" | Find outgoing links from entity X |
obsidian read path="wiki/entities/X.md" | Read page content |
obsidian files folder=wiki/entities | List all entity pages |
wiki/
├── cache.md # Entity names (one per line)
├── entities/ # Entity pages with facts
├── raw/ # Source documents
└── log.md # Operation log
# EntityName