caveman
Skill and local proxy for coding agents that cut token use by making answers and tool output shorter.
- Stars
- 122,690 stars
- Forks
- 7.2k forks
- Last push
- today
- Activity
- Active
# Install (Mac, Linux, Windows)$ npx @caveman-ai/cli@latest# See what's switched on$ caveman statusCommands from the project's README. Run them after installing (see below).
Overview
Understand caveman in 60 seconds
- What it does
- Caveman makes AI coding agents use fewer tokens. It makes the agent answer in short, structured sentences and compresses logs, test output and web pages before the model reads them, while leaving code and commands exact.
- The problem it solves
- Agents spend many tokens on wordy replies and on reading long tool output, which costs money and fills the context window. Caveman trims both without changing your prompts or the code the agent writes.
- Why choose it
- Choose it if token use and verbose replies bother you and you want one install across many agents. The project's own savings numbers come from its benchmarks; your results will vary.
- Who should use it
- Claude Code, Codex, Gemini CLI and OpenCode users
- Developers who want lower agent costs
- People hitting context limits in long sessions
- Anyone who prefers short, direct agent answers
- Setup difficulty
You'll need:
- Node.js 22.13 or newer
- A supported coding agent (Claude Code, Codex, Gemini CLI, OpenCode and 30+ more)
How caveman works
Caveman version 4 has six parts, all on after install and each with its own switch: Say less (short answers), Read less (shrinks logs, JSON, CSV and test output before the model reads them), Auto (picks model and effort per request), Blocks (keeps scripts the agent writes and reruns them), Waste fixes, and Browse (compressed web pages).
The caveman voice follows strict rules: answer first, one idea per sentence, never drop meaning words like not or only, and keep code, commands, paths and error messages character for character. Security warnings and irreversible actions still get full sentences.
Installation is one npx command that finds your agents and logins, shows what it will change and applies it. It runs on your machine with your own keys and subscriptions. Only Auto needs an account, which is free. The README cites outside evaluations by Adobe Research, JetBrains and Elastic.
Features
Key features
Say less
Short, structured answers; code stays exact.
Read less
Compresses tool output before the model reads it.
Auto
Chooses the model and effort for each request.
Blocks
Keeps and reruns scripts the agent wrote.
Browse
Returns web pages in compressed form.
30+ agents
One install for Claude Code, Codex, Gemini CLI, OpenCode and more.
Strengths
- One command sets up many agents
- Never changes your prompts or code output
- Each part can be switched off
- Apache-2.0 license
Limitations
- Short style is not for everyone
- Savings figures are the project's own or interim measurements
- Auto's quality gap is marked unresolved in the README
Practical use cases
Cut costs on long sessions
Let Read less shrink big test logs.
Faster answers
Get the fix in one line instead of a paragraph.
Compare models cheaply
Let Auto pick the model for each ask.
Installation
Install caveman
Commands come from Caveman's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Node.js 22.13+
Supported systems
- macOS
- Linux
- Windows
- 1
Run the installer
It finds your agents and logins, shows what it will change, and applies it when you press Enter.
Shellnpx @caveman-ai/cli@latest - 2
Start your agent as usual
For example plain claude now runs with caveman.
Shellclaude
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Check what's on
Shellcaveman status - 2
Turn one part off
Shellcaveman off browse
caveman's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Install Caveman and try the short voice
Set up Caveman for Claude Code and compare an answer's length.
Before you start
- Node.js 22.13+
- Claude Code or another supported agent
- 1
Install
Shellnpx @caveman-ai/cli@latest - 2
Start Claude Code
Shellclaude - 3
Ask a question and compare
Try the /caveman, /ultracave or /megacave skills for different levels.
- 4
Reopen settings anytime
Shellcaveman setup
What to expect
Answers are shorter, while code and commands in them stay exact.
Next steps
- Check caveman status to see which parts are on
- Read the release notes for 4.0
- Switch off parts you don't want
Costs and requirements
What it costs to run
- License
- Apache-2.0. Free to use, modify and use commercially.Free
- Caveman
- Free; Auto needs a free account.Free
- Agent usage
- Your own subscriptions and API keys apply.Depends
Troubleshooting
Common setup issues
Old behaviour after upgrading from before 4.0
Use @latest, otherwise the old copy on your machine wins.
Want to change settings
Run caveman setup to open the setup screen again.
Only want shorter answers
Install just the skill instead of the full CLI.
Alternatives
Similar AI repositories
ECC
affaan-m
Add-on system for Claude Code, Codex, Cursor and similar coding agents that adds skills, memory and security checks.
hermes-agent
NousResearch
Personal AI agent from Nous Research that learns and improves the more you use it.
ponytail
DietrichGebert
Agent skill for Claude Code and Cursor that pushes your AI coding agent to write less, simpler code.
cc-switch
farion1231
Desktop app for Windows, macOS and Linux that manages settings for Claude Code, Codex, OpenCode and similar AI coding tools.