Self-Updater Shell Alias Refresh + Thinking Budget Tuning
Fixed — lean-ctx update now refreshes shell aliases automatically
- Shell alias auto-refresh —
post_update_refresh()now detects all shell configs (~/.zshrc,~/.bashrc,config.fish, PowerShell profile) with lean-ctx hooks and rewrites them with the latest_lc()function. Previously,lean-ctx updateonly refreshed AI tool hooks (Claude, Cursor, Gemini, Codex) but left shell aliases untouched, meaning users had to manually runlean-ctx setupto get new hook logic like the pipe guard. - Multi-shell support — If a user has hooks in both
.zshrcand.bashrc, both are now updated (previously only the first match was handled). - Post-update message — Now explicitly tells users to
source ~/.zshrcor restart their terminal.
Changed — Thinking Budget Tuning
FixBugintent: Minimal → Medium (bug fixes benefit from deeper reasoning)Exploreintent: Medium → Minimal (exploration is lightweight)Debugintent: Medium → Trace (debugging needs full chain-of-thought)Reviewintent: Medium → Trace (code review needs thorough analysis)
Improved — README & Deploy Checklist
- README — Added "Updating lean-ctx" section with all update methods, added pipe guard troubleshooting entry.
- Deploy checklist — Added "Shell Hook Refresh", "README / GitHub Updates" sections, and two new common pitfalls.
Upgrade
cargo install lean-ctx # or
npm update -g lean-ctx-bin # or
brew upgrade lean-ctxFull Changelog: v2.21.8...v2.21.8