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/commands/andisab/swe-marketplace/librarian)<a href="https://agentmods.dev/commands/andisab/swe-marketplace/librarian"><img src="https://agentmods.dev/badge/commands/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/commands/andisab/swe-marketplace/librarian"><img src="https://agentmods.dev/badge/commands/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.00064 | $0.00695 |
| Opus 5.5 | $0.00026 | $0.00278 |
| Sonnet 5.5 | $0.00013 | $0.00139 |
| Haiku 4.5 | $0.00006 | $0.00069 |
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.
What it actually says
Act as the knowledgeware librarian with these arguments: $ARGUMENTS
Read ${CLAUDE_PLUGIN_ROOT}/agents/librarian.md and follow it in this session (not as a subagent — sweeps need the Agent tool to fan out research subagents, which run on Sonnet). The governing contract for sites is ${CLAUDE_PLUGIN_ROOT}/skills/knowledgebase/references/maintenance.md; its §5 protocol is binding.
The first word of the arguments picks the mode:
status [library]— report what's due across every site and deck in the library. Writes nothing.plan [library]— writelibrarian-plan.mdat the library root: this week's sweeps, research shared across items, what's coming up, the backlog, and what needs a human.sweep <site-dir>— verify one knowledgebase site's due facts and writelibrarian-audit-<date>.mdin its folder: every verdict with its source and every proposed edit as an exact old → new string. The site is untouched.sweep <site-dir> --apply [audit-file]— edit the site: with an audit file, apply its reviewed proposals (no new research); without one, research and apply in one run, then log the changelog and report drift as suggestions.sweep <site-dir> --dry-run— report what would change and write nothing.
The library is the folder given, else $KNOWLEDGEWARE_LIBRARY. If the arguments are empty or name no mode, ask which mode and folder rather than guessing.
Scheduling recipe
Weekly headless runs (cron, launchd, or any scheduler): one sweep per site, which leaves an audit to review, plus a plan for the whole library, which lists the audits waiting.
claude -p "/knowledgeware:librarian sweep '/path/to/site'" --permission-mode acceptEdits --model opus
claude -p "/knowledgeware:librarian plan '/path/to/library'" --permission-mode acceptEdits --model opus
Then, after reading an audit: claude -p "/knowledgeware:librarian sweep '/path/to/site' --apply '/path/to/site/librarian-audit-2026-10-27.md'". For a site you trust to be maintained unattended, schedule sweep '<site>' --apply instead and the edits land in the same run. Sweeps are self-scoping, so running them more often than weekly is safe: rows that aren't due are skipped, and a no-delta sweep still writes its audit (or, with --apply, its changelog row). Add --dry-run inside the quoted sweep command for a report-only pass.
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.
- 1mo ago Changed · +2 lines · +12 tokens per session 2ef3b9f8f57d
- 1mo ago Changed 2e712ce28df4
- 1mo ago First seen · 29 lines · 52 tokens per session scan A 82c73683ec0f
librarian is a command published in the GitHub repository andisab/swe-marketplace (23 stars, last pushed 3d ago), licensed MIT. It adds 64 tokens to every session and 695 once invoked, about $0.0003 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 commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| librarianandisab/swe-marketplace | Command | 23 | 3d ago | MIT | A | 64 | Claude Code |
| review-skillsKevinZai/commander | Command | 6 | today | MIT | A | 38 | Claude Code |
| ccc-improveKevinZai/commander | Command | 6 | today | MIT | A | 47 | Claude Code |
| ccc-spawnKevinZai/commander | Command | 6 | today | MIT | A | 55 | Claude Code |
| ccc-forkKevinZai/commander | Command | 6 | today | MIT | A | 46 | Claude Code |
| ccc-linearKevinZai/commander | Command | 6 | today | MIT | A | 54 | Claude Code |
| ccc-parallelKevinZai/commander | Command | 6 | today | MIT | A | 36 | Claude Code |