v2.2.0 — Cognitive Efficiency Protocol (CEP v1)
Cognitive Efficiency Protocol (CEP v1)
Major release introducing CEP — a holistic approach to LLM communication optimization.
New Features
- CEP Compliance Scoring in
ctx_metrics— tracks Cache utilization, Mode diversity, Compression rate, and overall CEP Score (0-100) - Adaptive Instructions Engine — classifies task complexity (Mechanical / Standard / Architectural) and dynamically adjusts LLM reasoning guidance
- Smart Context Prefill Hints in
ctx_context— suggests optimal read modes for large/infrequently-used files - Quality Scorer — measures AST, identifier, and line preservation (>95% target)
- Auto-Validation Pipeline — syntax checks for Rust, JS/TS, Python, JSON, TOML after file changes
- MCP Live Stats (
~/.lean-ctx/mcp-live.json) — real-time CEP metrics for dashboard integration - Dashboard CEP Intelligence Card — shows CEP Score, Cache Hit Rate, Mode Diversity, Compression, Task Complexity
- TOON-Inspired Output Format — ~15% fewer tokens per header
- Extended Filler Detection v2 — 60+ patterns across Hedging, Meta-Commentary, Closings, Transitions, Acknowledgments
- Dynamic MAP Threshold — ROI-based identifier registration
- Formal Action Vocabulary (TDD v2) — Unicode symbols for code changes (⊕⊖∆→⇒✓✗⚠)
Bug Fixes
--global --agentno longer overwrites project-local files (CLAUDE.md, .cursor/rules, etc.)- Multiple
--agentflags now process all agents (--agent claude --agent codex) - Fixed shell alias recursion in doctor.rs
Install
cargo install lean-ctx
# or
brew upgrade lean-ctx
# or
yay -S lean-ctxFull changelog: https://github.com/yvgude/lean-ctx/blob/main/CHANGELOG.md
Full Changelog: v2.1.3...v2.2.0