github yvgude/lean-ctx v1.6.0
v1.6.0 — gain --graph, Ruby patterns, Vitest support

latest releases: v3.9.2, v3.9.1, v3.9.0...
3 months ago

What's New

gain --graph / --daily / --json

ASCII chart visualization of token savings over the last 30 days, detailed day-by-day breakdown table, and raw JSON export for external tooling.

lean-ctx gain --graph
lean-ctx gain --daily
lean-ctx gain --json

Ruby Compression Patterns (4 new)

  • rubocop: Groups offenses by cop name with counts
  • bundle install/update: Summarizes installed vs cached gems
  • rake test / rails test: Minitest results with failure details

Vitest Support

Dedicated compression pattern for Vitest output with ANSI stripping and failure extraction. Previously handled by generic Jest fallback.

Pattern Count: 60+ (up from 50+)

14 categories now including Ruby and expanded test runner coverage (jest, vitest, pytest, go test, playwright, cypress, rspec, minitest).

Install / Update

# Homebrew
brew upgrade lean-ctx

# Cargo
cargo install lean-ctx

# From source
git clone https://github.com/yvgude/lean-ctx.git
cd lean-ctx/rust && cargo build --release

Full docs: https://leanctx.com

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.