code-search-router
Routes code-search requests by classifying each question as one about meaning, code shape, or exact text, then sends meaning questions to LEANN embedding search over a local index, shape questions to ast-grep structural patterns with metavariables and a preview-then-approve rewrite flow, and text questions to Morph hosted search when an API key and user consent exist, while the built-in Grep tool serves quick literal lookups and stands in whenever a richer backend is missing. Also covers the pre-tool hook that reroutes conceptually worded Grep queries to the index, and the confirmations required before applied rewrites, hosted searches, and force-flagged index rebuilds. Use when asked to find, trace, or enumerate code, to plan a bulk refactor, or to choose among installed search tools, including sessions where only Grep is available. Not for web search, for searching documents outside the codebase, or for executing the code that is found.
- Version
- v1.0.0
- Size
- 16 KB
- Updated
- 2026-10-12
$ skilvault read --manual code-search-routerYour client verifies the signature before reading. This explicit manual read is available on every plan. Free automatically loads five chosen skills; paid plans automatically load relevant skills across the library.