MCPcopy Create free account
hub / github.com/damianpdr/pi-librarian

github.com/damianpdr/pi-librarian @v0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.0 ↗ · + Follow
24 symbols 59 edges 1 files 0 documented · 0% updated 2mo agov0.2.0 · 2026-02-15★ 37

Browse by type

Functions 24 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

pi-librarian (pi extension)

A GitHub-focused librarian subagent for pi. Inspired by Amp's librarian.

Demo

https://github.com/user-attachments/assets/25e9fc3b-9557-4cce-bbdd-058d2758a564

What it adds

  • librarian tool (GitHub-focused subagent)
  • Supporting repo analysis tools:
  • read_github
  • search_github
  • commit_search
  • diff
  • list_directory_github
  • list_repositories
  • glob_github

How it works

librarian spawns an isolated pi subprocess (--mode json --no-session) with only the GitHub tools above enabled, then returns the subagent's final answer.

Requirements

  • GitHub CLI (gh) installed
  • Authenticated GitHub session:
gh auth login

Location

This extension is project-local and auto-discovered from:

  • .pi/extensions/pi-librarian/index.ts

Use /reload in pi after edits.

Notes

  • Current port targets GitHub only (no Bitbucket Enterprise path yet).
  • Tool output is JSON-formatted text for reliable downstream parsing.

Core symbols most depended-on inside this repo

Shape

Function 24

Languages

TypeScript100%

Modules by API surface

index.ts24 symbols

For agents

$ claude mcp add pi-librarian \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page