Skip to content

Caveman 5.0.0

Latest

Choose a tag to compare

@JuliusBrussee JuliusBrussee released this 29 Nov 11:20
· 1 commit to main since this release
v5.0.0
4df9715

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-2 adds 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_max is the default in compress mode: code and diff payloads route through Edit-safe balanced trimming while non-code outputs (logs, search results, prose, tool output) route through max trimming, with every elided payload stored in CCR for exact recovery before emission.
  • savings_profile: max default enables the full cache-safe stack out of the box (toolschema_strip: shrink, canonical tool ordering, MCP tool deferral, Anthropic clear_thinking and split 1h/5m cache TTL, local turn-effort stepping, and Gemini per-turn thinking budgets) while scoping PrefixCache keys 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 aged Write/Edit tool_use.input payloads into compact CCR-recoverable stubs once a prefix window expires, validated by TestCacheEconomicsGate.

Multi-provider, WebSocket, and non-proxy parity (#1616)

  • WebSocket Responses compression: RFC 6455 response.create frames on /v1/responses and /chatgpt/responses now 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 and count-tokens), and Vertex requests share the unified gateway/pipeline.go transform pipeline and 8-provider adapter conformance suite (TestProviderAdapterConformanceContract).
  • Non-proxy trim-2 rollout: caveman-mcp codemode execution outputs and nativeruntime inline hooks now apply the same CCR-backed trim-2 hybrid compression.

Typed HarnessAdapter architecture for all 10 agents (#1613, #1617)

  • Extracted typed, testable HarnessAdapter modules (packages/cli/src/harnesses/) covering aider, claude, codex, gemini, hermes, kilo, openclaw, opencode, pi, and qwen behind 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 TOML args arrays in Codex config validation.

Fixed

  • Security: bumped github.com/gobwas/ws to v1.5.0 to resolve GO-2026-6940 (#1614).
  • Hooks & hygiene: bounded SessionEnd stats parsing, enforced release-tag pins in README.md/INSTALL.md against plugin.json and @caveman-ai/cli, and added agent profile drift classification (#1612).
  • Code Mode & Pi: added OpenCode V2 mcp.servers masking, 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/cli 5.0.0.