LeanCTX adds bidirectional context compression
LeanCTX is a local-first Rust context layer that compresses repository reads, shell output, searches, and model-bound requests. It combines AST-aware reduction with persistent memory, secret redaction, and savings measurement across AI coding workflows.
LeanCTX’s strongest idea is treating context as infrastructure, not prompt decoration: control what enters the model, what leaves for the provider, and what survives between sessions.
- –Read-side compression uses structural analysis and multiple modes to reduce repetitive code context.
- –Wire-side compression targets system prompts, conversation history, and tool results before they reach providers.
- –Local execution and reversible retrieval address privacy and the risk of compression hiding critical details.
- –Persistent memory and cross-agent coordination make it more useful for large, iterative repositories than one-off scripts.
- –Developers should validate quality and savings on their own workloads; compression gains depend heavily on codebase shape and workflow.
DISCOVERED
55m ago
2026-08-27
PUBLISHED
1h ago
2026-08-27
RELEVANCE
AUTHOR
DIY Smart Code