Your agent rereads the same files all day
Every prompt re-feeds the same modules. Raw reads dump 4,200 tokens when ~920 carry the signal. Tomorrow it reads them again.
Use case · AI coding agents
LeanCTX cuts AI coding-agent token usage by 60–90% by deciding what gets read: AST-aware read modes return signatures instead of full files, cached re-reads cost ~13 tokens, and 95+ shell patterns compress command output. Works with 30+ tools (Cursor, Claude Code, Codex, Copilot) via one lean-ctx setup.
Same engine. Different workflow. Always the right context.
Every prompt re-feeds the same modules. Raw reads dump 4,200 tokens when ~920 carry the signal. Tomorrow it reads them again.
One cargo build or npm install can burn thousands of tokens on progress bars and warnings your model never needed.
Context-rot research shows model accuracy dropping from 98% to 64% as windows fill with noise. More context is not better context.
Everything below ships in the open-source binary today. No roadmap items, no waitlists.
map, signatures, diff, entropy and more. AST-aware via tree-sitter, 26 languages
cached re-reads cost ~13 tokens instead of the whole file
cargo, npm, docker, tsc, pytest… compressed to errors + results
Cursor, Claude Code, Codex, Copilot, Windsurf, Cline. One setup command
shows exactly what you saved, from your signed local ledger
$ curl -fsSL https://leanctx.com/install.sh | sh$ lean-ctx setup$ lean-ctx doctor$ lean-ctx gainInstall → setup → doctor → first measured gain.
Learn moreA full working day with LeanCTX in your editor.
Learn moreGraph, symbols and AST-powered navigation.
Learn moreEvery mode, when it triggers, what it returns.
Learn moreMeasured on real repo operations: 60–90% fewer tokens per read, ~13 tokens for cached re-reads, and 88–99% on shell output. Run lean-ctx benchmark report . to reproduce the numbers on your own repository.
No. After lean-ctx setup, your AI tool calls LeanCTX automatically via MCP or shell hooks. You keep your editor, your agent and your workflow. The context layer works underneath.
No, and nothing is ever lost. AST-aware modes keep signatures and structure, and every original stays locally retrievable via ctx_retrieve. Smaller context typically improves answers: context-rot research shows accuracy falling as windows fill with noise.
Free for local use, forever. CI enforces it. One binary, ten minutes to the first measured gain.
Cookie preferences
We use analytics to understand how our site is used. You choose what's allowed — no tracking runs until you decide.
Essential
Site functionality, security, preferences
Analytics
Pageviews & usage patterns · PostHog EU (Frankfurt) · No cross-site tracking
Read our Privacy Policy for full details. You can change your preferences anytime.