Search
Text and symbol search over the indexed graph.
text-search <query>
Substring search by default; opt into regex with --regex.
lexa text-search "render"
lexa text-search "handle_request" --scope
lexa text-search --regex "render[A-Z]\\w+"
lexa text-search "useEffect" --path-glob "**/*.{ts,tsx}"
lexa text-search "TODO" --compact --paths-only| Flag | Description |
|---|---|
-m, --max <N> | Cap the number of results (default: 20). |
-r, --regex | Treat <query> as a regular expression. |
--scope | Include the enclosing symbol range for each hit. |
-c, --compact | Print compact one-line results. |
--paths-only | Print only file paths. |
--path-glob | Restrict to a glob. |
The default result format is path:line: text. With --scope the format
becomes path:line: text [kind name:line_start-line_end].
symbol-defs <name>
Exact symbol definitions.
lexa symbol-defs Engine
lexa symbol-defs createProjectAgentsymbol-search <query>
Fuzzy symbol discovery when symbol-defs is too strict. Use this when you
only remember part of a name (createAgent → createProjectAgent).
lexa symbol-search createAgent
lexa symbol-search termnl --max 10| Flag | Description |
|---|---|
-m, --max <N> | Cap the number of results (default: 20). |
word-refs <word>
Find exact identifier occurrences including declarations and definitions. Useful for "where is this symbol used or defined?".
lexa word-refs Enginecallers <name>
Find non-definition call sites and usages. Narrower than word-refs — skips
declaration-like occurrences such as type aliases.
lexa callers createProjectAgent
lexa callers handle_request --max 50| Flag | Description |
|---|---|
-m, --max <N> | Cap the number of results (default: 20). |
Useful search flags
lexa text-search "render" --scope
lexa text-search --regex "render[A-Z]\\w+"
lexa text-search "useEffect" --path-glob "**/*.{ts,tsx}"
lexa text-search "TODO" --compact --paths-only
lexa symbol-search createAgent