librarian

librarian is a command for Claude Code from andisab/swe-marketplace. It costs 64 tokens per session (695 once invoked), scanned A, original, MIT.

A command for maintaining a library of knowledge-base websites and slide decks. It can report what needs checking, create a dated maintenance plan, or sweep one site to verify facts and apply confirmed updates.

In plain words
What is it for?
It is for status reports, weekly maintenance planning, fact checks, changelog updates, and controlled updates to knowledge-base sites.
Why use it?
It gives scheduled maintenance work a defined process instead of leaving outdated facts and unresolved changes unnoticed. A dry-run mode can report proposed changes without writing them.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: 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 status reports, weekly maintenance planning, fact checks, changelog updates, and controlled updates to knowledge-base sites.

Compare 6 commands 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/commands/andisab/swe-marketplace/librarian/github.svg)](https://agentmods.dev/commands/andisab/swe-marketplace/librarian)
Your own site
<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.

agentmods 80×15 button for librarian

Your own site · 80×15
<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>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 695 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.00064 $0.00695
Opus 5.5 $0.00026 $0.00278
Sonnet 5.5 $0.00013 $0.00139
Haiku 4.5 $0.00006 $0.00069

Measured 1mo ago against content hash 2ef3b9f8f57d, 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.

plugins/knowledgeware/commands/librarian.md · 31 lines

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] — write librarian-plan.md at 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 write librarian-audit-<date>.md in 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.

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 Changed · +2 lines · +12 tokens per session 2ef3b9f8f57d
  2. 1mo ago Changed 2e712ce28df4
  3. 1mo ago First seen · 29 lines · 52 tokens per session scan A 82c73683ec0f

Subscribe to this mod's changes

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.

Related

librarian compared with commands from other repositories

librarian next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
librarianandisab/swe-marketplaceCommand233d agoMITA64Claude Code
review-skillsKevinZai/commanderCommand6todayMITA38Claude Code
ccc-improveKevinZai/commanderCommand6todayMITA47Claude Code
ccc-spawnKevinZai/commanderCommand6todayMITA55Claude Code
ccc-forkKevinZai/commanderCommand6todayMITA46Claude Code
ccc-linearKevinZai/commanderCommand6todayMITA54Claude Code
ccc-parallelKevinZai/commanderCommand6todayMITA36Claude Code