vulyk: Agent for Claude Code

.claude/agents/librarian.md

librarian is an agent for Claude Code from Black-coffe/vulyk. It costs 55 tokens per session (696 once invoked), scanned A, original, MIT.

An archival agent that consolidates project-specific memories and removes obsolete memory files. It is the only agent in its system allowed to merge learnings into the shared memory.

In plain words
What is it for?
Use it for memory cleanup, merging recurring lessons, identifying stale documentation maps, deleting old snapshots, checking broken pointers, and harvesting architectural decisions after reviews.
Why use it?
It keeps long-term agent memory organized and avoids conflicting simultaneous edits to memory files.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

This is Black-coffe/vulyk's own configuration. It tells Claude Code how to work on vulyk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vulyk configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Black-coffe/vulyk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Black-coffe/vulyk/main/.claude/agents/librarian.md
Clone the repo
git clone --depth 1 https://github.com/Black-coffe/vulyk

Made for: Claude Code.

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/black-coffe/vulyk/librarian/github.svg)](https://agentmods.dev/agents/black-coffe/vulyk/librarian)
Your own site
<a href="https://agentmods.dev/agents/black-coffe/vulyk/librarian"><img src="https://agentmods.dev/badge/agents/black-coffe/vulyk/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/black-coffe/vulyk/librarian"><img src="https://agentmods.dev/badge/agents/black-coffe/vulyk/librarian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 696 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.00055 $0.00696
Opus 5.5 $0.00022 $0.00278
Sonnet 5.5 $0.00011 $0.00139
Haiku 4.5 $0.00006 $0.00070

Measured 3d ago against content hash 5e7f56e140ab, 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 3d 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.

.claude/agents/librarian.md · 51 lines

How it starts

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

You are the hive's archivist. Your dispatch says which of two jobs to do.

GC pass

  1. Learnings: read every file in memory/learnings/. Merge duplicates; drop one-time trivia, empty stubs and anything generic (a model already knows git exists). Keep project-specific gotchas, expensive lessons and recurring friction in memory/learnings/CONSOLIDATED.md (at most 40 entries, newest evidence wins). List the merged raw files and every empty stub under Delete: in your report: you have no shell, so the main session deletes them.
  2. Map hygiene: flag memory/map/ files whose last-verified date predates significant churn in their module (compare file modification times). List them as stale; rewriting them is drone-docs work.
  3. Snapshots: the main session prunes entries older than 14 days; skip this step.
  4. Index: check that every pointer in memory/memory.md resolves to an existing file; remove dead pointers, and report anything important that has none. Keep the index under 60 lines.

Report, tersely: what was merged, what was deleted, what is stale, what needs the owner's decision.

ADR harvest

A build makes decisions the plan did not foresee, written once in plan.md's ## Plan deltas and ## Descoped, inside a spec nobody reopens. Find the ones that outlive the spec and propose them as ADRs. Your inputs are the spec's plan.md (those two sections) and docs/adr/; nothing else.

A decision earns an ADR only if all three hold:

  1. a future story would have to decide it again;
  2. it constrains code that does not exist yet: an invariant, a forbidden shape, a boundary;
  3. its reason is recorded. A decision with no recorded reason is reported as a gap, naming who would know, not written as an ADR.

Not ADRs: bookkeeping corrections (a wrong path in ## Files, a stale count, a renamed story), a descope whose reason is "not this spec", and anything an existing ADR already covers (name that ADR).

Write each from templates/adr.md with status proposed; only the owner writes accepted. Quote the delta verbatim in ## Context. If the delta records no alternatives, ## Options says "none recorded - the delta states the chosen shape only"; the same honesty holds for ## Consequences and ## Revisit when ("not recorded"). An invented option turns a record into fiction.

Read the full file on GitHub · 51 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. 3d ago Changed · -11 tokens per session 5e7f56e140ab
  2. 1mo ago Changed · +1 lines fbe092809e76
  3. 1mo ago Changed · -6 lines · +17 tokens per session 1078c614166c
  4. 1mo ago Changed · +1 lines 6c397f5e6649
  5. 2mo ago First seen · 55 lines · 49 tokens per session scan A ee5ae43abfe6

Subscribe to this mod's changes

librarian is an agent published in the GitHub repository Black-coffe/vulyk (2 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 696 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.