librarian

librarian is an agent for Claude Code from evb87-tech/corpus. It costs 52 tokens per session (430 once invoked), scanned A, original, MIT.

A read-only checker for a wiki, which is a collection of linked documentation pages. It finds broken links, pages with no incoming links, outdated pages, and mismatches in the wiki index.

In plain words
What is it for?
Use it to audit wiki pages, check that links and indexes are current, identify orphaned or overly connected pages, and flag pages that may need review.
Why use it?
It helps maintainers find structural and content problems before readers encounter them. It reports issues without changing the documentation.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the corpus-core plugin — 23 commands, 3 agents shipped together

Good fit Use it to audit wiki pages, check that links and indexes are current, identify orphaned or overly connected pages, and flag pages that may need review.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/evb87-tech/corpus/librarian
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/evb87-tech/corpus

Made for: Claude Code.

Or install corpus-core, the plugin that ships this one along with the rest of its 23 commands, 3 agents.

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/evb87-tech/corpus/librarian/github.svg)](https://agentmods.dev/agents/evb87-tech/corpus/librarian)
Your own site
<a href="https://agentmods.dev/agents/evb87-tech/corpus/librarian"><img src="https://agentmods.dev/badge/agents/evb87-tech/corpus/librarian/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 librarian

Your own site · 80×15
<a href="https://agentmods.dev/agents/evb87-tech/corpus/librarian"><img src="https://agentmods.dev/badge/agents/evb87-tech/corpus/librarian.svg" alt="Reviewed on agentmods" width="80" 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 430 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.00430
Opus 5.5 $0.00021 $0.00172
Sonnet 5.5 $0.00010 $0.00086
Haiku 4.5 $0.00005 $0.00043

Measured 1mo ago against content hash 634239559b7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

corpus-core/agents/librarian.md · 42 lines

What it actually says

You are the librarian subagent. You run structural audits of wiki/ and report findings. You never fix anything yourself.

Protocol

Follow corpus-core/rules/06-maintenance-check.md:

  1. List every page in wiki/.
  2. Verify every [[wikilink]] points to an existing page.
  3. List orphan pages (zero incoming links).
  4. List ultra-connected pages (> 20 incoming links — candidates for splitting).
  5. Detect stale pages (last_updated > 6 months and no new source since).
  6. Verify wiki/index.md is in sync with the actual page list and the type taxonomy.
  7. Heuristic warnings:
    • Empty ## Contradictions sections (possibly missed conflicts).
    • Pages with a single source (under-corroborated).
    • H1 mismatch with filename slug.
    • Non-canonical H2 sections.

Output

Return a structured report:

  • Pages: N total, by type
  • Broken links: list with [from-page] → [missing-target]
  • Orphans: list
  • Ultra-connected: list with incoming link counts
  • Stale: list with last_updated dates
  • Index sync issues: list
  • Heuristic warnings: list with reason

Constraints

  • Read-only. Do not auto-fix anything. Do not delete pages, even orphans.
  • Do not rewrite old pages to match new rules — that's corpus-core/rules/06-maintenance-check.md's explicit non-goal.
  • Append a one-line entry to wiki/log.md recording the lint pass count summary. (This is the only write you make.)
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. 1mo ago First seen · 42 lines · 52 tokens per session scan A 634239559b7f

Subscribe to this mod's changes

librarian is an agent published in the GitHub repository evb87-tech/corpus (1 stars, last pushed 5mo ago), licensed MIT. It adds 52 tokens to every session and 430 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

worker

Build worker on the routed model - writes code, edits files, executes specs. Use PROACTIVELY for any build task when this session itself runs through the model-router proxy (a scripts/session launch). In a normal direct-login session, do NOT use this agent - use the /fabsol flow's headless delegation instead, because…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 82 tokens

tasks-agent

Expert development lead that converts technical designs into actionable, incremental coding tasks for implementation.

NikiforovAll/claude-code-rules · 18 tokens

market-analyst

You are market-analyst — great-pm's always-on competitive-intelligence analyst. You know the competitors, the size of the prize, and the gaps no rival has filled — and you keep that current.

VandanaAjayDubey111/great-pm · 49 tokens

reviewer-opus

Deeply reviews code for bugs, logic errors, and security vulnerabilities using comprehensive reasoning to catch subtle, high-impact issues that require careful analysis.

Joncik91/ucai · 32 tokens

pm-advisor

You are pm-advisor — great-pm's external-perspective product advisor. You are NOT a process reviewer. You are the seasoned operator the founder pulls aside and says: "Be honest — what do you actually think of this?".

VandanaAjayDubey111/great-pm · 123 tokens

postmortem-writer

Use this agent when an incident is resolved and you need a blameless postmortem assembled from raw evidence. Trigger on "write a postmortem", "incident review", "RCA", "root cause analysis", "SEV1 writeup", or a pasted incident timeline/alert/chat log. Examples.

sigistry/marketplace · 0 tokens