lean-ctx — Summary
lean-ctx (Lean Cortex) is a single Rust binary with 62 MCP tools that compresses AI agent context at three layers: file reading (10 compression modes, tree-sitter AST for 18 languages, cached re-reads at ~13 tokens), shell output (60+ pattern modules for git/npm/cargo/docker/kubectl), and session memory (CCP — context-carry protocol across chats). Its own benchmark shows 83.6% session savings without CCP and 84.7% with CCP; map mode achieves 96% compression on Rust files. README claims "up to 99%" and "60-99% compression on shell output."
It ships lean-ctx setup (one-command install of shell hook + editor wiring + rules + skills), a browser-based Context Manager dashboard, a lean-ctx gain --live real-time savings counter, a SKILL.md that mandates replacing native Read/Grep/Bash with ctx_read/ctx_shell/ctx_search, multi-agent tools (ctx_agent, ctx_handoff), LSP refactoring (ctx_refactor), and cryptographic context proofs (ctx_proof, ctx_verify).
Compared to seeds, lean-ctx is closest to ccmemory (MCP memory layer) but is broader: it compresses every tool interaction (not just session memory), ships 62 tools (vs ccmemory's ~10), targets 23+ AI clients (not just Claude Code), and adds real-time observability. The SKILL.md's "CRITICAL: NEVER use native Read, Grep, or Shell directly" is the most aggressive tool-replacement mandate in this batch.