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/github.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/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/tdimino/claude-code-minoan/librarian"><img src="https://agentmods.dev/badge/agents/tdimino/claude-code-minoan/librarian.svg" alt="Reviewed on agentmods" width="80" 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.5 $0.00000 $0.00312
Sonnet 5.5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

Measured 3mo ago against content hash 1ab68a5a502a, 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 3mo 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. 3mo 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 (42 stars, last pushed 6d 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

librarian compared with agents from other repositories

librarian next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
librariantdimino/claude-code-minoanAgent426d agoMITA0Claude Code
sereja-risserejaris/personal-corp-osAgent2518d agoMITA120Claude Code
uncle-bobserejaris/personal-corp-osAgent2518d agoMITA95Claude Code
blind-criticserejaris/personal-corp-osAgent2518d agoMITA108Claude Code
seo-reviewerserejaris/personal-corp-osAgent2518d agoMITA74Claude Code
it-engineerserejaris/personal-corp-osAgent2518d agoMITA66Claude Code
ilyakhovserejaris/personal-corp-osAgent2518d agoMITA86Claude Code