wiki-retrieve
Skill by AgriciDaniel
Builds and queries a vault-local BM25 retrieval index over wiki pages, with optional Nomic reranking through Ollama. Built for users who want passage search over their notes while keeping derived caches under .vault-meta.
Install wiki-retrieve
Built from the published package, never by AI.
git clone --depth 1 https://github.com/AgriciDaniel/claude-obsidian /tmp/claude-obsidian && mkdir -p ~/.claude/skills && cp -r /tmp/claude-obsidian/skills/wiki-retrieve ~/.claude/skills/wiki-retrieveRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/AgriciDaniel/claude-obsidian /tmp/claude-obsidian && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-obsidian/skills/wiki-retrieve ~/.gemini/antigravity-cli/skills/wiki-retrieveAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The wiki-retrieve skill builds and queries a local search index over the wiki folder of a vault. It splits pages into chunks, adds a short page-level prefix to each chunk, and builds a standard-library BM25 index stored under .vault-meta. Queries return paths and snippets, and the caller reads those pages before answering. Canonical notes are never changed.
An optional rerank step uses a local Ollama embedding model, by default nomic-embed-text-v2-moe, and falls back to BM25 order when it is unavailable. Remote prefix generation through the Anthropic API needs explicit consent, an allow flag and an API key. The skill suits users who want passage search over their notes with explicit privacy controls and retrieval diagnostics.
Written from the project's SKILL.md and checked against it.
What it can do
- Contextual prefixingSplits wiki pages into chunks and adds a short page-level prefix to each chunk.
- BM25 index buildBuilds a standard-library BM25 index over the contextualized chunk text.
- Passage retrievalReturns deduplicated page paths and snippets for a query, with an explain option.
- Optional rerankingReranks BM25 candidates with a local Ollama Nomic embedding model when requested.
- Local prefix generationUses an installed Ollama model for prefixes after local-only verification.
- Retrieval diagnosticsShows index stats, direct queries, and offline bench measurement against labeled queries.
- Integrity checksRejects stale, mismatched, symlinked or out-of-vault records before serving them.
What you need
- Python 3
- Ollama running locally for reranking or local prefixes
- nomic-embed-text-v2-moe model (about 958 MB) for default reranking
- Anthropic API key only for the optional remote prefix profile
Try asking
- Build a BM25 index for my vault and search for notes on pricing.
- Find passages in my wiki about onboarding, without reranking.
- Run retrieval diagnostics and check whether the index is stale.
Good to know
- Reranking requires a local Ollama service; BM25 order is used if it is unavailable.
- Remote Ollama endpoints and the Anthropic API profile need explicit approval.
- Query input is capped at 8,000 characters; result counts must be 1 to 1,000.
- Retrieval output is not evidence; the caller must read the returned pages.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/wiki-retrieve/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to wiki-retrieve
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
wiki-retrieve: common questions
Does wiki-retrieve modify my notes?
No. The source says it never changes canonical notes and keeps derived search data under .vault-meta.
What happens if the search index is missing?
retrieve.py exits with code 10 and a rebuild command, and callers fall back to the standard vault query or text-search path.
Can it send my notes to a cloud service?
Only the explicit Anthropic API prefix profile can send page bodies off-machine, and it requires user consent, --allow-egress and a configured API key.
How do I install wiki-retrieve?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is wiki-retrieve free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is wiki-retrieve safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to wiki-retrieve?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
