Highlights
- Task-Conditioned Compression: New
taskmode inctx_readuses the Information Bottleneck filter to return only task-relevant lines — 70% token savings on large code files - Smart Default Mode:
ctx_readwithout an explicit mode now auto-selects the optimal compression (diff/task/signatures) instead of always usingfull - 5 new tree-sitter languages: Dart, Bash/Shell, Scala, Elixir, Zig (14→19 languages total)
- Svelte/Vue SFC support: Extracts
<script>blocks for proper TypeScript/JavaScript signature parsing referencemode: One-line metadata output (~100% savings for irrelevant files)
Benchmark
Source: 500-line Rust file, task='fix authentication in validate_token'
full: 10803 tokens (baseline)
task: 3248 tokens (70% savings)
signatures: 361 tokens (97% savings)
reference: 26 tokens (100% savings)
Install
cargo install lean-ctx # from source
brew install yvgude/tap/lean-ctx # macOS Homebrew
npx lean-ctx-bin # npm wrapperFull Changelog: v2.9.16...v2.10.0