wiki-retrieve
Skill16k starsChanged 52 days agoMITView on GitHub
Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta, remote egress requires explicit consent, and unavailable reranking falls back deterministically.
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 113
Use direct diagnostics when needed:
- Distinctive: line 134
Do not cite benchmark percentages unless a reproducible vault-specific benchmark produced them.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Retrieve relevant passages
This extension derives search data from wiki/ into .vault-meta/. It never
changes canonical notes. Always pass the selected vault explicitly.
Resolve the installed product root from this skill's own location, not from the vault or current working directory:
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
PREFIX="$PRODUCT_ROOT/scripts/contextual-prefix.py"
BM25="$PRODUCT_ROOT/scripts/bm25-index.py"
RETRIEVE="$PRODUCT_ROOT/scripts/retrieve.py"
RERANK="$PRODUCT_ROOT/scripts/rerank.py"
test -f "$PREFIX" && test -f "$BM25" && test -f "$RETRIEVE" && test -f "$RERANK"Pipeline
contextual-prefix.pysplits pages on paragraph boundaries and stores the raw chunk plus a short page-level prefix.bm25-index.pybuilds a local, standard-library BM25 index over the contextualized text.retrieve.pyselects BM25 candidates, optionally reranks them, rejects invalid records, deduplicates by page, and returns paths and snippets.- The caller reads the returned pages and performs synthesis; retrieval output is not itself evidence.
Provision locally
Preview first, then build synthetic prefixes without network egress:
python3 "$PREFIX" --vault "$VAULT" --all --no-llm --peek
python3 "$PREFIX" --vault "$VAULT" --all --no-llm
python3 "$BM25" --vault "$VAULT" build
python3 "$RETRIEVE" --vault "$VAULT" "wiki" --top 1 --no-rerank --explainChunk and index files are disposable runtime state. Incremental prefixing skips records whose chunk hashes, page hashes and provider/model profile still match. Legacy records without that profile regenerate on an explicit build. A complete scan removes surplus records for deleted pages, and the prefixer invalidates the BM25 index before changing its chunk set so a mixed stale index is not served. Prefix and BM25 build operations share the vault-wide mutation lock with every other writer; a busy vault fails closed instead of publishing a partial index.
Contextual-prefix privacy
Synthetic prefixes use only local frontmatter and page text. The explicit
Anthropic API profile can send page bodies off-machine and requires the user's
consent plus --allow-egress and a configured API key. There is no Claude CLI
generation tier or ambient subprocess fallback. Never infer consent from an
API key or installed binary. Preview the scope first and state which provider
will receive what data.
Remote Ollama endpoints also require explicit approval and
--allow-remote-ollama; the default reranker accepts localhost only.
Local model prefixes are a separate explicit option. Use an already installed
exact name:tag; no server is started and no model is installed or pulled:
python3 "$PREFIX" --vault "$VAULT" --all --local-ollama --ollama-model installed:tag --peek
python3 "$PREFIX" --vault "$VAULT" --all --local-ollama --ollama-model installed:tagThe prefix adapter verifies cloud-disabled server status and local model
identity before sending page text. Unsupported or unavailable preflight falls
back to synthetic prefixes for new or changed chunks only; prefixes from the
same endpoint and model stay in place, so a transient outage leaves an
unchanged vault's chunks and BM25 index untouched. This requirement can exclude
older Ollama servers.
Reranking and tiling use the same local-only proof before query, page, chunk,
or embedding cache work. --allow-remote-ollama approves the endpoint, not
cloud delegation by the server.
See prefix providers for the exact policy,
cloud model selection and verification limits. The reranker has its own model
and endpoint policy; selecting local prefixes does not enable reranking.
Query
For a strictly read-only lookup, use the prebuilt BM25 index:
python3 "$RETRIEVE" --vault "$VAULT" "$QUERY" --top 5 --no-rerank --explainFor an explicitly requested rerank, omit --no-rerank. The default is Ollama's
multilingual nomic-embed-text-v2-moe model (approximately 958 MB); the product
never pulls it automatically. To use an already-installed, smaller,
English-oriented v1.5 model, pass --model nomic-embed-text explicitly.
Nomic models use search_query: for the query and search_document: for
candidate text. Nomic v2 has a 512-token input context and Ollama truncates
longer embedding inputs by default; BM25 still scores the complete chunk.
Embeddings are cached by exact model, verified digest, input scheme, and hash
of the exact prefixed input. A missing local Ollama service, malformed HTTP
reply, missing selected model, unusable vector, or any candidate embedding
failure falls back for the complete result set to the original BM25 order; it
never mixes cosine and BM25 score scales.
Query input is bounded at 8,000 normalized characters and result counts must be
between 1 and 1,000. Oversized queries and invalid limits fail with an
actionable usage error instead of looking like an empty successful search.
An untagged model request matches only the installed untagged name or its
:latest alias; select any other tag explicitly.
Use direct diagnostics when needed:
python3 "$BM25" --vault "$VAULT" stats
python3 "$BM25" --vault "$VAULT" query "$QUERY" --top 10
python3 "$RERANK" --vault "$VAULT" "$QUERY" --peek
python3 "$RERANK" --vault "$VAULT" "$QUERY" --model nomic-embed-text --peekIntegrity rules
- Accept only relative chunk and page paths whose resolved targets remain under
$VAULT/.vault-meta/chunks/and$VAULT/wiki/respectively. - Reject hashless legacy chunk records and require chunk-body, page, and index hashes to match before a cached record can be built or served.
- Reject absolute paths, symlink escapes, missing pages, mismatched chunk IDs, changed page hashes, and stale index/chunk hash pairs.
- Rerank the full candidate set, then deduplicate by page, then apply
--top. - An empty index is an honest no-result state. A missing or corrupt index makes
retrieve.pyexit 10 with a stable rebuild command; callers fall back to the standard vault query/text-search path and do not fabricate matches. - Do not cite benchmark percentages unless a reproducible vault-specific benchmark produced them.
Measure a prebuilt index against explicit labels with bench --queries FILE
--vault VAULT. See offline retrieval evaluation
for recall, MRR, missing labels and negative cases. This is a read-only
measurement and never silently rebuilds an index or calls a model.
Checkpoint
Observe cache readiness and privacy boundaries, think about whether lexical or semantic ranking is needed, verify returned paths and source freshness, and grow by measuring retrieval misses against a maintained local query set.
Trending
Less talk lately.about the whole repository
Who's talking about AgriciDaniel/claude-obsidian
- Daniel Agrici“Build a Website Second Brain with Claude Code & Obsidian”YouTube · Jun 5, 2026 · 29k views
- Daniel Agrici“I Gave Claude a Second Brain That Never Forgets”YouTube · Apr 9, 2026 · 25k views
- Daniel Agrici“Claude Obsidian v2: your second brain now runs itself”YouTube · Jul 29, 2026 · 13k views
- Julian Goldie SEO“Claude Obsidian 2.0 is INSANE (FREE!)”YouTube · Jul 31, 2026 · 8.8k views
- Daniel Agrici“My 15.7k-star Obsidian second brain just got v3 (/save wizard)”YouTube · Oct 22, 2026 · 8.4k views
The biggest 5 of 68 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 68
Talked about on GitHub, YouTube and Bluesky (68 times).
On GitHub · 37
- Oct 30, 2026Session context lives per branch inside each repo, so worktrees, parallel sessions, and sibling repos lose it — Rikmorn/sidekick0 reactions
- Oct 28, 2026claude-code-marketplaces.github.agricidaniel.claude-obsidian: init at 3.0.1 — sudosubin/agents.nix0 reactions
- Oct 21, 2026claude-code-plugins.github.agricidaniel.claude-obsidian: 3.0.0 → 3.0.1 — sudosubin/agents.nix0 reactions
- Oct 21, 2026agent-skills.github.agricidaniel.claude-obsidian: 2.2.0 → 3.0.1 — sudosubin/agents.nix0 reactions
- Oct 21, 2026claude-code-plugins.github.agricidaniel.claude-obsidian: 2.2.0 → 3.0.0 — sudosubin/agents.nix0 reactions
32 more on GitHub
- Oct 19, 2026Fix links and verify repo URLs — undefined-ui/second-brain-os0 reactions
- Oct 4, 2026claude-code-plugins.github.agricidaniel.claude-obsidian: init at 2.2.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.agricidaniel.claude-obsidian: v2.2.0 → refs/tags/v2.2.0 — sudosubin/agents.nix0 reactions
- Sep 28, 2026[Candidate] agricidaniel/claude-obsidian/skills/wiki-fold - wiki-fold — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 28, 2026[Index] AgriciDaniel/claude-obsidian — zhiweiofli/github-kb0 reactions · 1 comment
- Sep 27, 2026[Candidate] agricidaniel/claude-obsidian/skills/wiki-cli - wiki-cli — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] agricidaniel/claude-obsidian/skills/wiki - wiki — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] agricidaniel/claude-obsidian/skills/think - think — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] agricidaniel/claude-obsidian/skills/save - save — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] agricidaniel/claude-obsidian/skills/obsidian-markdown - obsidian-markdown — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] agricidaniel/claude-obsidian/skills/obsidian-bases - obsidian-bases — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] agricidaniel/claude-obsidian/skills/defuddle - defuddle — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] agricidaniel/claude-obsidian/skills/canvas - canvas — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] agricidaniel/claude-obsidian/skills/autoresearch - autoresearch — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 25, 2026agent-skills.github.agricidaniel.claude-obsidian: init at 2.2.0 — sudosubin/agents.nix0 reactions
- Sep 23, 2026Sync true upstream AgriciDaniel/claude-obsidian ad67087c..32ac5a02 (v2.2.0, 28 commits, clean merge) — CircuitBoardGames/claude-obsidian-OKF0 reactions · 2 comments
- Sep 16, 2026Sync public fork to upstream v2.2.0 — vuduclong0309/claude-obsidian0 reactions
- Sep 4, 2026`npx` install support — alfadur7/llm-wiki-newsroom0 reactions · 1 comment
- Aug 31, 2026Sync true upstream AgriciDaniel/claude-obsidian 1c1bc49c..ad67087c (v2.1.1) — CircuitBoardGames/claude-obsidian-OKF0 reactions · 1 comment
- Aug 28, 2026feat: 引入 claude-obsidian 作为知识可视化与组织层 — iHeadWater/mylibrary0 reactions
- Aug 27, 2026Github trending [AgriciDaniel/claude-obsidian] 本地优先知识管理 — web1992/github-trending0 reactions
- Aug 26, 2026Github trending [AgriciDaniel/claude-obsidian] 本地知识库系统 — web1992/github-trending0 reactions
- Aug 25, 2026Add claude-obsidian to agent context tools — alvinreal/awesome-opensource-ai0 reactions
- Aug 11, 2026Evaluate embedding model choice for `index-score.py` (local MiniLM vs. alternatives) — pjastam/ResearchVault0 reactions
- Jul 12, 2026embed claudian + claude-obsidian references into obsidian-mcp datum — elasticdotventures/_b00t_0 reactions · 1 comment
- Jun 29, 2026Re-review `claude-obsidian` — tomcardoso/watchdog0 reactions · 1 comment
- May 26, 2026Reframing: project narrative from Personal LLM Wiki → Enterprise Q&A Bot with Layered KB Upgrade Path — PaynePew/knowledge_base_qa_bot0 reactions · 3 comments
- May 15, 2026Tracking: AI workflow patterns & companion plugins — brenthaertlein/universal-skills0 reactions · 1 comment
- May 7, 2026Potentially replace or remove the agent system prompt completely — HandelSim/harness0 reactions · 19 comments
- May 1, 2026Wikilink extractor matches inside fenced code blocks (false-positive dangling links) — aayoawoyemi/Ori-Mnemos0 reactions · 1 comment
- Apr 18, 2026Audit candidate: AgriciDaniel/claude-obsidian — xiaolai/nlpm0 reactions · 2 comments
- Apr 17, 2026Plugin install uses SSH clone, fails without SSH key for public repos — anthropics/claude-code0 reactions · 4 comments
On YouTube · 25
- Jun 5, 2026Build a Website Second Brain with Claude Code & Obsidian — Daniel Agrici29k views · 1 comment
- Apr 9, 2026I Gave Claude a Second Brain That Never Forgets — Daniel Agrici25k views · 47 comments
- Jul 29, 2026Claude Obsidian v2: your second brain now runs itself — Daniel Agrici13k views · 12 comments
- Jul 31, 2026Claude Obsidian 2.0 is INSANE (FREE!) — Julian Goldie SEO8.8k views · 5 comments
- Oct 22, 2026My 15.7k-star Obsidian second brain just got v3 (/save wizard) — Daniel Agrici8.4k views · 8 comments
20 more on YouTube
- Apr 23, 2026Obsidian + Claude = INSANE Productivity Boost 😳 #Shorts — GithubTrends5.6k views · 2 comments
- May 28, 2026The AI Second Brain That Actually Remembers Everything (Obsidian + Claude) — Daniel Agrici3.7k views · 13 comments
- Jul 14, 2026claude + obsidian just hit god mode — Daniel Agrici2k views · 11 comments
- Aug 26, 2026Claude-obsidian: self-organizing AI second brain for Obsidian — Next Horizon1.3k views · 1 comment
- Aug 25, 2026옵시디언 + 클로드로 만드는 나만의 AI 세컨드 브레인 — Repocast | GitHub 일일 브리핑1.2k views · 1 comment
- Aug 26, 2026Claude Obsidian GitHub Setup Guide: Build a Hash-Approved Local Knowledge Vault in Obsidian — Alex Hitt755 views · 1 comment
- Aug 27, 2026claude-obsidian: an AI second brain that runs without an AI (AgriciDaniel/claude-obsidian) #Shorts — ttywood530 views
- Aug 11, 2026Claude Obsidian 2.0 : le plugin gratuit qui donne une mémoire à Claude Code — JCBuildsAI | IA et Automatisation392 views
- Aug 25, 2026claude-obsidian — Dann Paker AI381 views
- Aug 28, 2026Claude Obsidian: Connect Your Second Brain to Claude Code — Weekend Repos368 views
- Sep 2, 2026Build an AI Second Brain with Claude Code and Obsidian — Eddy Says Hi #EddySaysHi342 views
- Aug 26, 2026claude-obsidian: Build a Local-First Knowledge Base That Compounds — CLI Stack322 views
- Sep 2, 2026(Podcast) Building a Self Organizing AI Second Brain with Claude Obsidian — Eddy Says Hi #EddySaysHi224 views
- Aug 25, 2026AgriciDaniel/claude-obsidian — Notes that compound. 🟢 Clone #Shorts — ForkCast114 views
- Jul 14, 2026claude-obsidian - GitHub Trending Today — GitHub Trending Digest107 views
- Oct 11, 2026claude-obsidian:把 Obsidian 變成可追溯的 AI 第二大腦|GitHub雷達 — Github雷達89 views
- Aug 25, 2026AgriciDaniel/claude-obsidian - Gource visualisation — Gourcer86 views · 1 comment
- Aug 26, 2026AgriciDaniel/claude-obsidian — Claude obsidian ingests papers and web pages into your Obsid… #Shorts — Fresh Commits69 views
- Aug 27, 2026claude-obsidian: an AI second brain that runs without an AI (AgriciDaniel/claude-obsidian) — ttywood45 views
- Aug 17, 2026Claude + Obsidian: Give Claude Code a Permanent Memory for $0 — Hidden Repos - GitHub gems nobody talks about29 views
On Bluesky · 6
- Aug 24, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 AgriciDaniel / claude-obsidian ⭐ 11,496 (+272) 🗒 Python Self-organizing AI second brain for… — @github-trending.bsky.social5 likes and reposts · 2 replies
- Apr 27, 2026I've been using this in concert with Google Drive and Github. github.com/AgriciDaniel... It effectively turns your skills and session… — @snds.design4 likes and reposts
- Aug 29, 2026github.com/AgriciDaniel/cl... GitHub - AgriciDaniel/claude-obsidian: Self-organizing AI second brain for Obsidian + Claude Cod... — @technews4869.bsky.social3 likes and reposts · 1 reply
- Aug 29, 2026ObsidianをAIの記憶装置にして自動で整理してくれるツールっぽい 知識の管理がすごくラクになりそうかも yug1224 starred AgriciDaniel/claude-obsidian… — @yug1224.com2 likes and reposts · 1 reply
- Aug 25, 2026今日のGitHubトレンド AgriciDaniel/claude-obsidian Claude CodeおよびAgent Skills対応ホスト向けのローカルファーストな知識管理システムです。… — @dailygithubtrends.bsky.social2 likes and reposts
1 more on Bluesky
- Aug 25, 2026Claude-obsidian turns source materials into a connected Markdown knowledge graph for Claude Code. It has picked up 234 stars in the last… — @latreon.bsky.social1 likes and repost
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- manazoid4/maz-works-knowledge-vault★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/claude-obsidian.mdcCursor rule
- autoresearchSkill
- canvasSkill
- defuddleSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- saveSkill
- thinkSkill
- wiki-cliSkill
- wiki-foldSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-modeSkill
- wiki-querySkill
- wikiSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

