atlas_search
Search code and documents in a project's local index using semantic and keyword queries to find exact symbols or concepts before broad file reads.
Instructions
Search code AND documents in the project's local index — your FIRST tool to find, explore or investigate anything here, before broad file reads or grep.
Runs a semantic hybrid search (vector + BM25, fused via RRF) over pre-indexed chunks
of source code (classes/functions/methods) and documents (Markdown, text, JSON/YAML/
TOML). Pass natural language or exact symbols. To get your bearings in an unfamiliar
project first, use atlas_brief.
Token-efficient two-pass pattern: by default this returns metadata only (file_path,
lines, symbol, type, score). Locate first, then read the exact lines with Read, or
re-call with include_content=true for the few results whose content you actually need.
Call directly — do NOT call atlas_status first "just to check". If the index does
not exist yet, this raises an actionable error explaining how to build it (see
atlas_index).
Omit response_profile to respect the operator configuration. Do not select "full" routinely: it overrides ATLAS_CONTEXT_OPTIMIZATION even when enabled. Start with metadata and expand only symbols needed to close an evidence gap. Start with only one or two directly relevant symbols; inspect their contents before expanding helpers, types or additional results. Do not expand every search hit automatically. Stop when the task has sufficient evidence. Use atlas_expand(refs) for omitted content; use "full" only when explicitly requested or when fields omitted by the compact format are required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Optional repository name filter. | |
| limit | No | Alias for 'top_k'; overrides it when provided. | |
| query | Yes | Natural language description or exact symbols to find. | |
| top_k | No | Max results, 1-50. Defaults to 5. | |
| language | No | Optional language filter (e.g. 'python', 'javascript', 'go'). | |
| structural | No | When true, adds a graph spreading-activation arm to the RRF fusion for this call only. Defaults to false (opt-in; does not change default ranking). | |
| path_prefix | No | Optional path prefix filter (e.g. 'src/controllers'). | |
| include_content | No | When true, includes each result's 'content'. Defaults to false (metadata/location only) to save tokens. Compact profile never turns content on. | |
| response_profile | No | `default` follows ATLAS_CONTEXT_OPTIMIZATION; `full` keeps the current delivery format; `compact` applies deterministic compaction and, when ATLAS_RELEVANCE is on, Jev's top_k cut (or the conservative selection with ATLAS_RELEVANCE_CUT=0). | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |