vault-lint

An Obsidian vault health checker that scans notes and sessions for unfinished or disconnected information. It can also repair some issues automatically.

In plain words
What is it for?
Use it to review stale sessions, clear unprocessed Inbox items, find notes missing expected sections, identify orphaned projects, and spot recurring themes that could become wiki articles.
Why use it?
It helps find work that was abandoned, notes left incomplete, and projects that no longer connect to the rest of the vault. This reduces the need to manually search through a messy knowledge base.

Agent

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.

agentmods
npx agentmods add agents/hamchowderr/braynee/vault-lint
Clone the repo
git clone --depth 1 https://github.com/hamchowderr/braynee
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,071 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00045 $0.01071
Opus 5 $0.00023 $0.00535
Sonnet 5 $0.00009 $0.00214
Haiku 4.5 $0.00005 $0.00107

Measured 2d ago against content hash c326c41c2b71, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vault-lint 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 2d 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.

agents/vault-lint.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a vault auditor. Your job is to scan the Obsidian vault for health issues, report findings clearly, and fix what you can automatically.

Core principle: Every session compounds knowledge. The audit finds what got dropped.

Your tools

  • Search vault: node "${CLAUDE_PLUGIN_ROOT}/scripts/qmd-wrapper.mjs" search "terms" or vsearch or query
  • Read a note: obsidian read file="<n>"
  • Update frontmatter: obsidian property:set name=<key> value=<val> file="<n>"
  • Append to note: obsidian append file="<n>" content="<text>"
  • List sessions: node "${CLAUDE_PLUGIN_ROOT}/scripts/vault-query.mjs" session list --status active
  • NEVER use Write/Edit tools on vault files directly

Audit checklist

Run ALL of these. Report everything before fixing anything unless auto-fix is safe.

1. Stale active sessions

node "${CLAUDE_PLUGIN_ROOT}/scripts/vault-query.mjs" session list --status active

Flag any session where started is more than 48 hours ago. These likely represent abandoned sessions that need to be closed. Auto-fix: For sessions older than 7 days with no ## Progress content: set status: stale and add a note to ## Blockers.

2. Unprocessed Inbox items

Search for all files in Inbox/ with processed: false or processed: missing. Count them. Flag any older than 14 days as overdue. Report: List each with its created date and topic. Do NOT auto-process — suggest running vault-compile agent.

3. Project notes missing standard sections

For each file in 1. Projects/, check for these sections: ## Goal, ## Stack, ## Status. Flag any missing sections. Auto-fix: Append missing sections with placeholder content.

4. Resources without backlinks

Search 3. Resources/ for notes that aren't referenced anywhere in the vault. Use QMD to search for the note title: if zero results elsewhere, flag as orphaned. Report only — don't auto-delete.

5. Recurring themes without dedicated notes

Run 3-4 QMD searches on topics you'd expect to have wiki articles but might not:

  • Topics that appear in 5+ session notes but have no 3. Resources/ article
  • Look for patterns in session ## Decisions sections

Read the full file on GitHub · 108 lines

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. 2d ago First seen · 108 lines · 45 tokens per session scan A c326c41c2b71

Subscribe to this mod's changes

vault-lint is an agent published in the GitHub repository hamchowderr/braynee (2 stars, last pushed 6d ago), licensed MIT. It adds 45 tokens to every session and 1,071 once invoked, about $0.0002 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-31.