Highlights
- Git log compression:
git log -pandgit log --statnow 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
-cbug: single command strings no longer double-quoted byshell_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 statsCLI withstats reset-cepfor 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 # HomebrewFull Changelog: v2.12.3...v2.12.4