Your AI coding agent,
minus the token bill.
LeanCTX is the local binary that makes your coding agent read less and remember more: 60–90% fewer tokens, re-reads that cost about 13 tokens, and project memory that survives restarts. Free forever, no account, runs on your machine.
What burns your token budget.
On a personal project, every wasted token is your money. Three quiet leaks add up fast.
Re-reading the same files
Each turn, your agent reads files it saw a minute ago — and you pay full price for that context again.
Long sessions drift
As the context window fills, agents quietly drop what they read and answers get worse without warning (Claude Code #42542).
The bill scales with ambition
The more you build, the more raw output, search results and file reads flood the window, and the bigger your monthly bill.
How it makes your agent lean.
One small Rust binary runs the same loop on every read, command and search, locally, with no change to your editor.
It sits between agent and files
Every read, search and shell command your AI runs passes through lean-ctx first, on your machine. Your editor, agent and workflow stay exactly the same.
It returns structure, not noise
tree-sitter parses the file across 26 languages and returns a map or signatures, the shape the model actually needs. Ten read modes pick the right depth per task.
The second read is free
Every read is cached by content hash, so an unchanged file comes back in about 13 tokens instead of thousands.
It remembers your project
Findings, decisions and touched files are saved and auto-restored into your next session, so you never re-explain context after a restart.
From install to proof in five commands.
No config files, no account. Install it, point your tools at it, and watch the tokens drop.
What changes for you.
Four outcomes you feel from the first session: measured, local, and free.
60–90% fewer tokens
Per read, every read, measured on your own repo with lean-ctx benchmark, not estimated.
Sessions that stay sharp
The window fills with signal, so long sessions stop drifting and silently degrading mid-task.
Nothing leaves your machine
One local binary. Your code and prompts never reach a third-party service.
Free forever
Every local feature ships under Apache-2.0: open, inspectable, and yours to keep.
Every local feature is free forever, enforced by a public CI gate. Building with others? See LeanCTX for teams or compare the plans.
Builders, answered.
Is it really free?
Yes. Every local feature is Apache-2.0 and free forever, and a public CI gate fails the build if any local capability moves behind a paywall. Paid plans only add optional cloud sync.
Do I need an account?
No. LeanCTX runs entirely on your machine: no signup, no API key, and no telemetry unless you turn it on.
Will compression hurt my code?
No. tree-sitter parses structure before anything is dropped, and compressed output is only used when a composite quality score stays at or above 95% (AST, identifier and line preservation). Run lean-ctx benchmark report . to verify on your own repo.
Which tools does it work with?
Anything that speaks MCP (Model Context Protocol), 30+ today, plus a shell hook for the rest. One lean-ctx setup detects and configures them.
From solo builders toregulated fleets.
Builders
Solo developers and indie hackers who want their agent to read less, remember more, and stop burning tokens — on one local binary, free forever.
Local-free · 60–90% fewer tokens Explore BuildersTeams
Engineering teams that need a shared, audited context plane: consistent reads, pooled memory, and per-role budgets across every agent and IDE.
Shared memory · per-role budgets Explore TeamsEnterprise
Security and platform leaders who must prove what agents touched: SSO, fleet policies, signed evidence, and air-gapped, local-first by default.
SSO · policy packs · evidence bundles Explore EnterpriseFive minutes to a leaner agent.
One Rust binary. No cloud, no account, Apache-2.0. Your next session reads leaner, and the ledger keeps the receipt.