Skip to content
HUIAHUB

JuliusBrussee/caveman

caveman

🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Metrics updated Established+1.6% 7d

GitHub metrics

Stars
111K
+1.8K this week
Forks
6.5K
30-day growth
—
Open issues
37
110K110K111KOct 4, 2026Oct 13, 2026
GitHub stars from the official GitHub API, recorded each time the repository was checked (3 days).
GitHub stars by day
DayGitHub stars
2026-10-04109533
2026-10-10110848
2026-10-13111312

What it does

Caveman is a skill plus a local proxy that reduce the tokens a coding agent spends, both in what it writes back and in what it reads. The skill changes the reply style: answer first, one idea per sentence, no greeting or recap. Code, commands, file paths, error messages and numbers are kept character for character, and your own prompts are never rewritten. There are three levels (/caveman, /ultracave and /megacave, the last one in classical Chinese) and extra commands for one-line commit messages, terse code review and shrinking memory files such as CLAUDE.md.

The second part is the caveman CLI, which runs on your machine and compresses bulky input before the agent sees it: logs, CSV, YAML, JSON and test output. Originals stay on disk so the agent can pull them back. The CLI also has caveman browse for compact web pages and caveman learn, which ranks where tokens went in past sessions. Separate TypeScript and Python middleware packages apply the same compression to agents built on the Vercel AI SDK, LangChain, OpenAI or Anthropic calls.

The project's own benchmark reports 33.2% fewer input tokens over 54 Claude Code runs, with 18 of 18 answers correct. The same table shows HTML sessions getting 9.9% worse, because HTML has no compressor yet.

Why it matters

Agents spend tokens on padded replies and on large tool outputs. A conciseness prompt only touches the first. The README points out that agent sessions are mostly code and tool calls, which a reply-style skill leaves alone, so Caveman added a proxy for the input side. It is also candid about trade-offs: the rules add roughly 1,000 input tokens per call, and anyone billed per request instead of per token is told to skip it.

Main features

  • Three reply levels: /caveman, /ultracave and /megacave
  • Code, commands, paths, errors and numbers kept exactly as written
  • /caveman-commit writes one-line Conventional Commit messages
  • /caveman-compress shrinks memory files and backs up the original
  • Local proxy that compresses logs, CSV, YAML, JSON and test output
  • caveman browse returns a compact version of a web page
  • TypeScript and Python middleware for agents you build yourself
  • Install matrix covering more than 30 agents

Who it's for

  • Claude Code, Codex, Gemini CLI or Cursor users who pay per token and want shorter agent replies
  • Developers whose agents read large logs, test output, CSV or JSON files
  • Builders of custom agents on the Vercel AI SDK, LangChain, OpenAI or Anthropic who want input compression as middleware

Strengths

  • Publishes the cases where it loses, including HTML input and per-request billing
  • The skill runs on your machine and sends nothing, according to the privacy section
  • Works on both output length and input size, with middleware for custom agents
  • Apache-2.0 licence across the whole repository

Limitations

  • The CLI sends usage statistics by default (commands, token counts, a random install ID, OS and IP); `caveman telemetry off` or DO_NOT_TRACK=1 disables it
  • The rules add about 1,000 input tokens to every call, so per-request plans such as GitHub Copilot premium requests gain nothing
  • HTML has no compressor yet, and HTML sessions used 9.9% more tokens in the benchmark
  • Against a plain Answer concisely. instruction on claude-opus-5-5, /caveman cut only 3% more output tokens at the median

Getting started

The skill installs with a single command, and the CLI with the proxy is a separate npm package; the install script sets up every agent on the machine at once and needs Node.js 22.13 or later. Middleware for your own agent comes from npm (TypeScript) or PyPI (Python 3.11+).

npx skills add JuliusBrussee/caveman -g
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/v3.1.0/install.sh | bash
npm install -g @caveman-ai/cli && caveman setup --install
npm install @caveman-ai/middleware @caveman-ai/sdk
pip install 'caveman-middleware[langchain]' caveman-sdk

Requirements: A supported AI coding agent; Node.js for the CLI (22.13+ for the all-agents install script) and Python 3.11+ for the Python middleware.

Always follow the official instructions in the README on GitHub. This overview is our summary, not a copy.

Sources