Lexa includes deterministic agent tool-suite benchmarks over a synthetic project with known ground truth. Token counts estimate the default structured-text CLI and MCP output.
cargo test --test agent_retrieval_benchmark -- --nocapture
cargo test --test agent_cli_output_format_benchmark -- --nocapture
cargo test --test agent_edit_safety_benchmark -- --nocapture
cargo test --test agent_mcp_session_benchmark -- --nocapture
cargo test --test agent_maintenance_benchmark -- --nocapture| Latest local run | June 30, 2026 |
| Correctness checks | 34/34 |
| Retrieval aggregate reduction | 80.0% |
| CLI output format | 1676 est. tokens across 13 commands |
retrieval13/13Indexed answers against listing, grep, and candidate reads.
- Lexa
- 1678
- Baseline
- 8397
- Reduction
- 80.0%
cli_output_format13 casesCurrent structured-text CLI envelope across retrieval commands.
- Lexa
- 1676
- Baseline
- n/a
- Reduction
- n/a
edit_safety11/11Hash-aware reads, dry runs, patches, creates, and rejection paths.
- Lexa
- 709
- Baseline
- n/a
- Reduction
- n/a
mcp_session5/5Persistent MCP session edits and state queries.
- Lexa
- 281
- Baseline
- n/a
- Reduction
- n/a
maintenance5/5Recent files, status, reindex, audit, and clear-index.
- Lexa
- 611
- Baseline
- n/a
- Reduction
- n/a
Retrieval is the suite with a full non-indexed baseline: recursive file listing, grep-style search, and candidate file reads. Safety and state suites report correctness and token envelope only.
| Task | Tool | Lexa | Baseline | Reduction | Correct |
|---|---|---|---|---|---|
| filtered file overview | files | 85 | 32 | -165.6% | true |
| directory children | list | 102 | 52 | -96.2% | true |
| glob paths | glob | 30 | 20 | -50.0% | true |
| fuzzy path | path_search | 28 | 129 | 78.3% | true |
| scoped text search | text_search | 177 | 105 | -68.6% | true |
| exact word refs | word_refs | 304 | 274 | -10.9% | true |
| exact definition | symbol_defs | 48 | 1768 | 97.3% | true |
| fuzzy symbol | symbol_search | 86 | 1462 | 94.1% | true |
| callers | callers | 330 | 945 | 65.1% | true |
| outline | outline | 104 | 107 | 2.8% | true |
| dependencies | trace_deps | 32 | 113 | 71.7% | true |
| brief | brief | 220 | 2445 | 91.0% | true |
| composed query | pipeline | 132 | 945 | 86.0% | true |
