lean-ctx 3.9.2

Context Runtime for AI Agents with CCP. 71 MCP tools, 10 read modes, 95+ compression patterns, cross-session memory (CCP), persistent AI knowledge with temporal facts + contradiction detection, multi-agent context sharing, LITM-aware positioning, AAAK compact format, adaptive compression with Thompson Sampling bandits. Supports 24+ AI tools. Reduces LLM token consumption by up to 99%.
Documentation
1
2
3
4
5
6
7
8
9
10
11
# Provider prompt caching

Provider-side prompt caching rewards byte-stable prefixes. Anthropic bills cached
input tokens at a 90% discount versus fresh input, while OpenAI bills cached input
at roughly a 50% discount. lean-ctx keeps the carried conversation prefix
byte-identical across turns so the bulk of a long session is billed at the cheap
cached rate instead of the full input price.

This is why output determinism matters commercially: any timestamp or counter in a
tool-output body would change the bytes, break the cache key, and forfeit the
discount on every following turn.