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

Code Structure

Commands for symbols, dependencies, and task context.

outline <path>

Show imports and symbols for a single file.

lexa outline src/main.rs

Output includes the file's language, line count, byte size, the symbol list, the resolved import list, and any unresolved local imports. As of v0.6.0 imports are kept out of the symbol list.

trace-deps <path>

Trace the resolved project-file imports of a single file.

lexa trace-deps src/main.rs
lexa trace-deps src/main.rs --reverse
lexa trace-deps src/main.rs --transitive
FlagDescription
-r, --reverseReturn files that import this one (imported_by) instead.
-t, --transitiveFollow the graph through every intermediate file.

brief <task>

Bundle context for an explicit code task. The task is a free-form description of what you're trying to do; Lexa returns a small, ranked set of relevant symbols, snippets, and next steps.

lexa brief createAgentRuntimeForRun
lexa brief "terminal session" --path-prefix apps/desktop
lexa brief "createProjectAgent packages/agents" --path-prefix packages/agents --max 8
FlagDescription
-m, --max <N>Cap the number of context items (default: 10).
--path-prefixRestrict to a project-relative path prefix.
--path-globRestrict to a glob.
--languageRestrict to one of the supported languages.