Overview of LeanCTX
mainLeanCTX (Lean Context) is a context engineering layer for AI agents designed to optimize how agents interact with code, shell, and data. It acts as a local Rust binary that sits between your agents and their environment to:
- Decide what agents read.
- Compress data sent to models (system prompts, history, and tool results) to be prompt-cache-safe, reducing token usage by 60–90%.
- Remember learned information via persistent session memory.
- Guard access to sensitive data.
- Verify saved information with a signed, verifiable savings ledger.
It is model-agnostic and works with existing agents like Cursor, Claude Code, Copilot, Windsurf, Codex, and Gemini without requiring configuration changes.