Skip to content

v1.6.0 — gain --graph, Ruby patterns, Vitest support

Choose a tag to compare

@yvgude yvgude released this 24 Mar 16:55

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