Lean-ctx
Optimizes AI coding workflows by transparently reducing LLM token consumption up to 99% through context compression and an intelligent server.
Lean-ctx is designed to drastically cut LLM token costs for developers using AI coding assistants such as Cursor, Claude Code, GitHub Copilot, Windsurf, and Gemini CLI. It operates transparently between your AI tool and the large language model, implementing a multi-pronged approach that includes a shell hook for compressing CLI output (over 90 patterns), a sophisticated context server offering 28 intelligent tools for optimized context delivery, and AI tool-specific integration hooks. This innovative system compresses code and command outputs by up to 99%, making AI coding significantly faster, more cost-effective, and efficient without requiring workflow changes.