Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 86
  • 17k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-retrieve

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install wiki-retrieve in Claude Code

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

A

No 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 →

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.

wiki-retrieve Install

Add to stack

Loading.