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.
/plugin marketplace add andisab/swe-marketplace/plugin install knowledgewareWrote 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.
[](https://agentmods.dev/agents/andisab/swe-marketplace/librarian)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 containingid="master". Its record is the maintenance page: the master volatility table (data class, cadence, Last checked),changelog,upcoming,open-conflictsandoutstanding-questions. - HTML deck (slideware): an
index.htmlcontainingid="sw-slides"; an older deck is a folder withslides.jsandbuild-deck.js, or anindex.htmlcontainingclass="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, byspec:in an older deck'sslides.jsor<meta name="knowledgeware-spec">, or aspec.htmlbeside the deck or in its parent; slides name the section they teach withdata-teaches), else the deck's sources slide (Last verifiedstamps and, on long-lived decks, a volatility list), else planning notes (a Markdown outline withUpdate at:/Verified at:lines), else nothing. - PowerPoint deck (slideware): a
.pptx, ideally beside thebuild-deck.jsthat made it. Its record is aspec.htmlbeside it, else theSources:/Last verified:block at the end of each slide's speaker notes. Readbuild-deck.js(speakerNotes(…, { sources, verified })oraddNotes) 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.
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.
- 25d ago Changed 22782e3a1a16
- 1mo ago Changed · +61 lines · +108 tokens per session 610285943858
- 1mo ago Changed 24da2575e779
- 1mo ago First seen · 159 lines · 255 tokens per session scan A a89cbc2b7490
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.
librarian compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| librarianandisab/swe-marketplace | Agent | 23 | 3d ago | MIT | A | 363 | Claude Code |
| csharp-reviewerKevinZai/commander | Agent | 6 | today | MIT | A | 44 | Claude Code |
| go-reviewerKevinZai/commander | Agent | 6 | today | MIT | A | 37 | Claude Code |
| java-reviewerKevinZai/commander | Agent | 6 | today | MIT | A | 36 | Claude Code |
| kotlin-reviewerKevinZai/commander | Agent | 6 | today | MIT | A | 37 | Claude Code |
| rust-reviewerKevinZai/commander | Agent | 6 | today | MIT | A | 43 | Claude Code |
| security-auditorKevinZai/commander | Agent | 6 | today | MIT | A | 39 | Claude Code |