obsidian-mind: Agent for Claude Code

.claude/agents/vault-librarian.md

vault-librarian is an agent for Claude Code from breferrari/obsidian-mind. It costs 52 tokens per session (552 once invoked), scanned A, original, MIT.

An Obsidian vault maintenance tool that checks notes for missing links, broken links, incomplete metadata, stale work, and inconsistent indexes. Obsidian is a note-taking app that connects notes with internal links.

In plain words
What is it for?
Use it to audit an Obsidian vault, find orphaned or stale notes, validate required fields, and check whether the project index matches the files.
Why use it?
It finds organization problems that are easy to miss when a vault grows, such as notes that cannot be reached or references that no longer work.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is breferrari/obsidian-mind's own configuration. It tells Claude Code how to work on obsidian-mind itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything obsidian-mind configures →

Part of the obsidian plugin — 8 skills, 20 commands, 10 agents, 5 hooks, 1 MCP server shipped together

About the project

Obsidian Mind is an Obsidian vault that stores notes, links, indexes, and other accumulated context so AI coding agents can retain memory across sessions. It is designed for Claude Code and also supports Codex CLI and Gemini CLI through shared hooks, commands, and vault data. Its catalogue add-ons package the vault’s commands, agents, skills, hooks, instructions, settings, plugin, and MCP integration.

breferrari/obsidian-mind · 4,615 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to breferrari/obsidian-mind. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/breferrari/obsidian-mind/main/.claude/agents/vault-librarian.md
Clone the repo
git clone --depth 1 https://github.com/breferrari/obsidian-mind

Made for: Claude Code.

Or install obsidian, the plugin that ships this one along with the rest of its 8 skills, 20 commands, 10 agents, 5 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/breferrari/obsidian-mind/vault-librarian.svg)](https://agentmods.dev/agents/breferrari/obsidian-mind/vault-librarian)
Your own site
<a href="https://agentmods.dev/agents/breferrari/obsidian-mind/vault-librarian"><img src="https://agentmods.dev/badge/agents/breferrari/obsidian-mind/vault-librarian.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 552 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.00052 $0.00552
Opus 5 $0.00026 $0.00276
Sonnet 5 $0.00010 $0.00110
Haiku 4.5 $0.00005 $0.00055

Measured 8d ago against content hash 196d22e3ebed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

vault-librarian 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 8d 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.

.claude/agents/vault-librarian.md · 41 lines

What it actually says

You are the vault librarian for an obsidian-mind vault. Run a full health check and produce a maintenance report.

Checks to Run

  1. Orphan Detection: Run obsidian orphans (or grep -rL '\[\[' work/ org/ perf/ brain/ reference/ as fallback). List notes with zero incoming links. For each, suggest which existing notes should link to them.

  2. Broken Wikilinks: Run obsidian unresolved (or grep for \[\[.*\]\] patterns and check if targets exist). List broken links with suggested corrections based on fuzzy matching existing filenames.

  3. Frontmatter Validation: Glob all .md files in work/, org/, perf/, brain/, reference/. Check each has:

    • tags (non-empty)
    • date
    • description (~150 chars)
    • Type-specific required fields (incidents need ticket, severity, role; work notes in recent quarters need quarter)
  4. Stale Active Notes: Check work/active/ for notes with status: completed or not modified in 60+ days. These should be archived to work/archive/YYYY/.

  5. Index Consistency: Read work/Index.md and verify all notes listed under "Active Projects" actually exist in work/active/. Flag any that are missing or archived.

  6. Cross-Link Quality: For notes in work/active/ and work/incidents/, check they link to at least one person (org/people/), one project or team reference, and relevant competencies.

Output

Write the maintenance report to thinking/vault-audit-YYYY-MM-DD.md with:

  • Summary statistics (total notes, orphans found, broken links, missing frontmatter)
  • Actionable items grouped by severity (fix now / fix later / informational)
  • Do NOT auto-fix anything — list recommendations for the user to approve

After writing the report, summarize the top 5 findings to the parent conversation.

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. 8d ago First seen · 41 lines · 52 tokens per session scan A 196d22e3ebed

Subscribe to this mod's changes

vault-librarian is an agent published in the GitHub repository breferrari/obsidian-mind (4,615 stars, last pushed 5d ago), licensed MIT. It adds 52 tokens to every session and 552 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

Inbox Classifier

Classifies an inbox note and recommends target folder, subfolder, filename, and wikilinks for /consolidate.

onebrain-ai/onebrain · 28 tokens

Knowledge Linker

Scans vault for unlinked notes and suggests wikilink connections between related content.

onebrain-ai/onebrain · 20 tokens

Link Suggester

After a new note is written, scans the vault for related notes and automatically adds up to 3 wikilinks under a ## Related section.

onebrain-ai/onebrain · 33 tokens

concierge

Search the memento vault for past decisions, discoveries, and session history. Read-only — never writes to the vault. Examples: User: "What did we decide about the caching strategy?" Assistant: "Let me check the memento vault." (Use the Task tool to launch the concierge agent with the question.) User: "Where did I…

sandsower/memento-vault · 151 tokens

pkm-capture

Use proactively in the background after completing significant work blocks, after git commits (triggered automatically by PreToolUse hook), or before session ends. Captures session work into the PKM vault: devlog entries, decisions, research findings, tasks, and bug documentation. Conservative — most exchanges produce…

AdrianV101/obsidian-pkm-plugin · 476 tokens

link-auditor

Use proactively in the background after creating or modifying multiple vault notes, or when asked about vault link health. Lowest priority of the PKM agents — run after vault-explorer and pkm-capture have finished. Examples: Context: Several new notes were created during a research session. user: "OK I think we've…

AdrianV101/obsidian-pkm-plugin · 182 tokens