v3.6 Optimize ships three compounding improvements: intelligent semantic caching with learned thresholds, extractive prompt compression that preserves code structure, and prefix-aligned KV-cache maximization.
Unlike global-threshold semantic caches that get hijacked (a 0.95 similarity score that works for code fails catastrophically for names), v3.6 learns per-prompt similarity thresholds from your actual usage. After 10 uses of a prompt pattern, the cache knows the safe similarity floor for that specific prompt type.
Extractive compression for code and JSON preserves function signatures, class names, and keys — the structural skeleton — while compressing verbose implementations. The result is byte-exact reversible: decompress and you get the original, bit for bit.
Anthropic's KV-cache gives a 90% cost discount on repeated prompt prefixes. v3.6 automatically reorders your context to maximize prefix stability — frequently-used system prompts and memory summaries go first, variable content last. The provider charges full price for the first call; subsequent calls with the same prefix cost 10%.
Zero-migration upgrade from any v3.5.x release. pip install -U superlocalmemory
One upgrade. Three compounding improvements. $0 on every cache hit starting tonight.