Skip to main content
subagent CX Codex

open-source-librarian — Claude Code subagent

The open-source-librarian subagent investigates open-source libraries and codebases, tracing implementations and linking to exact GitHub lines. Use it for source-level and change-history questions.

no license ★ 1,064 updated 2026-01-21

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/open-source-librarian.md
Open on GitHub

What open-source-librarian does

open-source-librarian handles questions about libraries and large repositories. It looks for implementation details, source locations, documentation, issues, pull requests, and the background of code changes. Its answers are based on code evidence and GitHub permalinks rather than a high-level summary.

The configuration gives it file search and reading tools, Bash, WebFetch, LSP, WebSearch, Context7, Exa, and GitHub search, along with TodoWrite and Skill. In Claude Code, place the agent file at .claude/agents/open-source-librarian.md. That GitHub link trail matters when you need to verify the exact lines behind an answer.

What it helps with

  • locate a function inside an open-source repository
  • explain a library feature from its source code
  • trace the background of a codebase change
  • back an implementation answer with GitHub line links

Example prompts for the agent

  • Explain how React Query implements stale time and link to the relevant source lines.
  • Find where Zod checks email formats and provide a GitHub permalink.
  • Research the routing change in Next.js and connect the explanation to issues and pull requests.

How to install open-source-librarian

Manually: put the files in place

.claude/agents/open-source-librarian.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about open-source-librarian

How do I install open-source-librarian in Claude Code?

Place the agent file at .claude/agents/open-source-librarian.md.

What does open-source-librarian do?

It investigates open-source libraries and repositories, finds source-level implementation details, and supports the explanation with GitHub permalinks.

Which tools does open-source-librarian use?

Its configuration includes file search and reading, Bash, LSP, WebSearch, Context7, Exa, and GitHub search. It also has TodoWrite and Skill.

Similar subagents

All subagents for Agent setup: memory, context, orchestration →
Open Source Release Checklist Builder (YAML) f Open Source Release Checklist Builder (YAML) is a ChatGPT and Claude.ai prompt that turns an open-source release plan into a YAML checklist for versions, tests, artifacts, security, and announcements. GP ChatGPT ★ 178,201repo stars open-source-marketing jonathimer open-source-marketing is a Claude Code skill for planning open-source promotion through GitHub and community work, and clarifying the contributor path. It requires an audience context file before starting. CX Codex +1 ★ 88repo stars open-sourcing trailofbits open-sourcing walks a repository through the pre-release checklist: secret audit, license, docs, CI and packaging. CX Codex +1 1,900installs open-source-company-strategy Samuel Berthe open-source-company-strategy — a skill that walks a company through deciding which assets ship under an open license and which stay closed. Useful when the question is framed as one big yes or no. CX Codex +1 13,800installs oss-contributor-onboarding Samuel Berthe oss-contributor-onboarding is a Claude Code skill that audits how newcomers reach their first merged pull request in an open-source project. It runs on requests about CONTRIBUTING.md, beginner issues, or contributor drop-off. CX Codex +1 13,700installs open-source Lex Christopherson Finds existing open-source libraries and tools for the problem at hand, checks whether they are still maintained, and says whether to use one or build your own. CX Codex +1 ★ 1,988repo stars

From the same set20

The whole set →
rendering-content-visibility The rendering-content-visibility rule applies content-visibility: auto to long lists so off-screen items can wait before rendering. It fits message feeds and other scrollable collections. CX Codex +1 ★ 1,064repo stars rerender-dependencies rerender-dependencies — a Claude rule that keeps useEffect dependency arrays on primitives like user.id rather than whole objects, so an effect stops firing on every field change. CX Codex +1 ★ 1,064repo stars testing The testing rule sets conventions for TypeScript test files and the __tests__ directory. Use it to guide checks for success cases, failures, and edge conditions. CX Codex +1 ★ 1,064repo stars forge The forge rule configures Foundry workflows for Abstract and tells Claude Code to use the ZKsync mode for Solidity projects. CX Codex +1 ★ 1,064repo stars js-batch-dom-css js-batch-dom-css — a Claude rule that keeps the agent from writing styles one property at a time and pushes it toward a class or a single cssText string. CX Codex +1 ★ 1,064repo stars codebase-search codebase-search finds where a feature lives in your repo and hands back absolute paths plus a short explanation of the flow. CX Codex ★ 1,064repo stars media-interpreter media-interpreter — a subagent for working with PDFs, images, diagrams, and other binary formats. Extracts text, tabular data, and descriptions of visual content when standard file reading isn't an option. CX Codex ★ 1,064repo stars tech-docs-writer tech-docs-writer explores unfamiliar codebases to generate and maintain technical documentation, README files, and API guides with verified code samples. CX Codex ★ 1,064repo stars

Project sponsors

Companies that keep this analytics open