v3.4.3
Fixed
- Pi Agent compression loop — agents using
pi-lean-ctxcould get stuck in a compression loop wherebashoutput was too aggressively compressed, preventing the agent from extracting needed information. Thebashtool now supports araw=trueparameter that bypasses compression entirely when exact output is critical. Fixes #159. - Hook handlers ignore
LEAN_CTX_DISABLED—handle_rewrite,handle_codex_pretooluse,handle_copilot, andhandle_rewrite_inlinenow checkLEAN_CTX_DISABLEDenv 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 = trueconfig option andLEAN_CTX_NO_UPDATE_CHECK=1env var to completely disable the daily version check againstleanctx.com/version.txt. - Pi Agent
rawparameter —bashtool inpi-lean-ctxnow acceptsraw=trueto skip compression, matchingctx_shell raw=truebehavior in the MCP server. is_disabled()guard — centralized helper inhook_handlers.rsfor consistentLEAN_CTX_DISABLEDchecks across all hook entry points.- New integration tests —
hook_rewrite_disabled_produces_no_outputandcodex_pretooluse_disabled_exits_cleanlyverify the disabled guard behavior.
Changed
- Data sharing default flipped —
lean-ctx setupnow asks[y/N](opt-in) instead of[Y/n](opt-out). Users must explicitly choose to enable anonymous stats sharing. - Pi Agent tool prompts overhauled —
descriptionfields 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 point —
pi-lean-ctxnow uses./extensions/index.tsas explicit entry point. PR #158 by @riicodespretty.
Credits
- @glemsom — Pi Agent prompt improvements (PR #157) and architectural insights (PR #161)
- @johnwhoyou —
LEAN_CTX_DISABLEDhook handler fix (PR #163) - @riicodespretty — explicit extension entry point (PR #158)
- @pavelxdd — telemetry transparency request (Issue #160)
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-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.4.2...v3.4.3