Skip to content

v2.10.0 — Task-Conditioned Compression + Smart Defaults + tree-sitter Expansion

Choose a tag to compare

@yvgude yvgude released this 31 Mar 19:39

Highlights

  • Task-Conditioned Compression: New task mode in ctx_read uses the Information Bottleneck filter to return only task-relevant lines — 70% token savings on large code files
  • Smart Default Mode: ctx_read without an explicit mode now auto-selects the optimal compression (diff/task/signatures) instead of always using full
  • 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
  • reference mode: 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 wrapper

Full Changelog: v2.9.16...v2.10.0