Cached reads
An unchanged repeat may return a compact reference. Use fresh when you need to bypass the read cache; fresh does not itself select an exact-text mode.
Explore this capabilityContext Control
Turn available sources into deliberate model input. Choose relevant material, set the read depth and work within your context budget. Keep references to the original.
The approach
A task needs evidence, not every available file. LeanCTX gathers permitted candidates, preserves their origin and prepares a context plan within the requested budget.
Task & budget
Describe the question and the space available for context. A coding task may need one implementation; a support task may need a current procedure. The plan selects for that task, within its permitted source scope.
Search & provenance
Start with the evidence selected for your task. Keep each source reference attached as LeanCTX compiles the chosen material into model context. Follow the source trail when a result needs more explanation.
Detail & recovery
Use signatures to locate code, line ranges to inspect it and full text for exact edits. Further reads follow the same access rules.
Excerpt from the captured signature view
The implementation is one targeted read away.
export function fmtUsd(value: number): string {
const n = Number(value) || 0;
return (
'$' +
n.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
);
}Exact implementation from the same source file.
The read-mode toolkit
Go from orientation to exact lines, compare changes or choose a more compact representation. Open a group to find the mode and its trade-off.
auto · map · signatures · referenceautomapsignaturesreferencefull · raw · anchored · linesfullrawanchored · anchored:72-92lines:72-92 · lines:5,10-20 · lines:-20task · aggressive · entropy · densitytaskaggressiveentropydensity:0.40diffdiffcognitive · mdlcognitivemdlfull-compactfull-compactFormat-aware preparation
Code has structure. Command output has results, errors and repeated noise. LeanCTX uses the appropriate view or output filter for supported formats, with references for recovering detail when needed.
In your workflow
The first read is only part of the workflow. LeanCTX also manages repeated reads, source references and archived output.
An unchanged repeat may return a compact reference. Use fresh when you need to bypass the read cache; fresh does not itself select an exact-text mode.
Explore this capabilityRecover a retained source or shell archive when a shortened result is not enough. Availability and retention determine what can be recovered.
Explore this capabilityQuestions & answers
Exact text search and indexed retrieval are different paths. Semantic search depends on configured indexes; a direct text match can be a better starting point when you already know a symbol or phrase.
No. Signatures help locate code; changing it can require the exact implementation. Choose a more detailed read when needed and verify the result of the task.
No. The public Engine works deterministically. Optional intelligence can propose better selections or routes after verification, but your host and policy retain authority. If it is unavailable or rejected, the deterministic path remains usable.
Start with LeanCTX
Try a signature view on a familiar file. Follow the reference and read the implementation when you need it.
Local-first. Model-agnostic. Your context.
Cookie settings
Your privacy. Your choice.
We use essential storage for site settings. With your permission, PostHog EU measures page visits to help us improve LeanCTX. No advertising or session recordings.
Essential
Theme, consent choice and account functionality.
Analytics
Optional page analytics · PostHog EU, Frankfurt. Off until you allow it.
Change your choice anytime in Cookie settings.