vault-deep-synthesis

vault-deep-synthesis is a command for Claude Code from eugeniughelbur/obsidian-second-brain. It costs 28 tokens per session (834 once invoked), scanned A, original, MIT.

A vault-only research command that combines every note about a topic into one synthesis. A vault is a local collection of notes, such as an Obsidian knowledge base.

In plain words
What is it for?
Use it to search the vault for a topic and produce a consolidated view of corroborated claims, disagreements, stale information, and gaps in the existing notes.
Why use it?
It helps reveal agreements, contradictions, outdated claims, and missing coverage without contacting the internet or external services. It also links the conclusions back to the notes that support them.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the obsidian-second-brain plugin — 1 skill, 47 commands, 3 hooks shipped together

Good fit Use it to search the vault for a topic and produce a consolidated view of corroborated claims, disagreements, stale information, and gaps in the existing notes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eugeniughelbur/obsidian-second-brain/vault-deep-synthesis
About the project

obsidian-second-brain turns an Obsidian vault into persistent, searchable memory for Claude Code and other command-line coding agents, storing knowledge as linked Markdown notes. It is for developers, founders, writers, and researchers who want agents to retain project context across sessions. Its catalogue entries provide commands, hooks, a plugin, a skill, and instructions for capturing, finding, and maintaining that memory.

eugeniughelbur/obsidian-second-brain · 4,392 stars · on GitHub · eugeniughelbur.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brain

Made for: Claude Code.

Or install obsidian-second-brain, the plugin that ships this one along with the rest of its 1 skill, 47 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vault-deep-synthesis

README.md
[![agentmods](https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/vault-deep-synthesis/github.svg)](https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/vault-deep-synthesis)
Your own site
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/vault-deep-synthesis"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/vault-deep-synthesis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vault-deep-synthesis

Your own site · 80×15
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/vault-deep-synthesis"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/vault-deep-synthesis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00834
Opus 5 $0.00014 $0.00417
Sonnet 5 $0.00006 $0.00167
Haiku 4.5 $0.00003 $0.00083

Measured 11d ago against content hash dd52f628579f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

vault-deep-synthesis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/vault-deep-synthesis.md · 29 lines

What it actually says

Use the obsidian-second-brain skill. Execute /vault-deep-synthesis [topic]:

A focused, topic-driven cross-reference of the existing vault. Unlike /obsidian-synthesize (which scans the whole vault for unnamed patterns unprompted), this takes a topic you name and reads every note touching it to produce one consolidated view. Pure vault: no network, no API keys.

  1. Resolve the topic from the argument. If none, ask what to synthesize.
  2. Find every note that references the topic - grep and list exhaustively across whatever top-level note folders the vault actually has (read the vault root once; typically wiki/, Research/, and any project/concept folders named in _CLAUDE.md per references/folder-map.md - do not assume a fixed list, do not sample; see the anti-fabrication rule). Match by every plausible name, alias, and folder.
  3. Read the matching notes and cross-reference them into:
    • What the vault agrees on - claims multiple notes corroborate, with [[wikilinks]] to each.
    • Contradictions - where notes disagree; name both [[notes]] and the specific conflict. Do not resolve them here (that is /obsidian-reconcile); just surface them.
    • Stale claims - dated facts that may no longer hold (cite the note and the date).
    • Coverage gaps - questions the topic raises that the vault does not answer.
  4. Write the synthesis to the concepts folder (resolved per references/folder-map.md - wiki-style wiki/concepts/, Obsidian-style Ideas/) as YYYY-MM-DD - synthesis - <topic-slug>.md (type: synthesis, tagged [research, thinking, vault-deep-synthesis]), listing the source notes it read in frontmatter.
  5. Do NOT modify the source notes - this command only reads and synthesizes. Append a one-line entry to the operation log.

AI-first rule: Every note created or updated by this command MUST follow references/ai-first-rules.md - ## For future agent preamble, rich frontmatter (type, date, tags, ai-first: true, plus type-specific fields), recency markers per external claim, mandatory [[wikilinks]] for every person/project/concept referenced, sources preserved verbatim with URLs inline, and confidence levels where applicable. If that path does not resolve from your working directory, search upward for it; if you still cannot read it, say so before writing rather than producing a note that silently skips the rule. The vault is for future agent retrieval - not human reading.

Anti-fabrication: Enumerate the matching notes exhaustively, do not sample - a partial scan reported as complete produces confident wrong answers. Never invent a claim, contradiction, or source; if the vault is thin on the topic, say so. See the anti-fabrication and search-completeness hard rules in references/ai-first-rules.md.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 29 lines · 28 tokens per session scan A dd52f628579f

Subscribe to this mod's changes

vault-deep-synthesis is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (4,392 stars, last pushed 4d ago), licensed MIT. It adds 28 tokens to every session and 834 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.