royalallen/dsh-laya-mcp-skill-router
Per-step tool and skill routing for DSH: each step, the router picks only the MCP/plugin tools and Agent Skills that fit the request and sends those to the model, instead of shipping every schema on every request.
Two stages: rank (embeddings + BM25 over tool groups, tools and skills against the current request, the previous request and recently used tools), then filter (the Laya sidecar's batched yes/no decisions per skill and per top tool group). What survives is what the model sees, so the prompt stays small without removing capability outright — and with no Ollama running the router degrades to lexical ranking rather than failing.
Install
dsh plugin --profile desktop add github:royalallen/dsh-laya-mcp-skill-routerThe README's install line, which names the desktop profile (another profile is named by its own name). The plugin has no npm publication, so the GitHub form is the documented route.
Compatibility
The problem it targets is stated in the README: every tool schema and every skill description would otherwise ride along on every request, which is expensive when the endpoint is remote. Recall uses local Ollama embeddings (nomic-embed-text on http://127.0.0.1:11434) plus BM25, fused by reciprocal rank — with no embeddings available, BM25 alone is used. A Laya sidecar then answers one batched yes/no question per skill and per top tool group; layaUrl points at an existing sidecar. Requirements, configuration and troubleshooting sections are in the README.
Details
- Repo: royalallen/dsh-laya-mcp-skill-router
- Category: Agent Capabilities
- Stars: 0
- Version: installed from the repo's default branch
Alternatives
nfz/dsh-plugin-skill-tree · boomzikazita/dsh-skill-authoring · RealAlexandreAI/dsh-noc-memory