# Caveman

> Why use many token when few token do trick

- Category: Agents & Automation / Agent Skills & Plugins
- Language: Go
- Licence: MIT for the skill and CLI; BSL 1.1 for the Engine-linked runtime modules
- Repository: https://github.com/JuliusBrussee/caveman
- Website: https://docs.caveman.so/docs/quickstart
- Canonical page: https://ai-tldr.dev/tools/caveman/
- Updated: 2026-04-08

## In short

Caveman attacks a specific, boring cost: AI coding agents bill by the token and write like they know it. It ships in two pieces. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in Go and licensed MIT for the skill and CLI; BSL 1.1 for the Engine-linked runtime modules.

## Overview

Caveman attacks a specific, boring cost: AI coding agents bill by the token and write like they know it. It ships in two pieces. The "small rock" is a skill — a rule file that makes the agent answer in clipped, caveman-style prose. Code, commands, file paths and exact error messages are never rewritten; only the explanation around them is. The README's ten-prompt comparison against the Claude API puts average output tokens at 294 with the skill versus 1214 without, an average saving of about 65%, ranging from 22% on a task that was mostly code to 87% on one that would have produced an essay.

The "big rock" is a local proxy that sits between the agent and the model provider and shrinks what the agent *reads* before each call — usually the larger half of the bill. Everything the proxy squeezes is backed up on disk so the agent can pull the original back when it needs it. The two stack: most people install the skill first and add the proxy later.

Licensing is split. The skill and the CLI are MIT; the Engine-linked runtime directories (engine, proxy, rewriter, browse, mcp, shrink, the cavemem Go core and shared/platform) are Business Source License 1.1, and new Engine-linked runtime modules default to BSL unless explicitly classified as MIT. The skill installs into 30+ agents — Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Cline, Copilot and more — and the proxy ships wrapper profiles for ten native agents.

## What it does

- A rule-file skill that compresses an agent's prose output while leaving code, commands, paths and error text untouched
- A local proxy that compresses what the agent reads before each provider call, with an on-disk backup of everything it squeezes
- Installs into 30+ agents via `npx skills add`, with a Claude Code plugin marketplace entry and a Gemini CLI extension
- Wrapper profiles for ten native agents (claude, codex, gemini, aider, kilo, qwen, opencode, hermes, openclaw, pi)
- A reproducible benchmark in the repo — `uv run python benchmarks/run.py` regenerates the ten-prompt token table
- Full installer wires Claude Code hooks and a statusline badge, is safe to re-run, and skips agents you do not have

## Getting started

Start with the skill — it is one command and free forever. Add the proxy when you want the input side compressed too. Node.js 22.13+ is required for the full installer.

1. Install the skill

   This is the whole install. Type `/caveman` if your agent does not pick it up on its own.

```bash
npx skills add JuliusBrussee/caveman
```

2. Add the proxy

   Install the CLI globally, run setup, then launch your agent through Caveman.

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

3. Or install into one specific agent

   Claude Code has a plugin marketplace entry; Gemini CLI takes the repo as an extension; skills-compatible agents take a profile flag.

```bash
claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@caveman
gemini extensions install https://github.com/JuliusBrussee/caveman
npx skills add JuliusBrussee/caveman --skill '*' -a codex --yes
```

4. Reproduce the numbers

   The benchmark table in the README is generated from the repo, so you can re-run it against your own model and prompts.

```bash
uv run python benchmarks/run.py
```

5. Uninstall

   One command removes it again.

```bash
npx -y github:JuliusBrussee/caveman -- --uninstall
```

## When to use it

- Cut the output-token bill on a coding agent you run all day, without changing the model or the quality of its diffs
- Compress large tool outputs and file reads on the input side before they reach the provider
- Standardise terse agent output across a team that uses several different CLI agents
- Measure what prose actually costs you by re-running the repo's ten-prompt benchmark on your own workload

## Version history

- 2026-04-08: Covered on AI/TLDR as a Claude Code skill that strips filler from an agent's chat output while leaving code untouched. The author reports 22–87% token savings across ten prompts, averaging about 65%.
