librarian

librarian is an agent for coding agents from thoreinstein/gemini-obsidian. It costs 31 tokens per session (232 once invoked), scanned A, original, ISC.

A vault librarian is a tool for organizing a collection of notes, such as an Obsidian vault. It checks folders, note metadata, links, and tags, then suggests or makes approved changes.

In plain words
What is it for?
Use it to audit note folders, clean frontmatter, find orphan notes, review tags, and plan small note reorganizations. It also warns that moving notes can break links.
Why use it?
It helps find misplaced notes, inconsistent metadata, unused notes, and messy tags before the vault becomes harder to maintain.

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/thoreinstein/gemini-obsidian/librarian
Clone the repo
git clone --depth 1 https://github.com/thoreinstein/gemini-obsidian

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 librarian

README.md
[![agentmods](https://agentmods.dev/badge/agents/thoreinstein/gemini-obsidian/librarian.svg)](https://agentmods.dev/agents/thoreinstein/gemini-obsidian/librarian)
Your own site
<a href="https://agentmods.dev/agents/thoreinstein/gemini-obsidian/librarian"><img src="https://agentmods.dev/badge/agents/thoreinstein/gemini-obsidian/librarian.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 232 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.00031 $0.00232
Opus 5 $0.00015 $0.00116
Sonnet 5 $0.00006 $0.00046
Haiku 4.5 $0.00003 $0.00023

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

Security

Grade A, and why

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 4d 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/librarian.md · 31 lines

What it actually says

Vault librarian specializing in organization, maintenance, and knowledge structure.

Capabilities

  • Audit folder structure — List notes, identify inconsistent naming or misplaced files
  • Frontmatter cleanup — Find notes with missing or inconsistent frontmatter fields
  • Orphan detection — Find notes with no incoming or outgoing links
  • Tag analysis — Survey tags in use, find inconsistencies
  • Reorganization — Move notes to better locations, update frontmatter

Guidelines

  • Always explain proposed changes before making them
  • Present a plan and get approval before moving or modifying notes
  • When moving notes, warn that wikilinks from other notes may break
  • Prefer small, reversible changes over large reorganizations
  • Report findings clearly with specific file paths
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. 4d ago First seen · 31 lines · 31 tokens per session scan A 5503f8f48a30

Subscribe to this mod's changes

librarian is an agent published in the GitHub repository thoreinstein/gemini-obsidian (102 stars, last pushed 1mo ago), licensed ISC. It adds 31 tokens to every session and 232 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-30.

Related

Other agents, from other repositories

curate-chatlog

Curate the m3-chatlog store — clean, dedupe, decay ephemeral turns, prune abandoned conversations, promote high-signal chunks to long-term memory. Triggered by "curate chatlog", "tidy chatlog", "dedupe chatlog", "consolidate chatlog", or after long agentic-coding sessions where many turn writes accumulated.

skynetcmd/m3-memory · 79 tokens

curate-memory

Curate the m3-memory store — clean, dedupe, supersede stale entries, consolidate overlapping notes. Triggered by "curate memory", "tidy memory", "dedupe memory", "consolidate memory", or after long sessions where many writes accumulated.

skynetcmd/m3-memory · 59 tokens

Knowledge Linker

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

onebrain-ai/onebrain · 20 tokens

index

The hivemind for AI coding agents — persistent team context recorded once and recalled across agents, machines, and teammates.

sageox/ox · 0 tokens

im-local-db_knowledge-extractor

Expert in iterative knowledge extraction from extremely long chat logs. It processes contexts.md in chunks (approx. 500 lines each) and uses a "Previous Result + New Segment = Merged Result" logic to update the output file incrementally while maintaining state in task YAML files.

cafe3310/public-agent-skills · 63 tokens

performance-optimizer

Performance analysis and optimization specialist. Use PROACTIVELY for identifying bottlenecks, optimizing slow code, reducing bundle sizes, and improving runtime performance. Profiling, memory leaks, render optimization, and algorithmic improvements.

Jamkris/everything-gemini-code · 48 tokens