Lexa

Lexa indexes a repository into a compact local graph so an agent can find files, symbols, references, dependency paths, and task context without rereading the whole project.

It is built for agent operation: structured text output, focused briefs, audit signals, hash-aware reads, and safe line patches. Lexa gives tools like Codex a fast map of the codebase while final verification stays with the project tests, typechecks, and builds.

NeedCommand
Versionlexa --version
Indexlexa index .
Reindexlexa reindex .
Clear indexlexa clear-index
Statuslexa status
Project overviewlexa files
Directory listinglexa list <dir>
Exact path globlexa glob "src/**/*.rs"
Fuzzy path searchlexa path-search <query>
Recent fileslexa recent --limit 10
Task contextlexa brief "<task>" --path-prefix <scope>
File outlinelexa outline <path>
Read filelexa read <path> -L 1-80 --compact --hash
Patch filelexa patch <path> replace -L 12 --if-hash <hash> --dry-run
Create filelexa create <path> --content "..." --dry-run
Changeslexa changes 0
Text searchlexa text-search "<query>" --scope --compact
Word referenceslexa word-refs <word>
Symbol searchlexa symbol-search <query> --max 10
Symbol definitionslexa symbol-defs <ExactName>
Callerslexa callers <name>
Dependency tracelexa trace-deps <path> --transitive
Auditlexa audit --max 25
Pipelinelexa pipeline "glob src/**/*.rs | search main | limit 5"
Watchlexa watch .
MCP serverlexa mcp .
Upgradelexa upgrade latest