Upgrade notes
- The lean-ctx line in an existing
CLAUDE.mdor agent rules file changes on the nextlean-ctx initor setup refresh (#2284). Installs set up earlier keep the previous wording, which still calls shell output lossless, until then.
Fixed
-
Reading the full copy that a shortened shell output points to returns it whole (#2284). A
[lean-ctx: full original at …]marker said tocatthe copy, yet the proxy shortened thatcatagain, so the full output could not be recovered without MCP. A plaincat,typeorGet-Contentof files in lean-ctx's own copy folder now passes through unshortened; pipes, redirects and other files are shaped as before. The marker,ctx_shelland the Claude Code rule line now say the copy is read withcator a file-read tool, and no longer claim that shell output stays lossless. -
The output firewall no longer asks to re-run a command whose output it archived (#2285). Its guidance told the agent to narrow the command and run it again, while the lean-ctx skill says to query the archive instead. It now starts with "Query it, do not re-run the command", offers the matching
ctx_expandslices (json_path/json_keysfor JSON,search/head/line range otherwise) and keeps narrowing at the source as advice for the next command. Both copies of the skill say the same.
Upgrade
:::bash
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 setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: https://github.com/yvgude/lean-ctx/compare/v3.12.10...v3.12.11