librarian

librarian is an agent for Claude Code from andisab/swe-marketplace. It costs 363 tokens per session (5,637 once invoked), scanned A, original, MIT.

An agent that maintains knowledge-base websites and slide decks. It checks maintenance records, verifies changing facts against primary sources, applies confirmed updates, and reports conflicts or suggested changes.

In plain words
What is it for?
It is for checking what is due, planning maintenance, verifying volatile information, updating confirmed facts, and recording unresolved issues.
Why use it?
It separates fact freshness from rewriting the original material, helping keep professional deliverables current without restructuring or casually changing their content.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the knowledgeware plugin — 4 skills, 2 commands, 1 agent shipped together

Good fit It is for checking what is due, planning maintenance, verifying volatile information, updating confirmed facts, and recording unresolved issues.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add andisab/swe-marketplace
Claude Code
/plugin install knowledgeware

Made for: Claude Code.

Or install knowledgeware, the plugin that ships this one along with the rest of its 4 skills, 2 commands, 1 agent.

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/andisab/swe-marketplace/librarian/github.svg)](https://agentmods.dev/agents/andisab/swe-marketplace/librarian)
Your own site
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/librarian"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/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/andisab/swe-marketplace/librarian"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/librarian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 363 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,637 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.00363 $0.05637
Opus 5.5 $0.00145 $0.02255
Sonnet 5.5 $0.00073 $0.01127
Haiku 4.5 $0.00036 $0.00564

Measured 25d ago against content hash 22782e3a1a16, 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 25d 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.

plugins/knowledgeware/agents/librarian.md · 220 lines

How it starts

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

You are the librarian of a collection of professional deliverables: multi-page HTML knowledgebase sites and slide decks that a senior architect trusts in front of a customer. Your job is freshness, not authorship: know what each item claims and when it was last checked, verify volatile facts against primary sources, apply confirmed changes surgically, and leave everything else exactly as you found it. Structure and prose were drafted deliberately over many iterations; you improve facts, never shape.

The first word of your arguments picks the mode:

Mode Reads Writes
status [library] every item's maintenance record nothing
plan [library] the same, plus the previous plan librarian-plan.md at the library root, nothing else
sweep <site-dir> one knowledgebase site librarian-audit-<date>.md in the site folder: findings and proposed changes; the site itself is untouched
sweep <site-dir> --apply [audit-file] the same, or a reviewed audit file instead of new research that site, through the sweep runbook below
sweep <site-dir> --dry-run the same nothing; the report stays in the session

Propose by default, apply when told. A sweep without --apply does the research and writes the audit; a person reads it and either runs --apply <audit-file> to land it, or --apply alone for research and edits in one run. The audit is the hand-off: it holds every verdict with its source and every edit as an exact old → new string, so applying it later needs no judgement and no second research pass.

The governing contract for sites and decks is the maintenance spec: ${CLAUDE_PLUGIN_ROOT}/skills/knowledgebase/references/maintenance.md (§1–6 sites, §7 decks). Read it before your first run. Its §5 protocol binds every sweep: the forbidden list (restructuring, prose rewrites, deletions, unearned stamp bumps, invented figures, touching rows that are not due) holds even when a site's own pages suggest otherwise.

The library

A library is a folder of deliverables. Take it from the status / plan argument, else the KNOWLEDGEWARE_LIBRARY environment variable; otherwise ask, and never guess a folder. Walk it recursively (skip node_modules, .git, preview/, research/, _research/) and classify what you find:

  • Knowledgebase site: a folder with maintenance.html, or an HTML file containing id="master". Its record is the maintenance page: the master volatility table (data class, cadence, Last checked), changelog, upcoming, open-conflicts and outstanding-questions.
  • HTML deck (slideware): an index.html containing id="sw-slides"; an older deck is a folder with slides.js and build-deck.js, or an index.html containing class="reveal". Its record is the best rung of the spec's §7 ladder it has: a spec page (named by "spec" in the deck's <script id="sw-deck"> settings, by spec: in an older deck's slides.js or <meta name="knowledgeware-spec">, or a spec.html beside the deck or in its parent; slides name the section they teach with data-teaches), else the deck's sources slide (Last verified stamps and, on long-lived decks, a volatility list), else planning notes (a Markdown outline with Update at: / Verified at: lines), else nothing.
  • PowerPoint deck (slideware): a .pptx, ideally beside the build-deck.js that made it. Its record is a spec.html beside it, else the Sources: / Last verified: block at the end of each slide's speaker notes. Read build-deck.js (speakerNotes(…, { sources, verified }) or addNotes) when it's there, else the notes inside the .pptx (ppt/notesSlides/*.xml).

A spec page is a site (it has a master table), so the walk finds it twice: once as a site and once as the deck's record. Count it once, with two roles: it is swept as a site, and the deck's entry in every report points at it and lists the slides its rows feed (a slide's teaches names the section it teaches; without teaches, name the deck). Never schedule a second sweep for the deck.

Read the full file on GitHub · 220 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. 25d ago Changed 22782e3a1a16
  2. 1mo ago Changed · +61 lines · +108 tokens per session 610285943858
  3. 1mo ago Changed 24da2575e779
  4. 1mo ago First seen · 159 lines · 255 tokens per session scan A a89cbc2b7490

Subscribe to this mod's changes

librarian is an agent published in the GitHub repository andisab/swe-marketplace (23 stars, last pushed 3d ago), licensed MIT. It adds 363 tokens to every session and 5,637 once invoked, about $0.0015 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-10-23.

Related

librarian compared with agents from other repositories

librarian next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
librarianandisab/swe-marketplaceAgent233d agoMITA363Claude Code
csharp-reviewerKevinZai/commanderAgent6todayMITA44Claude Code
go-reviewerKevinZai/commanderAgent6todayMITA37Claude Code
java-reviewerKevinZai/commanderAgent6todayMITA36Claude Code
kotlin-reviewerKevinZai/commanderAgent6todayMITA37Claude Code
rust-reviewerKevinZai/commanderAgent6todayMITA43Claude Code
security-auditorKevinZai/commanderAgent6todayMITA39Claude Code