Skip to content

v2.4.0 — Shell Toggle, Slow Log, Self-Update

Choose a tag to compare

@yvgude yvgude released this 27 Mar 07:50

Features

  • lean-ctx-on / lean-ctx-off / lean-ctx-status — Shell toggle functions installed by lean-ctx init --global. Switch between compressed AI mode and human-readable output without restarting the shell. Set LEAN_CTX_ENABLED=0 to disable by default (#13)

  • Slow query log — Commands exceeding slow_command_threshold_ms (default: 5000ms) are automatically logged to ~/.lean-ctx/slow-commands.log. New lean-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 --check checks for updates without installing (#15)

Fixes

  • excluded_commands now enforced — Commands listed in ~/.lean-ctx/config.toml under excluded_commands now actually bypass compression (#10)

  • Windows Git Bash shell flag — Correctly assigns -c for POSIX-style shells on Windows instead of /C (cmd.exe only). Fixes the /C: Is a directory error (#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

Full Changelog: v2.3.3...v2.4.0