github yvgude/lean-ctx v2.12.4
v2.12.4 — Git Compression Overhaul + Exec Fix

latest releases: v3.8.11, v3.8.10, v3.8.9...
2 months ago

Highlights

  • Git log compression: git log -p and git log --stat now achieve 95-99% token savings (was 2.6%)
  • Shell exec fix: lean-ctx -c "command" works correctly again (was broken by shell quoting)
  • CEP accuracy: Delta tracking prevents over-counting of session tokens

Fixed

  • Shell exec -c bug: single command strings no longer double-quoted by shell_join()
  • Git log compression: diff/stat content is now filtered, only hash + message remain
  • Git commit compression: pre-commit hooks summarized, branch regex supports feature/my-branch
  • CEP over-counting: PID-based delta tracking prevents exponential token inflation
  • ctx_read savings: token count measured before appending savings note

Added

  • lean-ctx stats CLI with stats reset-cep for data cleanup
  • 12 new verification tests covering compression and E2E real git data

Install

cargo install lean-ctx     # crates.io
npm i -g lean-ctx-bin      # npm
brew install yvgude/lean-ctx/lean-ctx  # Homebrew

Full Changelog: v2.12.3...v2.12.4

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.