Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

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
FlagDescription
-m, --max <N>Cap the number of results (default: 20).
-r, --regexTreat <query> as a regular expression.
--scopeInclude the enclosing symbol range for each hit.
-c, --compactPrint compact one-line results.
--paths-onlyPrint only file paths.
--path-globRestrict 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 createProjectAgent

symbol-search <query>

Fuzzy symbol discovery when symbol-defs is too strict. Use this when you only remember part of a name (createAgentcreateProjectAgent).

lexa symbol-search createAgent
lexa symbol-search termnl --max 10
FlagDescription
-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 Engine

callers <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
FlagDescription
-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