Fixed
- Dashboard vs CLI token mismatch —
lean-ctx gain,lean-ctx gain --daily, andlean-ctx gain --graphnow include both input and output token savings (CEP/TDD estimate) in their totals, consistent with the web dashboard. Previously, the CLI only showed input compression savings while the dashboard included output savings, causing confusing discrepancies.
Changed
- Consistent savings calculation — All views (CLI gain, daily table, graph, web dashboard) now use the same formula:
total_saved = input_compressed + commands × 330(output reduction from 450→120 tokens per call via CEP/TDD protocols). - Comprehensive project documentation — Added detailed
PROJECT.mdwith complete architecture, all 24 MCP tools, compression pipeline data flow, algorithm descriptions, shell pattern routing, and storage locations.
Install
# Cargo (recommended)
cargo install lean-ctx
# Homebrew
brew install yvgude/lean-ctx/lean-ctx
# npm
npx lean-ctx-bin@latest
# AUR
yay -S lean-ctxFull Changelog: v2.9.3...v2.9.4