Fixed
- MCP instructions: Write/StrReplace confusion — Restructured MCP system prompt to clearly separate "REPLACE" tools (Read → ctx_read, Shell → ctx_shell, Grep → ctx_search) from "KEEP" tools (Write, StrReplace, Delete, Glob). Agents no longer think they must ctx_read before creating files with Write (#20)
lean-ctx doctoron Windows — Fixed OS Error 193 ("not a valid Win32 application") when doctor tried to runlean-ctx --versionvia the npm.cmdshim. Now prefers.exebinaries fromwhere.exeoutput and falls back to alternative candidatesstats.json missingfalse alarm —lean-ctx doctorno longer shows a red error for missingstats.jsonon fresh installs. Now shows yellow "not yet created (will appear after first use)" and counts as passedlean-ctx gainmissing MCP hint — When MCP/CEP shows 0% savings (shell hook only, no MCP server configured), gain now displays a clear hint to runlean-ctx setupfor full token savings
Added
- GitHub Discussions — Enabled Discussions tab for questions and community support (#19)
Install
cargo install lean-ctx # Rust
brew install yvgude/lean-ctx/lean-ctx # macOS
npm install -g lean-ctx-bin # npmAfter install: lean-ctx setup to auto-configure shell + editors.
Full Changelog: v2.5.1...v2.5.2