code_search
Search your codebase using natural-language descriptions to find exported functions, classes, and interfaces without knowing exact names.
Instructions
Semantic search over the codebase — finds exported symbols (functions, classes, interfaces) related to a natural-language query. Replaces blind grep when you don't know the exact symbol name.
Requires hivelore index code-search to have been run (builds embeddings for every
exported symbol from the code-map). Falls back to a notice when index is missing.
PARAMETERS: query — natural language (e.g. 'function that hashes passwords', 'JWT signing') k — number of top hits (default 5) min_score — minimum cosine similarity (default 0.2; try 0.3+ for stricter)
RETURNS: { available: bool, hits: [{ file, name, kind, line, description?, score }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of top hits to return. | |
| query | Yes | Natural-language description of what you are looking for in the codebase (e.g. 'function that hashes passwords', 'JWT signing logic', 'route registration'). | |
| min_score | No | Minimum cosine similarity. Hits below this threshold are dropped to avoid noise. Try 0.3+ for stricter matching. |