Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

caveman

> ็ผ–็จ‹่ฏญ่จ€
Free

๐Ÿชจ why use many token when few token do trick โ€” Claude Code skill that cuts 65% of tokens by talking

124.7K stars0 likes5 views
WebsiteGitHub

About

๐Ÿชจ 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


See it

๐Ÿ—ฃ๏ธ Normal agent ยท 69 tokens Caveman agent ยท 19 tokens

The reason your React component is re-rendering is likely because you're creating a new object reference on each render cycle. When you pass an inline object as a prop, React's shallow comparison sees it as a different object every time, which triggers a re-render. I'd recommend using useMemo to memoize the object.

New object ref each render. Inline object prop = new ref = re-render. Wrap in useMemo.

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.

Install

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:

bash
npx skills add JuliusBrussee/caveman

Type /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:

bash
npm install -g @caveman-ai/cli && caveman setup --install
caveman claude        # or codex ยท gemini ยท aider ยท kilo ยท qwen ยท opencode ยท hermes ยท openclaw ยท pi

They stack. Most people start with the small rock and graduate.

More doors into the cave ยท full installer, Windows, single agents, uninstall

The 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+.

bash
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/v2.6.0/install.sh | bash

Windows, PowerShell 5.1+:

powershell
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/v2.6.0/install.ps1 | iex

Just one agent:

bash
# 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 profile

Install 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.

The numbers

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.

Skill: writing less

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 with uv 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.

Proxy: reading less

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).

The skill, unpacked

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.

Everything in the box ยท commit messages, reviews, subagents, work patterns
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

Issuesยท 141 open

View all issuesOpen on GitHub
  • #1105

    Cache-breakpoint planner never stabilizes for Claude Code native integration โ€” every request cache-busts

    Updated Sep 28, 2026
  • #1134

    Does not work at all in Codex

    bugUpdated Sep 28, 2026
  • #1133

    Claude shrink hook: `allow` decision, changed command text and lost input fields

    Updated Sep 28, 2026
  • #1109

    agent-drift: opencode โ€” installed 1.18.33 exceeds pinned 1.18.31

    Updated Sep 28, 2026
  • #1132

    caveman sync's local-spend watermark has no lock, so two overlapping syncs upload the same rows twice

    Updated Sep 28, 2026
  • #1125

    Claude Code doesn't speak caveman even when /caveman ultra is given

    bugUpdated Sep 27, 2026
  • #733

    Advertised saving: 65%. Measured saving: 8.5%.

    Updated Sep 26, 2026
  • #1120

    Release binaries compress Go only (CGO_ENABLED=0); please consider cgo variants

    Updated Sep 26, 2026
  • #1100

    agent-drift: qwen โ€” installed 0.24.6 exceeds pinned 0.24.0

    Updated Sep 26, 2026
  • #1098

    agent-drift: kilo โ€” installed 7.8.1 exceeds pinned 7.7.3

    Updated Sep 26, 2026

> Tags

JavaScriptaianthropiccaveman

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedDec 4, 2026
Category็ผ–็จ‹่ฏญ่จ€
PricingFree

> Related tools

T
TypeScript
JavaScript ็š„่ถ…้›†๏ผŒไธบๅ‰็ซฏไธŽๅ…จๆ ˆๆไพ›้™ๆ€็ฑปๅž‹
P
Python
้€š็”จ็ผ–็จ‹่ฏญ่จ€๏ผŒๅนฟๆณ›็”จไบŽ Webใ€ๆ•ฐๆฎไธŽ AI
G
Go
Google ๆŽจๅ‡บ็š„็ฎ€ๆด้ซ˜ๆ•ˆ็ณป็ปŸ่ฏญ่จ€