search
Find ranked code and knowledge entities by concept using hybrid lexical and semantic retrieval. Use when you know the idea but not the exact name.
Instructions
Ranked search across all entities — code (functions, files, classes) plus rules, observations, and knowledge — using hybrid lexical + semantic retrieval with graph expansion. Use when you know the concept but not the exact name, or want related entities surfaced automatically. For exact identifier/text matches, grep is faster and equally precise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Absolute path to the project root containing `.cogz/`. | |
| limit | No | ||
| query | Yes | ||
| before | No | Only use git history committed before this unix timestamp for the co-change channel. | |
| expand | No | ||
| record | No | Record this call as a delivery in usage telemetry. Defaults to true — pass false for inspection reads that must not bump access counts, open deliveries, or feed mining signals. | |
| status | No | ||
| code_search | No | Use the code model (CodeRankEmbed) for query embedding. Applies the CodeRankEmbed query prefix for code-focused search. | |
| entity_type | No |