LeanCTX documentation
LeanCTX is the Context Gateway for AI systems.
It sits between AI and the systems it reads. It selects relevant context, applies supported controls, and records what the integration can observe.
Select. Control. Prove.
What is LeanCTX?Connect your AI tool.
Install on your system, connect your AI tool and verify your first read.
Get started Build with LeanCTXBuild with the SDK.
Embed supported context selection, controls and evidence. Your host owns model calls; Python continuity handoffs remain Preview.
Explore the SDKSee the difference
Choose your read depth.
Start with the API surface. Recover the full implementation when the task needs it.
With LeanCTX installed, replace the path with a file in your project.
Understand read modes# Inspect the API surface
lean-ctx read src/main.rs -m signatures
# Read the full source
lean-ctx read src/main.rs -m full --freshTwo views of the same file. On Windows, macOS or Linux.
Learn the essentials
Learn the core capabilities.
Connect evidence, control input and execution, then evaluate and reuse the result.
Read & shape
Find the right source. Choose the detail your task needs.
Protect & filter
Set access boundaries and configure read-time checks.
Remember & reuse
Carry selected knowledge into the next task.
Measure & evaluate
Inspect delivery, token reduction and their limits.
Govern execution
Set allowed routes, budgets, retries and organizational policies.
Local coordination & Research
Local task ownership and bounded work graphs support coordination. Broader multi-agent orchestration remains a Research capability.
Open the dashboard
Inspect local activity, context and project signals.
Index & search
Prepare your codebase for lexical, graph and semantic retrieval.
Go straight to the source
Find the exact reference.
Find exact schemas and versioned runtime help alongside the shared Engine concepts.