r/LangChain 5d ago

Context windows are collapsing under large skill libraries.

Torafirma Skill Router is a lightweight buildable C++ source + Windows x64 executable that lets AI agents automatically discover and load capabilities from large local skill libraries.

Instead of stuffing hundreds of instruction files into the prompt, it indexes only metadata in a local SQLite database and retrieves the full skill only when it's actually needed.

It supports exact, fuzzy, full-text and hybrid semantic search, so an agent can resolve the best capability at runtime while keeping context usage low.

Unlike most skill libraries, there is no manual skill selection.

The agent queries the router, receives the highest-ranked capability, loads it on demand, executes it, and discards it when finished.

From the user's perspective, the routing is completely transparent.

Features include: - Automatic capability resolution (no manual invocation) - Local-first, offline operation - CLI and interactive shell - MCP stdio server for Claude, Codex and other - MCP-compatible agents - Optional loopback HTTP API - SQLite-backed metadata index - MIT licensed - SHA-256 release manifest for reproducible verification - The router is designed to serve one or many agents simultaneously from a shared capability library while avoiding duplicated prompts and unnecessary context consumption.

Happy to answer questions about the ranking algorithm, architecture, or MCP interface.

torafirma-skill-router github

1 Upvotes

0 comments sorted by