the-librarian
llms.txt41 starsChanged 4 months agoMITView on GitHub
A skill librarian MCP server. Agents never load a skill collection into context: they describe a task in plain language, the librarian recommends the few skills that fit (local semantic search with diversity and anti-repetition), and agents report outcomes back so the collection curates itself from usage. Fully local: Ollama embeddings, SQLite storage, optional Apple on-device reranking. Python, single file, MIT. Key facts: - Problem solved: every installed skill costs context tokens on every request and overlapping descriptions cause wrong…
In this repositoryOne other file it gives its agents.
The file
Files
# the_librarian > A skill librarian MCP server. Agents never load a skill collection into > context: they describe a task in plain language, the librarian recommends the > few skills that fit (local semantic search with diversity and anti-repetition), > and agents report outcomes back so the collection curates itself from usage. > Fully local: Ollama embeddings, SQLite storage, optional Apple on-device > reranking. Python, single file, MIT. Key facts: - Problem solved: every installed skill costs context tokens on every request and overlapping descriptions cause wrong triggering; the librarian replaces always-loaded skills with one on-demand tool call. - Tools: librarian_find (ranked shortlist for an intent), librarian_brainstorm (diverse sweep + wildcards), librarian_report (agent files worked/failed), librarian_reindex (rescan changed SKILL.md files), librarian_stats (curation digest: hot skills, never-surfaced, low success rate). - Agents have no write access beyond the append-only outcome log; curation decisions stay with the human. - Works with any MCP client over stdio (Claude Code, Claude Desktop, Cursor, Goose, and others). Requires Python 3.12+, the mcp SDK 2.x, and Ollama with nomic-embed-text. - In production since 2026-06-10; usage numbers are published in the repo. ## Docs - [README](README.md): what it is, pipeline, setup, tools, tuning knobs - [skills/using-the-skill-librarian/SKILL.md](skills/using-the-skill-librarian/SKILL.md): the one agent skill to install — teaches agents the ask → use → report loop - [ORIGIN.md](ORIGIN.md): the original conversation the project came from - [USAGE-REPORT.md](USAGE-REPORT.md): real production numbers, three snapshots - [CHANGELOG.md](CHANGELOG.md): changes and the decisions behind them
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

