LeanCTX

Thinkery AG·Thinkery.LeanCTX

Context gateway for AI systems that selects and compresses the context an agent reads before it reaches the model.

LeanCTX sits between AI tools and the information they read. It selects task-relevant context, applies access and content controls before delivery, and records the context operations and delivery evidence it can observe. The open-source build runs locally through the command line, MCP, hooks and proxy paths, and leaves the agent loop and the model to you.

winget install --id Thinkery.LeanCTX --exact --source winget

Latest 3.12.12·December 4, 2026

Release Notes

Security

  • Allowing inline scripts counts as lowering protection. shell_allow_inline_scripts lets ctx_shell run code such as python3 -c that leaves no file to audit. A Security Center plan that turns it on now asks for confirmation, like shell_allow_writes, and the setting is shown with the other shell protections. Changed
  • The full-output marker names the file-read tool first (#2284). A shortened result now says "open it with a file-read tool or cat it", so an agent tries its own read tool before a shell command. Fixed
  • Six more config keys are described in the schema (#2283). annotation_threshold_pct, compression_annotation, progressive_signatures_max, proxy_allowed_hosts, shell_allow_inline_scripts and shell_heavy_prefixes were read by the loader but had no schema entry. config set now accepts them, and the configuration reference describes them.
  • A full-output copy under a path with spaces is read whole too (#2284). When lean-ctx's state lies below a folder with a space (a home such as /Users/My Name, or Application Support), the marker names the copy in quotes; a cat of that quoted path was still shortened. Quoted and backslash-escaped paths are now recognized like plain ones.
  • A full-output copy read through the MCP tools comes back whole (#2284). A cat of the copy a marker names, run through ctx_shell or ctx_call, was still cut by the 4096-token turn budget and pointed at another copy. Such a read now gets the verbatim budget, like ctx_expand.
  • Parallel Cloud state updates no longer give up on a busy lock. Threads of one process that update the same Cloud state file now wait in arrival order, and only give up when the queue stops moving for the whole wait. Many quick updates in a row on slow Windows disks no longer fail the last one with "lock still held". Upgrade lean-ctx update # recommended (auto-downloads + refreshes shell hooks) cargo install lean-ctx # or npm update -g lean-ctx-bin # or brew upgrade lean-ctx Note: After upgrading via cargo/npm/brew, run lean-ctx setup to refresh shell aliases. lean-ctx update does this automatically. Full Changelog: https://github.com/yvgude/lean-ctx/compare/v3.12.11...v3.12.12

Installer type: zip

x64—A191FB7317CEBDA08AC797A1F0B634F430DE94E07076A68822DD69C32FA4C2C9

Details

Homepage
https://leanctx.com/
License
Apache-2.0
Publisher
Thinkery AG
Support
https://github.com/yvgude/lean-ctx/issues
Privacy Policy
https://leanctx.com/privacy/

Tags

agentagenticaichatbotcodecodingcontextlarge-language-modelllmmcpprogramming

Older versions (1)

3.12.11
x64—FA8963E4D145E7CFABE8712B7D47CE1ABEA3180BB673E52328E1295922F2DCE7