Caveman 5.0.0 ships the v5 max-savings compression runtime: embedded pure-Go trim-2 hybrid compression with Edit-safe smart_max routing as the default compress preset, cross-turn shingle delta compression and provider-aware TTL-aware aged epoch compaction, full multi-provider parity across Anthropic, OpenAI/Codex, Gemini, AWS Bedrock, and GCP Vertex (including WebSocket /v1/responses & /chatgpt/responses compression and non-proxy trim-2 in Code Mode and native hooks), and a typed HarnessAdapter architecture across all 10 supported coding agents.
New
Pure-Go trim-2 hybrid compression & smart_max default (savings_profile: max) (#1616)
- Embedded pure-Go
trim-2adds a self-contained line scorer directly inside the Go runtime (engine/trim2) with Edit-span contiguity preservation and deterministic routing across levels (off,safe,balanced,max,smart_max,auto). smart_maxis the default incompressmode: code and diff payloads route through Edit-safebalancedtrimming while non-code outputs (logs, search results, prose, tool output) route throughmaxtrimming, with every elided payload stored in CCR for exact recovery before emission.savings_profile: maxdefault enables the full cache-safe stack out of the box (toolschema_strip: shrink, canonical tool ordering, MCP tool deferral, Anthropicclear_thinkingand split 1h/5m cache TTL, local turn-effort stepping, and Gemini per-turn thinking budgets) while scopingPrefixCachekeys by effective trim level so prefix caches stay byte-stable.
Cross-turn shingle delta & TTL-aware aged epoch compaction (#1616)
- Shingle delta compression (
delta.go) detects repeated line blocks across turns and collapses already-seen spans to recoverable references without mutating the cached prompt prefix. - Provider-aware aged epoch compaction (
epoch.go) tracks provider prompt-cache TTL windows and compacts superseded commands, repeated reads, and agedWrite/Edittool_use.inputpayloads into compact CCR-recoverable stubs once a prefix window expires, validated byTestCacheEconomicsGate.
Multi-provider, WebSocket, and non-proxy parity (#1616)
- WebSocket Responses compression: RFC 6455
response.createframes on/v1/responsesand/chatgpt/responsesnow pass through the same compression pipeline as HTTP requests. - AWS Bedrock & GCP Vertex parity: Bedrock Converse, Bedrock Anthropic
/invoke(while remaining fail-closed on non-Anthropic vendors andcount-tokens), and Vertex requests share the unifiedgateway/pipeline.gotransform pipeline and 8-provider adapter conformance suite (TestProviderAdapterConformanceContract). - Non-proxy
trim-2rollout:caveman-mcp codemodeexecution outputs andnativeruntimeinline hooks now apply the same CCR-backedtrim-2hybrid compression.
Typed HarnessAdapter architecture for all 10 agents (#1613, #1617)
- Extracted typed, testable
HarnessAdaptermodules (packages/cli/src/harnesses/) coveringaider,claude,codex,gemini,hermes,kilo,openclaw,opencode,pi, andqwenbehind a shared contract test suite. - Hardened config path handling: preserves symlink semantics in
OPENCLAW_CONFIG_PATH, rejects control characters/newlines in Kilo overrides before trimming, keeps exact nonempty profile overrides for Claude and Gemini, and parses multiline TOMLargsarrays in Codex config validation.
Fixed
- Security: bumped
github.com/gobwas/wstov1.5.0to resolveGO-2026-6940(#1614). - Hooks & hygiene: bounded
SessionEndstats parsing, enforced release-tag pins inREADME.md/INSTALL.mdagainstplugin.jsonand@caveman-ai/cli, and added agent profile drift classification (#1612). - Code Mode & Pi: added OpenCode V2
mcp.serversmasking, Hermes flow-style YAML support, compound write-verb mutation classification, and parsed-hostname matching in@caveman-ai/pi.
Maintenance
- Binaries:
bin-v5.0.0. CLI:@caveman-ai/cli5.0.0.