v2.0.0 — Context Continuity Protocol (CCP)
Context Continuity Protocol (CCP) — Cross-Session Memory for AI Coding
lean-ctx v2.0.0 introduces the Context Continuity Protocol (CCP) — a cross-session memory system that persists your coding context across chats, context compactions, and IDE restarts.
Highlights
- Context Continuity Protocol (CCP): Persists task, findings, decisions, and files touched as JSON in
~/.lean-ctx/sessions/. Automatically loaded into every new conversation. - LITM-Aware Positioning: Critical context is placed at the beginning and end of the LLM's context window — where attention is highest — based on "Lost in the Middle" (LITM) research. This avoids the degradation zone in the middle of long contexts.
- 2 New MCP Tools (21 total):
ctx_session— Cross-session state management (status, load, save, task, finding, decision, reset, list, cleanup)ctx_wrapped— Shareable "Spotify Wrapped"-style savings report
- 3 New CLI Commands:
lean-ctx wrapped— Generate shareable savings reports with period filteringlean-ctx sessions— List, show, and clean up CCP sessionslean-ctx benchmark— Reproducible performance comparison vs. raw, .cursorrules, and no-CCP baselines
- Reproducible Benchmark Engine: Quantifiable comparisons with cold-start, session-resume, and LITM scenarios
Install / Upgrade
cargo install lean-ctx # from crates.io
brew upgrade lean-ctx # Homebrew
yay -S lean-ctx # AUR (source)
yay -S lean-ctx-bin # AUR (binary)Full Changelog
See CHANGELOG.md for the complete list of changes.
21 MCP tools | 90+ shell patterns | Cross-session memory | LITM-aware | Single Rust binary | MIT Licensed