caveman-token-optimizer
БесплатноБез исполняемых скриптовНе проверенClaude Code skill that makes AI agents respond in caveman-speak, cutting ~65-75% of output tokens while preserving full technical accuracy
от reason-machines★ 99 звёзд на GitHubОб этом скилле
Caveman Token Optimizer
Skill by ara.so — Daily 2026 Skills collection.
A Claude Code skill and Codex plugin that makes AI agents respond in compressed caveman-speak — cutting ~65% of output tokens on average (up to 87%) while keeping full technical accuracy. No pleasantries. No filler. Just answer.
What It Does
Caveman mode strips:
- Pleasantries: "Sure, I'd be happy to help!" → gone
- Hedging: "It might be worth considering" → gone
- Articles (a, an, the) → gone
- Verbose transitions → gone
Caveman keeps:
- All code blocks (written normally)
- Technical terms (exact:
useMemo,polymorphism,middleware) - Error messages (quoted exactly)
- Git commits and PR descriptions (normal)
Same fix. 75% less word. Brain still big.
Install
Claude Code (npx)
npx skills add JuliusBrussee/caveman
Claude Code (plugin system)
claude plugin marketplace add JuliusBrussee/caveman
claude plugin install caveman@caveman
Codex
- Clone the repo
- Open Codex inside the repo
- Run
/plugins - Search
Caveman - Install plugin
Install once. Works in all sessions after that.
Manual / Local
git clone https://github.com/JuliusBrussee/caveman.git
cd caveman
pip install -e .
Usage — Trigger Commands
Claude Code
/caveman # enable default (full) caveman mode
/caveman lite # professional brevity, grammar intact
/caveman full # default — drop articles, use fragments
/caveman ultra # maximum compression, telegraphic
Codex
$caveman
$caveman lite
$caveman full
$caveman ultra
Natural language triggers
Any of these phrases activate caveman mode:
- "talk like caveman"
- "caveman mode"
- "less tokens please"
- "be concise"
Disable
/caveman off
# or say: "stop caveman" / "normal mode"
Level sticks until changed or session ends.
Intensity Levels
| Level | Trigger | Style | Example |
|---|---|---|---|
| Lite | /caveman lite |
Drop filler, keep grammar | "Component re-renders because inline object prop creates new reference each cycle. Wrap in useMemo." |
| Full | /caveman full |
Drop articles, use fragments | "New object ref each render. Inline prop = new ref = re-render. Wrap in useMemo." |
| Ultra | /caveman ultra |
Telegraphic, abbreviate everything | "Inline obj prop → new ref → re-render. useMemo." |
Benchmark Results
Real token counts from Claude API (reproducible via benchmarks/ directory):
| Task | Normal | Caveman | Saved |
|---|---|---|---|
| React re-render bug | 1180 | 159 | 87% |
| Auth middleware fix | 704 | 121 | 83% |
| PostgreSQL pool setup | 2347 | 380 | 84% |
| Git rebase vs merge | 702 | 292 | 58% |
| Async/await refactor | 387 | 301 | 22% |
| Docker multi-stage build | 1042 | 290 | 72% |
| Average | 1214 | 294 | 65% |
Important: Caveman only affects output tokens. Thinking/reasoning tokens are untouched. Caveman make mouth smaller, not brain.
Reproducing Benchmarks
git clone https://github.com/JuliusBrussee/caveman.git
cd caveman/benchmarks
# Set your Anthropic API key
export ANTHROPIC_API_KEY=your_key_here
# Run benchmark suite
python run_benchmarks.py
# Compare normal vs caveman responses
python compare.py --task react-rerender
python compare.py --task auth-middleware
python compare.py --all
Code Examples — What Caveman Mode Changes
Before (normal, 69 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.
After (caveman full, 19 tokens)
New object ref each render. Inline object prop = new ref = re-render.
Wrap in `useMemo`.
Code blocks stay normal — caveman not stupid
# Caveman explains in grunt, but code stays clean:
# "Token expiry check broken. Fix:"
def verify_token(token: str) -> bool:
payload = jwt.decode(token, SECRET_KEY, algorithms=["HS256"])
# Was: payload["exp"] < time.time()
# Fix:
return payload["exp"] >= time.time()
What Caveman Preserves vs. Removes
# Tokens caveman REMOVES (waste):
filler_phrases = [
"I'd be happy to help you with that", # 8 tokens gone
"The reason this is happening is because", # 7 tokens gone
"I would recommend that you consider", # 7 tokens gone
"Sure, let me take a look at that", # 8 tokens gone
"Great question!", # 2 tokens gone
"Certainly!", # 1 token gone
]
# Things caveman KEEPS (substance):
preserved = [
"code blocks", # always normal
"technical_terms", # exact spelling preserved
"error_messages", # quoted verbatim
"variable_names"
Установить caveman-token-optimizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл caveman-token-optimizer?
Claude Code skill that makes AI agents respond in caveman-speak, cutting ~65-75% of output tokens while preserving full technical accuracy
Как установить скилл caveman-token-optimizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл caveman-token-optimizer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic