Search code
search_codeSearch previously built code chunk index with BM25 scoring to receive compact evidence packets (file, lines, score, snippet) instead of full files, reducing token usage.
Instructions
Search the previously built chunk index with a BM25-style keyword score and return a compact evidence packet (FILE / LINES / SCORE + snippet) instead of full files. Call index_repo first if no index exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Absolute path to the repository root | |
| topK | No | Number of results to return (default 5) | |
| query | Yes | Natural language or keyword query |