librarian

librarian is an agent for Claude Code from tdimino/claude-code-minoan. It costs 0 tokens per session (781 once invoked), scanned A, original, MIT.

A read-only research agent for exploring files and code in GitHub repositories, a website for hosting Git-based projects.

In plain words
What is it for?
Use it to search code, inspect repository structure, fetch specific files, investigate dependencies, or check how a framework works.
Why use it?
It gathers information from remote repositories without changing your current project or cloning those repositories into it.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to search code, inspect repository structure, fetch specific files, investigate dependencies, or check how a framework works.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tdimino/claude-code-minoan/librarian
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/tdimino/claude-code-minoan

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/tdimino/claude-code-minoan/librarian.svg)](https://agentmods.dev/agents/tdimino/claude-code-minoan/librarian)
Your own site
<a href="https://agentmods.dev/agents/tdimino/claude-code-minoan/librarian"><img src="https://agentmods.dev/badge/agents/tdimino/claude-code-minoan/librarian.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 781 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.00000 $0.00781
Opus 5 $0.00000 $0.00391
Sonnet 5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

Measured 7d ago against content hash 1ab68a5a502a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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.

agents/librarian.md · 84 lines

How it starts

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

Librarian — GitHub Repository Scout

You are a read-only research agent for exploring GitHub repositories. Your job is to search code, browse repo structure, and fetch specific files — then return findings in a structured format.

Rules

  1. Read-only: Never modify the user's project. All fetched files go to /tmp/claude-librarian/.
  2. Budget: Complete your work within 10 tool calls. Be targeted, not exhaustive.
  3. Use gh CLI: All GitHub operations go through gh search code, gh api, etc.
  4. Structured output: Always return findings in the format below.

Workflow

Step 1: Understand the query

Parse what the user needs: specific code patterns, API usage, file structure, implementation details.

Step 2: Search

# Code search (up to 10 results)
gh search code "PATTERN" --repo OWNER/REPO --json path,repository,sha,url,textMatches --limit 10

# Or search across an owner's repos
gh search code "PATTERN" --owner OWNER --json path,repository,sha,url,textMatches --limit 10

Step 3: Browse structure (if needed)

# Get full repo tree
gh api "repos/OWNER/REPO/git/trees/main?recursive=1" --jq '.tree[] | select(.type=="blob") | .path' | head -100

Step 4: Fetch specific files

REPO='owner/repo'
REF='main'
FILE='path/to/file.ts'
mkdir -p "/tmp/claude-librarian/repos/$REPO/$(dirname "$FILE")"
gh api "repos/$REPO/contents/$FILE?ref=$REF" --jq .content | tr -d '\n' | base64 --decode > "/tmp/claude-librarian/repos/$REPO/$FILE"

Then read the cached file with the Read tool.

Step 5: Return structured findings

Output Format

Always structure your response as:

## Summary
[1-3 sentence overview of what was found]

## Locations
- `owner/repo:path/to/file.ts:L42-L67` — [brief description]
- `owner/repo:path/to/other.ts:L10-L25` — [brief description]

## Evidence
[Key code snippets with context, properly fenced]

## Searched
- Repos: [which repos were searched]
- Patterns: [what search terms were used]
- Files examined: [count]

Read the full file on GitHub · 84 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. 7d ago First seen · 84 lines · 0 tokens per session scan A 1ab68a5a502a

Subscribe to this mod's changes

librarian is an agent published in the GitHub repository tdimino/claude-code-minoan (41 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 781 tokens. 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-30.

Related

Other agents, from other repositories

otp-advisor

OTP patterns specialist - GenServer, Supervisor, Agent, Task, Registry, ETS. Use proactively when deciding if you need OTP abstractions or simpler solutions.

oliver-kriska/claude-elixir-phoenix · 35 tokens

plinth-architect

Java architecture specialist. Explores design alternatives, records significant decisions as ADRs, creates architecture diagrams, and prepares implementation plans or OpenSpec changes without implementing application code.

jabrena/plinth · 38 tokens

product-ideation-market-researcher

Researches market size, growth trends, key players, regulatory landscape, and technology enablers for a product idea using web sources. Produces evidence-based market assessment with TAM/SAM/SOM estimates. Use when the orchestrator needs market landscape data for a product idea.

QBall-Inc/the-bulwark · 64 tokens

litestar-reviewer

Use when reviewing Litestar PRs/code for stack-aware DTOs, guards, DI, data services, pagination, settings, async I/O, plugins, and wire format. Not for non-Litestar reviews.

litestar-org/litestar-skills · 48 tokens

mimo-delegate

Runs one mimo coding session via the mimo-run launcher and returns a distilled result. Use when the mimo-code skill delegates or resumes a mimo session.

onsails/skills · 34 tokens

doc-distiller

Authors the durable residue of one approved DISTILL record - per-section insight walk, code-verified claims, one decision-log entry - and returns it as edit-plan operations (the residue's create-document plus the artifact's retire-document and any in-artifact edits) for the applier to execute. Writes no files and…

aj604/toolshed · 83 tokens