v2.4.0 — Shell Toggle, Slow Log, Self-Update
Features
-
lean-ctx-on/lean-ctx-off/lean-ctx-status— Shell toggle functions installed bylean-ctx init --global. Switch between compressed AI mode and human-readable output without restarting the shell. SetLEAN_CTX_ENABLED=0to disable by default (#13) -
Slow query log — Commands exceeding
slow_command_threshold_ms(default: 5000ms) are automatically logged to~/.lean-ctx/slow-commands.log. Newlean-ctx slow-log [list|clear]command to inspect or clear the log (#14) -
lean-ctx update— Built-in self-update command. Fetches the latest release from the GitHub API, downloads the appropriate binary archive for the current platform (macOS arm64/x86_64, Linux x86_64/aarch64, Windows x86_64), and safely replaces the running binary.lean-ctx update --checkchecks for updates without installing (#15)
Fixes
-
excluded_commandsnow enforced — Commands listed in~/.lean-ctx/config.tomlunderexcluded_commandsnow actually bypass compression (#10) -
Windows Git Bash shell flag — Correctly assigns
-cfor POSIX-style shells on Windows instead of/C(cmd.exe only). Fixes the/C: Is a directoryerror (#7, #11)
Install
```bash
Homebrew (macOS/Linux)
brew install yvgude/tap/lean-ctx
Cargo (all platforms)
cargo install lean-ctx
AUR (Arch Linux)
yay -S lean-ctx
Self-update (existing installations)
lean-ctx update
```
Full Changelog: v2.3.3...v2.4.0
What's Changed
- docs: update README with lean-ctx rules and add new session metrics file by @TarekHamlaoui in #9
- fix(windows): correct shell flag for Git Bash / POSIX shells (fix #7) by @sinouw in #8
New Contributors
- @TarekHamlaoui made their first contribution in #9
- @sinouw made their first contribution in #8
Full Changelog: v2.3.3...v2.4.0