Skip to content

v3.4.3

Choose a tag to compare

@github-actions github-actions released this 27 Apr 18:45
· 1009 commits to main since this release

Fixed

  • Pi Agent compression loop — agents using pi-lean-ctx could get stuck in a compression loop where bash output was too aggressively compressed, preventing the agent from extracting needed information. The bash tool now supports a raw=true parameter that bypasses compression entirely when exact output is critical. Fixes #159.
  • Hook handlers ignore LEAN_CTX_DISABLEDhandle_rewrite, handle_codex_pretooluse, handle_copilot, and handle_rewrite_inline now check LEAN_CTX_DISABLED env var and exit immediately when set. This prevents Claude Code subagents and rewind operations from being blocked by hooks. Fixes #162.
  • Telemetry claims in README/SECURITY.md — replaced inaccurate "Zero telemetry / Zero network requests" claims with honest documentation of what network activity exists (daily version check, opt-in anonymous stats). Fixes #160.

Added

  • Version check opt-out — new update_check_disabled = true config option and LEAN_CTX_NO_UPDATE_CHECK=1 env var to completely disable the daily version check against leanctx.com/version.txt.
  • Pi Agent raw parameterbash tool in pi-lean-ctx now accepts raw=true to skip compression, matching ctx_shell raw=true behavior in the MCP server.
  • is_disabled() guard — centralized helper in hook_handlers.rs for consistent LEAN_CTX_DISABLED checks across all hook entry points.
  • New integration testshook_rewrite_disabled_produces_no_output and codex_pretooluse_disabled_exits_cleanly verify the disabled guard behavior.

Changed

  • Data sharing default flippedlean-ctx setup now asks [y/N] (opt-in) instead of [Y/n] (opt-out). Users must explicitly choose to enable anonymous stats sharing.
  • Pi Agent tool prompts overhauleddescription fields for all 5 Pi tools (bash, read, ls, find, grep) rewritten to provide clear guidance on which tool to use for which task.
  • Pi Agent explicit entry pointpi-lean-ctx now uses ./extensions/index.ts as explicit entry point. PR #158 by @riicodespretty.

Credits


Upgrade

lean-ctx update                 # recommended (auto-downloads + refreshes shell hooks)
cargo install lean-ctx          # or
npm update -g lean-ctx-bin      # or
brew upgrade lean-ctx

Note: After upgrading via cargo/npm/brew, run lean-ctx setup to refresh shell aliases. lean-ctx update does this automatically.

Full Changelog: v3.4.2...v3.4.3