๐ชจ why use many token when few token do trick โ Claude Code skill that cuts 65% of tokens by talking
๐ชจ why use many token when few token do trick โ Claude Code skill that cuts 65% of tokens by talking
why use many token when few do trick
Your AI coding agent bills by the word and writes like it knows that.
Caveman make it stop. Brain still big. Mouth small. Bill small.
See it ยท Install ยท Numbers ยท Skill ยท Proxy ยท Wrap ยท Docs ยท Privacy ยท License
| ๐ฃ๏ธ Normal agent ยท 69 tokens | Caveman agent ยท 19 tokens |
|---|---|
|
|
Same diagnosis. Same fix. Same useMemo. The only thing that died was the throat-clearing.
Code, commands, file paths, and exact error messages never get cavemanned. Only the prose around them does.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ output tokens saved (skill) โโโโโโโโโ 65% โ
โ input tokens saved (proxy) โโโโโโโโโ 33% โ
โ code changed โโโโโโโโโ 0% โ
โ vibes โโโโโโโโโ OOG โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโCaveman no make brain smaller. Caveman make mouth smaller.
Caveman come in two sizes.
Small rock: the skill. A rule file that makes your agent answer in caveman. MIT, free forever, works in 30+ agents (Claude Code, Codex, Gemini, Cursor, Windsurf, Cline, Copilot, more). One command:
npx skills add JuliusBrussee/cavemanType /caveman if your agent doesn't wake up on its own. That the whole install. One rock.
Big rock: the proxy. Runs on your machine, between your agent and the AI provider, and shrinks what the agent reads before every call. Everything it squeezes gets a backup on your disk, so the agent can always pull the original back. MIT CLI, BSL-1.1 runtime:
npm install -g @caveman-ai/cli && caveman setup --install
caveman claude # or codex ยท gemini ยท aider ยท kilo ยท qwen ยท opencode ยท hermes ยท openclaw ยท piThey stack. Most people start with the small rock and graduate.
More doors into the cave ยท full installer, Windows, single agents, uninstallThe full installer wires up Claude Code hooks and the statusline badge, finds every supported agent on your machine, and skips agents you no have. Safe to re-run. Needs Node.js 22.13+.
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/v2.6.0/install.sh | bashWindows, PowerShell 5.1+:
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/v2.6.0/install.ps1 | iexJust one agent:
# Claude Code
claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@caveman
# Gemini CLI
gemini extensions install https://github.com/JuliusBrussee/caveman
# Qwen Code CLI, then its Caveman wrapper
npm i -g @qwen-code/qwen-code
caveman qwen
# Codex, Cursor, Windsurf, Cline, and other skills-compatible agents
npx skills add JuliusBrussee/caveman --skill '*' -a codex --yes # replace codex with your agent profileInstall broke? Open your agent in this repo and say: "Read CLAUDE.md and INSTALL.md, install caveman for me." Agent read repo, agent fix own brain. Snake eat tail.
Changed your mind: npx -y github:JuliusBrussee/caveman -- --uninstall
The full 30+ agent matrix, dry runs, flags, and verification live in INSTALL.md.
A token is what AI billing counts, roughly three quarters of a word. Your agent pays for every token it writes and every token it reads. Reading is usually the bigger bill. The skill cuts the writing. The proxy cuts the reading.
Ten ordinary coding prompts through the real Claude API, with the skill and without. Same model, same questions. Output tokens per reply:
| Task | Normal | Caveman | Saved |
|---|---|---|---|
| Implement React error boundary | 3454 | 456 | 87% |
| Set up PostgreSQL connection pool | 2347 | 380 | 84% |
| Explain git rebase vs merge | 702 | 292 | 58% |
| Refactor callback to async/await | 387 | 301 | 22% |
| Average across all ten prompts | 1214 | 294 | 65% |
Best row and worst row both up there on purpose. Caveman wins big when the agent would have written an essay, and barely at all when the answer was already mostly code.
All ten prompts ยท regenerate withuv run python benchmarks/run.py| Task | Normal | Caveman | Saved |
|---|---|---|---|
| Explain React re-render bug | 1180 | 159 | 87% |
| Fix auth middleware token expiry | 704 | 121 | 83% |
| Set up PostgreSQL connection pool | 2347 | 380 | 84% |
| Explain git rebase vs merge | 702 | 292 | 58% |
| Refactor callback to async/await | 387 | 301 | 22% |
| Architecture: microservices vs monolith | 446 | 310 | 30% |
| Review PR for security issues | 678 | 398 | 41% |
| Docker multi-stage build | 1042 | 290 | 72% |
| Debug PostgreSQL race condition | 1200 | 232 | 81% |
| Implement React error boundary | 3454 | 456 | 87% |
| Average | 1214 | 294 | 65% |
[!IMPORTANT] Before you multiply 65% by your invoice: the skill only shortens output. Input and reasoning tokens don't change, and the skill's own rules cost about 1 to 1.5k input tokens every turn. Whole-session savings land lower than the table. On work that was already terse, you can lose money. Speed and readability are the product. The discount is the bonus. Full accounting in docs/HONEST-NUMBERS.md.
Maintainer note. If you read one linked doc, read that one. I wrote it after #550, where someone's Cursor A/B went the wrong way and I couldn't reproduce it. Caveman is a shorter agent, not free money. Measure your own setup before you tell your boss anything.
Your agent rereads logs, test output, diffs, and half your repo all day. The proxy shrinks that stream before it reaches the provider. Pinned 54-run Claude Code benchmark, provider-reported input tokens, three runs per case:
| Case | Direct Claude Code | Through caveman | Change |
|---|---|---|---|
| CSV outlier hunt | 165,823 | 74,484 | -55.1% |
| Log needle in haystack | 148,807 | 74,068 | -50.2% |
| YAML config drift | 132,124 | 71,027 | -46.2% |
| Test output failure | 150,377 | 108,514 | -27.8% |
| Deployment JSON drift | 147,975 | 108,939 | -26.4% |
| Dashboard HTML alert | 140,687 | 154,641 | +9.9% |
| Total | 885,793 | 591,673 | -33.2% |
All 18 of 18 exact-answer checks passed, so the squeeze cost nothing in correctness. Method, confidence intervals, and limits: docs/WRAP-BENCHMARK.md.
Maintainer note. The HTML row is red and it stays red. That case had no compression transform, so caveman paid its own overhead and won nothing back. The day I hide a red row is the day you should stop trusting the green ones.
Browsing too: a focused question against a 200-row table costs 121 tokens through caveman's view of the page, against 15,704 for the Playwright ARIA baseline. That's 129.8ร smaller (browse/BENCHMARK.md).
One rule file, one talking style, plus a small toolbox. /caveman lite|full|ultra|wenyan-lite|wenyan-full|wenyan-ultra sets intensity. /caveman off or normal mode turns it off.
| Tool / command | What you get |
|---|---|
/caveman [lite|full|ultra|wenyan-lite|wenyan-full|wenyan-ultra|off] |
Shorter replies at the intensity you choose. |
cavecrew-investigator, cavecrew-builder, cavecrew-reviewer |
Compressed subagent presets for locating, editing, and reviewing code. |
/caveman-commit |
Terse Conventional Commit messages. |
/caveman-review |
One-line, actionable review findings. |
/caveman-compress <file> |
Smaller Markdown memory files, with the original backed up. |
/caveman-stats |
Local session token usage and estimated savings in Claude Code. |
/caveman-help |
Cache-breakpoint planner never stabilizes for Claude Code native integration โ every request cache-busts
Does not work at all in Codex
Claude shrink hook: `allow` decision, changed command text and lost input fields
agent-drift: opencode โ installed 1.18.33 exceeds pinned 1.18.31
caveman sync's local-spend watermark has no lock, so two overlapping syncs upload the same rows twice
Claude Code doesn't speak caveman even when /caveman ultra is given
Advertised saving: 65%. Measured saving: 8.5%.
Release binaries compress Go only (CGO_ENABLED=0); please consider cgo variants
agent-drift: qwen โ installed 0.24.6 exceeds pinned 0.24.0
agent-drift: kilo โ installed 7.8.1 exceeds pinned 7.7.3