Skip to content

Caveman 5.1.0

Latest

Choose a tag to compare

@JuliusBrussee JuliusBrussee released this 30 Nov 05:32
· 1 commit to main since this release
v5.1.0
35c0b30

Caveman 5.1.0 hardens trim-2, proxy prefix caching, and caveman_retrieve recovery across real multi-turn coding and knowledge-work sessions — cutting unnecessary recovery loops with deterministic verified omission summaries, multi-language/UI/SQL/HCL/diff/prose unit pooling, and fail-open verbatim code fallback. Across a new reproducible 32-task wrapped Claude Code benchmark (claude-sonnet-5-5, Direct vs Caveman, fail-closed full-file review and all recovery calls included), Caveman cuts total session cost by 42.9% ($1.6615 → $0.9482), session input tokens by 16.3% (2,447,108 → 2,047,020, 95% CI 5.1%–26.6%), and provider cache-write tokens by 57.2% (497,432 → 212,966) while passing 32/32 tasks with 0 cache busts and 0 recoveries across all 27 SWE tasks.

New

Verified omission summaries & multi-domain trim-2 unit pooling (#1623)

  • Deterministic verified annotations (engine/trim2/annotate.go): active trim-2 runs summarize folded spans with verified facts (0 errors/warnings, folded symbol ranges, diff file lists, Markdown headings, YAML keys) plus a 1-line contract note so agents answer directly without unneeded caveman_retrieve round trips.
  • Broad language and document coverage (engine/trim2/units.go, semantic.go): adds declaration/unit pooling, rare-symbol pinning, and boilerplate template folding across Go, Python, Rust, React/TSX, CSS, SQL, Terraform HCL, git diffs, and Markdown prose.
  • Reproducible 32-task Direct vs Caveman benchmark (benchmarks/trim2-bench/): exercises real caveman-proxy, caveman-mcp, and codemode binaries across 26 coding & infrastructure tasks, 5 non-SWE tasks (legal, finance, SecOps, support, data science), and 1 fail-closed full-file review control (32 total), with committed live (claude-sonnet-5-5, benchmark_counterfactual) and offline wire (o200k_base, inferred, 85.7% wire cut) reports.

Fixed

  • Proxy prefix-cache & cross-session safety (proxy/internal/gateway/, proxy/internal/standalone/): scoped PrefixCache per session/conversation and hardened parallel tool-result and <system-reminder> handling for 0 cache busts and 0 cross-session poisoning (#1623).
  • Fail-open verbatim code fallback (proxy/internal/standalone/standalone.go): when trim-2 declines to trim a code payload, passes the original verbatim instead of falling back to query-agnostic body elision (mirrored in EstimateSegmentRichQuery) (#1623).
  • Claude Code Read gutter handling (engine/trim2/trim.go, engine/retrieve_query.go): strips N→ line gutters before shape classification, template counting, and caveman_retrieve(query=...) section splitting (#1623).
  • Config parser guard (engine/compressors/config.go): prevents Markdown documents with subheadings from being misclassified as YAML configs (#1623).
  • CodeMode MCP & shape/refusal guards (mcp/codemode/, engine/trim2/): preserves valid JSON structure on oversized CodeMode tool outputs and keeps exhaustive/line-by-line review requests fail-closed (#1623).

Docs & Maintenance

  • Documented the trim-2 architecture and v5 compress-mode defaults (trim-2, compress mode) and updated README.md with the 32-task Direct vs Caveman results (#1620, #1623).
  • Binaries: bin-v5.1.0. CLI: @caveman-ai/cli 5.1.0.

Read more