Skip to content

v2.0.0 — Context Continuity Protocol (CCP)

Choose a tag to compare

@github-actions github-actions released this 25 Mar 15:04

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 filtering
    • lean-ctx sessions — List, show, and clean up CCP sessions
    • lean-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

Website · Discord · Buy me a coffee