Nox-Lumen MfgNox-Lumen Mfg

code_search

In one sentence

code_search lets the AI grep code quickly—lighter and faster than unified_search.code_search, tuned for:

scopeFindsBackend
scope="sandbox"Code temporarily downloaded/generated in the current session sandboxripgrep + ast-grep
scope="kb"Zero/light-index code in the KB (no need to wait for heavy indexing)ripgrep + ast-grep over local cache

Heavy-index code features (trigram, cross-repo navigate, vector semantic) use unified_search.code_search. code_search does not cover those.


When to use which

ScenarioTool
AI just cloned a repo to sandbox and needs a fast lookupcode_search(scope="sandbox")
KB attached a zero/light code KB; text/AST grepcode_search(scope="kb", kb_ids=[...])
Cross-repo “who calls this function” needs the semantic graphunified_search.code_search(mode="navigate")
Natural language code search needs vectorsunified_search.code_search(mode="semantic")

Modes

modeEngineBest for
textripgrepLiterals, regex, filenames
astast-grepStructural queries (“every try/except without logging”)

On this page