Search
Search works best when you move from precise scope to precise evidence: file discovery first, then lexical or hybrid search, then bounded file reads.
localnest_search_files
Best first step when looking for a feature or module by name.
Use when
Start here for folders, modules, subsystems, acronyms, and other path-oriented discovery tasks.
localnest_search_code
Use for exact identifiers, imports, symbols, or regex patterns.
Useful parameters:
globmax_resultscase_sensitivecontext_linesuse_regex
Use when
Choose this tool when you already know the symbol, error text, or pattern you want to match.
localnest_search_hybrid
Use for concept-level retrieval when exact keywords are not enough.
Useful parameters:
project_pathall_rootsmin_semantic_scoreauto_index
Use when
Use hybrid search after indexing when you need semantic recall, architecture context, or concept-level lookup.
localnest_get_symbol
Use for definition/export lookup when you know the symbol name but not the file.
localnest_find_usages
Use for import/call-site lookup when tracing symbol usage.
Recommended flow
Run localnest_search_files to narrow the search to a directory, feature, or component.
Use localnest_get_symbol/localnest_find_usages for symbol tracing, localnest_search_code for exact terms, and localnest_search_hybrid for concepts.
Validate the result set with localnest_read_file before drawing conclusions or editing code.
Fast mode defaults
For lowest latency in daily use:
- Pass
project_pathwhenever known. - Start with
max_resultsin the20-40range. - Use
context_lines=2inlocalnest_search_code. - Keep
all_roots=falseunless cross-repo search is required. - Use
localnest_search_hybridonly when exact lexical search is not enough. - Keep reranker disabled (
use_reranker=false) until a final precision pass is needed.