New Features
lean-ctx ghostCLI: New command that reveals hidden token waste — shows unoptimized shell commands, redundant reads, and oversized contexts with monthly USD savings estimate. Supports--jsonfor CI integration.ctx_reviewMCP tool: Automated code review combining impact analysis (ctx_impact), caller tracking (ctx_callers), and test file discovery. Three actions:review(full analysis),diff-review(review changed files from git diff),checklist(structured review questions).- Content-Defined Chunking (Rabin-Karp): Opt-in rolling-hash chunking for
ctx_readthat creates stable chunk boundaries, improving LLM prompt cache hit rates across edits. Enable viacontent_defined_chunking = trueinconfig.toml. - Claude Code Plugin Manifest:
.claude-plugin/manifest.jsonadded for future Claude Code plugin marketplace integration.
Improvements
- Cache-Safety Doctor Check:
lean-ctx doctornow verifies thatcache_alignmentandprovider_cachemodules are operational (12 checks total). provider_cachemodule activated: Previously dormant cache provider module is now wired into the diagnostic pipeline.
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.3.7...v3.3.7