AI tool reviews › Tokens and context
What is Caveman? A skill that makes coding agents talk less
Caveman makes AI coding agents answer in short, caveman-like sentences. How it hooks into Claude Code, what I measured with it, and what it costs you.
If you’ve followed AI coding agent news this year, you may have come across “Why use many token when few token do trick,” an oddly worded line. It was the title of a Hacker News post on April 5, 2026, that drew 904 points (Hacker News), and the project it introduced is called Caveman.
Caveman is an open-source skill by Julius Brussee that makes an AI coding agent answer like a terse caveman. A skill is a folder of instructions an agent reads when it needs them. Caveman started as that one skill in April 2026, and it now also ships as a Claude Code plugin and as a command-line tool that tries to shrink what the agent reads (caveman). When I checked on October 28, 2026, it had 115,571 stars on GitHub. Output tokens usually cost more than input tokens, so shorter answers sound like a smaller bill, but a bill is made of more than answers. So I read the files that go into the agent and ran it a few times myself.
The rules the skill gives the agent
The heart of Caveman is a single SKILL.md file of about 4,700 characters. Its first line, “Respond terse like smart caveman. All technical substance stay. Only fluff die.”, asks the agent to keep every technical detail and drop the filler. Following the nine rules after it, the agent answers first and leaves out greetings and recaps. Articles can go too, but the file draws a line around meaning.
### 4. Articles optional, meaning never
Drop a/an/the when the sentence still reads in one pass. Fragments fine. Never drop not/never/no/only/except. Numbers and units exact.
Rule 6 adds that code, commands, paths, and error messages stay exactly as written, and the file makes exceptions for security warnings, irreversible actions, and anything that lives outside the chat, such as commit messages, which all get full sentences. There are three levels: the default /caveman, /ultracave, which answers in fragments, and /megacave, which answers in classical Chinese (文言文). The last two turn on only when you call them by name, and saying “stop caveman” or typing /caveman off turns the voice off.
How the plugin steps in
A plugin is a package that bundles skills, hooks, and subagents for Claude Code, and a hook is a command that runs at a fixed moment, such as the start of a session. Reading the scripts, here’s what Caveman’s four hooks do.
- The
SessionStarthook adds the active level’s SKILL.md body to the conversation, and Claude Code passes it to the model as a hidden system reminder (hooks). - The
UserPromptSubmithook looks for words like/ultracaveor “stop caveman” in your prompt, and while Caveman is on, it adds a one-paragraph reminder to every turn. - The
SubagentStarthook hands the same level to subagents, and theSessionEndhook writes token counts to a local file.
The plugin also carries 23 skills and three subagents named cavecrew. Claude Code calls a plugin’s skills by names prefixed with the plugin, like /caveman:ultracave, and it keeps every skill’s description in context while reading the body only when the skill runs (skills). When I ran claude plugin details with --plugin-dir, which attaches a plugin to one run without installing it, it estimated that these descriptions add about 1,991 tokens to every session. That figure leaves out what the hooks add, so I ran the SessionStart hook on its own with Node. It printed 4,546 characters, about 1,128 tokens by a tiktoken o200k_base estimate, and the per-turn reminder came to about 90 tokens.
According to the hooks README, headless claude -p runs and Agent SDK sessions start with Caveman off. Such runs often hand the reply to another tool, and you turn it on with the CAVEMAN_DEFAULT_MODE=caveman environment variable or /caveman in the prompt. Version 4.0 also added the caveman CLI. It provides a local proxy that shrinks tool output such as logs and JSON before the model reads it, an Auto mode that picks a model for each request (a free account is required), and more. Since it installs into the home folder and Auto needs a login, I checked these parts only in the documents.
Asking the same three questions
I asked Claude Code three small questions in three ways: with nothing added, with “Answer concisely.” appended to the system prompt, and with Caveman. The second condition is the one the project’s own evaluation treats as the fair baseline. The questions asked about a bug with a Python default argument, how to undo a git commit while keeping its changes staged, and which HTTP status code to use for rate limiting. I set the criteria beforehand, so an answer counted as correct only if it had the shared default list and a None default, git reset --soft HEAD~1, or 429 with Retry-After.
git clone --depth 1 https://github.com/JuliusBrussee/caveman.git
Q="How do I undo my last git commit but keep its changes staged?"
claude -p "$Q" --model haiku --output-format json
claude -p "$Q" --model haiku --output-format json --append-system-prompt "Answer concisely."
CAVEMAN_DEFAULT_MODE=caveman claude -p "$Q" --model haiku --output-format json --plugin-dir ./caveman
For the actual runs, I added --setting-sources local, --strict-mcp-config, and --no-session-persistence to keep this computer’s settings and session history out. I also used a copy of the plugin whose hooks write their state files to the test folder instead of ~/.claude. Here’s the answer to the third question with nothing added.
The status code is **429 Too Many Requests** (RFC 6585). The header that tells the client how long to wait is **`Retry-After`**. It takes either a number of seconds (`Retry-After: 30`) or an HTTP date (`Retry-After: Wed, 28 Oct 2026 12:00:00 GMT`).
Some APIs also send `RateLimit` or `X-RateLimit-Reset` headers, but `Retry-After` is the standard one for this purpose. A 503 can also carry `Retry-After`, but 429 is the code meant for rate limiting.
With Caveman, the answer changed to this.
**429 Too Many Requests**, with a **`Retry-After`** header. Its value is either seconds to wait (`Retry-After: 30`) or an HTTP date.
The status code, the header name, and the example value all stayed, and only the side notes were gone, yet output tokens fell only from 193 to 169. That’s because 111 of the 169 were thinking tokens that never show up in the answer. Here are all nine runs added up.
| Nothing added | Answer concisely. | Caveman | |
|---|---|---|---|
| Output tokens, three questions | 774 | 560 | 509 |
| Of which thinking tokens | 221 | 85 | 258 |
| Input tokens per call, average | 19,025 | 19,043 | 22,792 |
| Total cost, three calls | $0.0047 | $0.0047 | $0.0062 |
| Answers meeting the criteria | 3 of 3 | 3 of 3 | 3 of 3 |
Caveman cut output tokens by 34% against nothing added and by 9% against “Answer concisely.”, and the visible part, output minus thinking, went from 553 tokens to 251. But thinking tokens didn’t shrink, and input grew by about 3,770 tokens per call, roughly the descriptions and rules above, so the total cost came out 32% higher. Every answer met the criteria, though for the git question, the Caveman answer only said a force-push would be needed and left out the warning not to do this to a commit already pushed to a shared branch. Of course, nine runs with one sample each are not a benchmark. I ran them on October 28, 2026, with Claude Code 2.1.304 and the haiku alias (claude-haiku-5-5).
What the outside measurements measured
It’s worth checking what each source the README leans on actually measured. According to the creator’s Honest Numbers page, ten developer questions on claude-opus-5-5 produced, at the median, 3% less output with /caveman and 35% less with /ultracave than with “Answer concisely.” Those figures come from the 3.1.0 rules. The same page also notes that Caveman can lose on short coding Q&A and on services billed per request, such as GitHub Copilot.
JetBrains tested this tool itself. In a post from July 6, 2026, Denis Shiryaev ran 86 SkillsBench tasks with Claude Code 2.1.200 and claude-sonnet-5, with Caveman forced on. Output tokens fell by 8.5%, with no meaningful difference in task scores (p = 0.82). The post says the saving was small because most of an agent’s output is code and tool calls, which Caveman leaves alone.
The Adobe Research paper CAVEWOMAN, from June 23, 2026, cites the Caveman repository, but in place of this SKILL.md its experiments use the caveman style in general, split into reduction levels of its own. Across eight models and five benchmarks, compressing the output cut cost by 1.4 to 2.4 times on most API models. Compressing the user’s prompt, however, made models answer at greater length and lowered accuracy, so cost went up, and the README says this is why Caveman never rewrites your prompt.
Does a shorter answer mean shorter thinking?
You may wonder whether telling an agent to speak briefly also makes it think less. The Honest Numbers page says the skill doesn’t reduce thinking tokens, and in my runs the thinking counts varied from run to run.
When brevity reaches into the reasoning itself, the evidence is mixed. In a 2024 study by Matthew Renze and Erhan Guven, concise chain-of-thought prompts made GPT-3.5 and GPT-4 answers 48.70% shorter while keeping accuracy nearly the same. GPT-3.5’s performance on math problems, however, fell by 27.69%. So for problems with many steps, it’s probably worth reading the answers a little more carefully after turning the voice on.
How it differs from RTK and context-mode
If Caveman’s skill shrinks what the agent writes, two tools often mentioned alongside it shrink what the agent reads. RTK is a command-line tool that began by compressing shell command output before the agent sees it. context-mode is a server for MCP, the protocol agents use to call outside tools, and it runs tool calls in a sandbox so their raw output stays out of the context window. Caveman 4’s proxy has moved into that input side too, so if you already use one of them, it may be worth checking the overlap first.
When it fits, and what you take on
Caveman suits people who already know the domain, read answers in a terminal, and often get long replies. If you’re still learning, it may suit you less, since the background and caveats it trims are often exactly what a beginner needs.
There are also things you take on. The hooks run node at every session start and every prompt, and they leave state files such as .caveman-sessions/ and .caveman-history.jsonl under ~/.claude. According to SECURITY.md, the skill and hooks don’t call any Caveman service. The CLI, however, sends content-free usage statistics by default, which caveman telemetry off or DO_NOT_TRACK=1 turns off. If you sign in and pick Auto, your recent requests go to Caveman Cloud. And as the install guide explains, connecting Claude Code to the proxy writes ANTHROPIC_BASE_URL into ~/.claude/settings.json. The whole repository is licensed under Apache-2.0, and the release GitHub marks as latest, 4.0.1, came out on October 13, 2026.
Installing it and a first experiment
The README lists three official ways to install it: the skill only, the Claude Code plugin, and the CLI with the proxy. I’ve included the commands that remove each one, too.
# skill only
npx skills add JuliusBrussee/caveman -g
# Claude Code plugin
claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@caveman
# CLI with the local proxy (Node.js 22.13+)
npx @caveman-ai/cli@latest
# uninstall
npx skills remove JuliusBrussee/caveman -g
claude plugin uninstall caveman@caveman
npx -y github:JuliusBrussee/caveman -- --uninstall
Whichever you choose, I’d suggest first repeating the test above with questions you actually ask, comparing usage and total_cost_usd with and without Caveman. I checked everything here on October 28, 2026, with Caveman 4.0.1 (commit 9b68f7e from October 25) and Claude Code 2.1.304.
AI tools helped with the research for this post.