Ground Truth.
AI, checked against the source.

News · 2026-12-01

Caveman 5 shifts coding-agent token savings from shorter replies to shorter inputs

Caveman’s fifth major release moves its cost-saving focus from asking coding agents to write shorter replies to feeding them less tool output and stale context. Its local trim-2 model selects lines relevant to the current request, while saving omitted text for exact retrieval; the project’s benchmark savings remain preliminary rather than independently established production results.

Key facts

Coding agents often receive far more text than a human would read: command output, test logs, file contents, diffs, and earlier turns. Caveman describes its original feature as “Say Less,” reducing the words the agent produces. Version 5 adds “Read Less,” filtering tool output before the agent sees it. The local model scores lines using lexical, structural, code, and log features, then chooses a subset under a token budget. Retained lines stay unchanged and in order; omitted regions are marked, with originals saved so a client can retrieve them exactly.

A useful analogy is a mechanic’s workbench with a labeled parts tray. The agent sees the parts most likely to matter for the current repair, while the omitted pieces remain in a drawer. This can reduce the immediate context bill, but it does not guarantee the mechanic knows a needed piece is missing. Retrieval is a safety net that depends on the model recognizing uncertainty and asking for more. This resembles selective context expansion, where a system retrieves extra detail only when needed. The system is not a conventional summarizer: it preserves selected lines verbatim and records omission boundaries.

The project describes trim-2 as two gradient-boosted tree ensembles. One scores individual lines; another adds document-wide ranking and neighborhood signals. A dynamic program chooses lines while accounting for token costs and omission markers. Rails preserve high-scoring content such as block headers and error patterns. According to Caveman’s documentation, the runtime is pure Go, has no network access, and does not read local files at runtime. The project says the embedded trim-2 model is 3.6 megabytes.

Caveman’s user-facing package also includes automatic model and effort routing, reusable code-mode scripts called Blocks, token-waste diagnostics, and compressed browsing. Its documentation marks Blocks as pre-release, Python-only, and without a sandbox; it also marks Waste Fixes as unmeasured. A small example shows a test summary shrinking from 397 tokens to 76, while another grep example uses more tokens than ordinary grep. Those details show why a feature list should not be mistaken for a uniform savings guarantee.

The release notes point to a 32-task comparison and a separate 85-task Auto-routing comparison. The former is a small project-run evaluation; the latter is a different experiment against Opus at xhigh and is not a direct extension of the same test. JetBrains’ independent study evaluated Caveman’s earlier shorter-reply skill, not the new tool-output compressor: over 82 clean pairs it found 8.5% fewer output tokens without a statistically detectable score difference, but the full run cost 11.6% more because of one expensive outlier. That evidence cautions against reading a token reduction as a guaranteed bill reduction or quality-neutral result.

Privacy boundaries matter because “local” describes only some processing. The project says its local proxy sees prompts, tool output, source, credentials, and browser state, while normal model requests still go to the selected provider. It says telemetry is enabled by default and includes commands, token counts, a random install ID, operating system, and IP, but not prompts or code. Auto routing is a separate cloud flow that sends selected conversation context; if a Caveman-hosted model is selected, the full request passes through Caveman Cloud. These are project disclosures, not independent traffic audits.

The strongest counterargument is that line selection can lose context in ways a model may not detect, and the project’s task set may not represent real workloads. The stronger product response is that omitted content remains retrievable rather than being irreversibly summarized. Readers can inspect the release, technical design, and privacy guide. The JetBrains evaluation tests a different feature. The practical question is whether downstream agents detect missing context reliably across ordinary coding sessions.


Primary source, verified: read the paper →

Key questions

What changed in Caveman 5 compared with its earlier token-saving approach?

The fifth major version adds input reduction: it scores and trims tool-output lines before they reach the coding model, in addition to the earlier feature that encourages shorter agent replies.

Does Caveman permanently discard the lines it removes?

The project says omitted spans are saved and can be retrieved exactly later, but the model still has to notice a gap and request the missing material.

Are the reported token savings independently verified?

No. The project’s small task-set results are preliminary, while JetBrains separately tested the earlier shorter-reply skill and found volatile cost outcomes.
Cite this

APA

Ground Truth. (2026, December 1). Caveman 5 shifts coding-agent token savings from shorter replies to shorter inputs. Ground Truth. https://groundtruth.day/news/caveman-5-tool-context-compression-agent-release.html

BibTeX

@misc{groundtruth:caveman-5-tool-context-compression-agent-release,
  title  = {Caveman 5 shifts coding-agent token savings from shorter replies to shorter inputs},
  author = {{Ground Truth}},
  year   = {2026},
  month  = {dec},
  url    = {https://groundtruth.day/news/caveman-5-tool-context-compression-agent-release.html}
}

Topics: coding-agents · open-source · inference-costs · privacy

Comments are replies to this story on Bluesky — reply with any Bluesky account to join in.