What Is Caveman 5 Trim 2? Rocks and Recovery Store Explained
Caveman 5 shifted from saying less to reading less. Learn how the 3.6 MB Trim 2 model, six rocks and the recovery store shrink what coding agents read.
For Engineering

What is Caveman 5, and what are Trim 2 and the rocks?
Caveman 5 is a release of an open source project that began as a joke: make your coding agent talk like a caveman to save tokens. Version 5 changes the goal. Instead of only making the agent say less, it now mostly makes the agent read less. "Rocks" are its six add-on parts. Trim 2 is a small 3.6 MB model inside the "read less" rock. It keeps only the tool output lines that answer your question and stores the rest on your disk.
TL;DR
- Caveman began as a joke project to save tokens, and version 5 moves its focus from shorter answers to shorter inputs.
- A JetBrains test on 86 real coding tasks found the caveman voice cut output tokens by only 8.5%, because most agent tokens are things the agent reads, not things it writes.
- The project now has six "rocks": say less, read less, auto, blocks, wastefixes and browse.
- Trim 2 is a local 3.6 MB model built from two forests of decision trees, not an LLM. It keeps relevant lines word for word and in order.
- Dropped lines go into a recovery store on your disk, and the agent can fetch any of them back with one tool call.
- In a 32-task test the session cost fell 42.9% with all tasks still passing, but that was one run per task on one model, so your results will differ.
- It sends usage stats by default, and the auto router sends parts of your conversation to Caveman Cloud. Both can be switched off.
Why wasn't making the agent talk less enough?
Because the agent's own words are a small part of the bill. Caveman got plenty of outside attention this year. Adobe Research wrote a paper on caveman-style output and reported cost cuts of 1.4 to 2.4 times across eight models. Elastic rebuilt the idea for Elasticsearch and reported 63.6% fewer response tokens.
JetBrains then ran an A/B test on 86 real coding tasks. Quality did not drop, which is good news. But output tokens fell only 8.5%.
The reason is how agent sessions work. The bulk of the tokens are code, tool calls, logs and test output that the agent reads. On top of that, agents resend their whole history on every turn, so a big chunk of log output gets paid for again and again. A shorter voice touches only a thin slice.
Adobe also found a limit on the other side: if you compress your own prompt in caveman style, answers get worse. So Caveman leaves your prompt alone and goes after what the agent reads instead.
What are the six rocks?
Each rock is a separate part with its own switch. All six are on after install.
| Rock | What it does |
|---|---|
| Say less | The caveman voice for the agent's replies |
| Read less | Shrinks tool output before the model sees it (home of Trim 2) |
| Auto | Picks the model and effort level for each request |
| Blocks | Saves scripts the agent keeps rewriting |
| Wastefixes | Finds where your tokens are going |
| Browse | Gives the agent compressed web pages |
Install is one command through npx. It needs Node 22.3 or newer and works on Mac, Linux and Windows. It finds the agents on your machine, shows what it will change, and waits for you to press enter. It covers Claude Code, Codex, Gemini CLI, OpenCode and about 30 more agents. It runs locally with your own keys or your Claude Pro or Max login. If you want only the voice, there is a separate skill install with no proxy.
How does Trim 2 decide which lines to keep?
Trim 2 reads your question, then reads each tool result, and keeps only the lines that help answer it. The kept lines are identical to the original and stay in the same order. Nothing is rewritten or paraphrased.
It is not a language model. It is two forests of decision trees, which are simple yes/no scoring rules stacked together:
- The first forest has 701 trees. It scores each line on 134 features. One feature is matching name fragments, so a line containing
ledgerclient.chargescores well against a question about the ledger client. - The second forest has 641 trees. It looks at how each line scored compared with the lines around it, using 174 features in total.
Because it is small and local, it runs fast on your own machine.
A worked example
The project's launch post uses a Kubernetes log with 404 lines. Four hundred say a checkout request was served in a few milliseconds. One says the payment client hit a ledger database timeout after 30 seconds. You ask why the payment failed.
Without trimming, the full log goes to the model, then goes again on every later turn. Trim 2 keeps nine lines: the error, the stack frame under it, and a few requests on each side so the model can see when it happened. That comes to 216 tokens.
Here is the honest part. On this exact log, Caveman's older log compressor does better, at 169 tokens, because 400 lines share one template with different numbers. So in version 5.0 the proxy runs both methods and sends whichever is smaller. Trim 2 is for what the older tools can't handle, like build logs where every line is different, or grep results spread across 40 files.
What is the recovery store?
The recovery store is what makes aggressive trimming safe. Lines Trim 2 drops are not deleted. They go into a store on your disk, and the agent can pull any of them back with a single tool call.
In the benchmark, three recovery calls happened, all on legal and finance tasks. The coding tasks had none. Version 5.1 added more safety: trimmed sections now carry verified summaries, such as "zero errors" or the list of files in a diff, so the agent often doesn't need to fetch anything. If Trim 2 is unsure about a piece of code, it now passes the original through instead of guessing.
How much does it actually save?
The project ran 32 tasks through Claude Code, once directly and once with Caveman. Both runs passed all 32. Total session cost fell 42.9%. Input tokens fell only 16.3%.
The gap comes from prompt caching:
- Your system prompt and tools are cached on both sides, and cached reads cost one tenth of the normal price.
- Every fresh tool result is written to the cache at 1.25 times the normal price.
- Caveman shrinks exactly those fresh results, so cache writes dropped 57.2%.
The caveats matter. This was one run per task on one model, not real production billing. When the task was a full file review, Caveman correctly kept everything and cost 2.5% more. Noisy logs and big documents save a lot. Short, dense, handwritten code saves less.
Read less also does a few other things: it folds old tool outputs down to headers, errors and test results when the cache math says that is cheaper; it replaces lines the agent already saw with a single reference line; it shortens tool descriptions while keeping a fixed order so the cache doesn't break; and it loads MCP tools only when needed.
What do blocks, browse and the other rocks do?
Blocks target a waste pattern in "code mode," where an agent writes a small script instead of making many tool calls. Agents rewrote the same script 394 times in one week on a single machine. Blocks keeps those scripts in your repo and hands them back. A Go test suite with 326 tests produces over ten thousand tokens of output. Piping it into tail -20 gives 397 tokens. The test summary block gives 76. The project also shows a case where its grep block loses to plain grep (489 tokens against 250). Blocks is a pre-release, Python only, with no sandbox yet.
Browse turns a web page into a compressed version. On a page with a 200-row table it used 121 tokens, far fewer than a Playwright snapshot, though it loses on tiny forms.
Compress and learn tools include a command that shrinks memory files like your CLAUDE.md (every heading, code block and path kept), a tool that ranks where your agent history spent tokens, and a warm cache feature that keeps Anthropic's prompt cache alive during a short break.
Auto picks the model and effort per request once you create a free account. On 85 coding tasks it solved 43.7% at $3.59 per try, against 44.3% at $7.83 for Opus on extra high effort every time. The run is only half done, the score gap is too small to call, and most savings come from lowering effort on easy asks. If you already run Opus on medium, expect less.
What changed about the caveman voice?
The voice is now built on ASD-100, the controlled English used in aircraft maintenance manuals. The agent gives the answer first, uses one idea per sentence, keeps sentences to 20 words or fewer, and uses active voice. Articles can go. Words like "not," "never," "no" and "only" stay, because dropping them changes the meaning. Code, commands, file paths and error messages stay exact. Security warnings and irreversible actions switch back to full sentences.
There are three levels: the normal one, an Ultra mode with short grunts, and a Mega mode that answers in classical Chinese because it packs more meaning into fewer tokens.
The numbers on 10 dev questions with Opus 5.5:
| Setting | Output tokens |
|---|---|
| No instruction | 6,983 |
| "Answer concisely" | 4,334 |
| Caveman | 4,119 |
| Ultra | 2,693 |
So regular Caveman beats a plain "be concise" by about 3%, and Ultra by about 35%. The rules also cost roughly 1,160 input tokens. If you pay per request, as on GitHub Copilot, shorter answers save nothing.
What should you check before installing?
- Telemetry: the CLI sends usage stats by default, including commands run, token counts, OS and IP. It does not send prompts, code or file paths. Turn it off with
caveman telemetry off. - Auto routing: every request sends your latest ask and parts of the conversation to Caveman Cloud, and on the free plan the data may be kept. If you work on private code, think first. Switch it off with
caveman off routing. - License: Apache 2.0, with a free core.
What does this mean for you?
If you use Claude Code, Codex or a similar agent daily, the lesson is bigger than one tool: your bill is driven by what the agent reads. Long logs, big search results and repeated history cost far more than chatty replies.
What to do:
- Check where your tokens go before optimizing. Wastefixes and the learn tool exist for this.
- Expect big savings on noisy logs and large documents, and small ones on short, dense code.
- Don't assume a benchmark number transfers to you. Test on your own tasks.
- If you're billed per request rather than per token, skip the voice rock.
- Decide on telemetry and auto routing deliberately, especially with private code.
Could you build your own AI usage tracker?
If your team starts using coding agents, a simple shared record of which tasks ran, which model handled them and what they cost helps you see whether tools like this pay off. Instead of a spreadsheet nobody updates, you could describe that tracker in plain English to Remy, which builds and deploys a full-stack app with a database and sign-in. Add fields for task type, tokens and cost, and a view that compares weeks. Remy bills AI tokens at cost, so the same tracker can show what your own builds cost.
Frequently Asked Questions
Is Trim 2 a language model?
No. It is two forests of decision trees, with 701 and 641 trees, scoring lines on 134 and 174 features. It is a 3.6 MB model that runs locally, so it is fast and does not call out to an AI service.
Can Trim 2 lose information the agent needs?
Dropped lines are saved in a recovery store on your disk, and the agent can retrieve any of them with one tool call. In version 5.1, if Trim 2 is unsure about code, it passes the original through unchanged.
Does Caveman change my prompts?
No. Adobe found that compressing your own prompt makes answers worse, so Caveman never touches it. It changes the agent's replies and the tool output the agent reads.
Do the 42.9% savings apply to my work?
Not necessarily. The figure comes from one run of 32 tasks on one model, not production billing. Noisy logs and large documents save more, and a full file review cost 2.5% more.
Which agents does it work with?
It works across about 30 agents including Claude Code, Codex, Gemini CLI and OpenCode, and across providers including Anthropic, OpenAI, Gemini, AWS Bedrock and Google Vertex.
Useful for
How we source, write, and correct our articles. Editorial standards
Related articles

How Can a Local Model Think Better Without More VRAM?

How to Set Up Hermes Agent on a VPS to Run 24/7

Will AI Token Usage Grow 1,000x? Agents and Budgeting
