All posts
AI Tools 11 min read July 20, 2026

Caveman: Make AI Coding Agents Say More with Fewer Tokens

A practical guide to JuliusBrussee/caveman, the MIT-licensed skill and plugin that compresses AI coding-agent replies, preserves code and commands, supports 30+ agents, measures output savings, and can shrink persistent memory files.

#Caveman#AI Coding Agents#Token Optimization#Claude Code#Codex#Gemini CLI#Agent Skills#Prompt Engineering#Developer Tools#Open Source
Neel Shah
Neel Shah Tech Lead · Senior Data Engineer · Ottawa

AI coding agents often spend more words explaining a fix than implementing it. Polite openings, repeated conclusions, and tutorial-style narration consume output tokens and attention even when the user wants a command, patch, or direct diagnosis.

JuliusBrussee/caveman is an MIT-licensed skill and plugin that changes the agent’s speaking style: short fragments, less filler, same technical payload. It supports Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Cline, Copilot, and more than 30 agent environments through plugins, extensions, rules, or skill registries.

The joke is “brain still big, mouth small.” That is also the correct architecture. Caveman does not compress the model’s internal reasoning or the input context. It constrains the final response and instructs the agent to preserve code, commands, paths, URLs, and errors exactly.


Interactive: choose how small the agent's mouth becomes
The answer gets shorter; code and technical meaning should stay intact.
Prompttask + context
Agent reasoningnot compressed
Reply policydrop filler
Wrap object in useMemo. New ref created every render.
New ref each render. Wrap object in useMemo.
New ref/render. useMemo it.
Codebyte-preserved goal
+
Commandsunchanged
+
Errorsunchanged
65%project output benchmark avg
0%reasoning/input reduction by style
30+agent environments
6 levelsnormal to wenyan
Lite keeps complete sentences while removing social padding and repeated explanation.
Full, the default, favors fragments and direct causal statements while retaining enough context to act.
Ultra minimizes prose aggressively. Best for familiar workflows; riskier when nuance, teaching, or stakeholder communication matters.

What Caveman Actually Changes

Caveman installs a prompt-based skill or equivalent rule into supported coding agents. The instruction layer asks the model to:

  • lead with the answer instead of conversational preamble
  • use fragments where grammar adds no meaning
  • avoid repeating the problem or conclusion
  • preserve code, commands, errors, URLs, and paths
  • keep the user’s language rather than translating it
  • vary compression through lite, full, ultra, and wenyan modes

The repository also includes normal behavior and an additional mode in its six-level interface. wenyan deliberately uses classical Chinese for unusually dense expression; the other modes keep the language in which the user writes.

This is response-style control, not semantic compression inside the model. The agent still receives the same context and performs its normal work. The optimization is applied to what the user sees.

Install Once, Adapt to Each Agent

The cross-platform installer detects supported tools and places the right integration for each one:

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

Windows uses the PowerShell installer. Node.js 18 or newer is required, and the script supports targeted installs, dry runs, reruns, and uninstall flows documented in INSTALL.md.

Integration differs by product. Claude Code uses a plugin and hook, Gemini CLI uses an extension, while Codex, Cursor, Windsurf, and other tools can use skill registries or local rule files. This matters operationally: teams should inspect what is installed, where configuration is written, and how updates are distributed before running any remote installer broadly.

Commands Beyond Short Replies

Caveman is packaged as more than one style toggle:

  • /caveman [level] changes compression for the current session
  • /caveman-commit creates compact Conventional Commit messages
  • /caveman-review formats terse, line-oriented review findings
  • /caveman-stats estimates session and lifetime token savings
  • /caveman-compress <file> rewrites persistent instruction or memory files
  • caveman-shrink compresses MCP tool descriptions as middleware
  • cavecrew-* provides concise investigator, builder, and reviewer subagents

The memory-file feature targets input tokens rather than output. A shorter CLAUDE.md or project note is loaded again in future sessions, so careful compression can compound. The risk is also persistent: remove a constraint once and every later session may lose it. Review diffs and keep the original under version control.

Reading the 65% Claim Correctly

The project reports an average 65% output-token reduction across ten prompts using Claude API token counts. The published range is 22–87%, with an average decline from 1,214 to 294 output tokens.

That number does not mean 65% lower total token usage or cost. The repository’s own “honest numbers” note makes three important qualifications:

  1. Input and reasoning tokens are not reduced by reply style.
  2. The skill adds roughly 1–1.5k input tokens per turn.
  3. Already-terse workloads can become net-negative.

Benchmark prompts, model versions, default verbosity, task mix, and scoring criteria all influence results. Reproduce the benchmark on your own agent and workload, then compare task correctness, review time, follow-up questions, total tokens, latency, and cost—not output length alone.

Brevity Can Lose Information

Concise answers are valuable when the audience already understands the domain and wants action. They are dangerous when uncertainty, tradeoffs, compliance reasoning, migration risk, or teaching context matters.

An agent can preserve every code byte and still omit an important warning in the surrounding prose. “Same answer” is therefore a quality target, not something guaranteed by word count. Useful evaluation questions include:

  • Did the short reply preserve assumptions and uncertainty?
  • Can a new team member act without asking for missing context?
  • Were destructive steps and security implications still visible?
  • Did tests, commands, and file references remain exact?
  • Did fewer words create more follow-up turns?

Use lite for unfamiliar work, onboarding, or architecture decisions. Reserve ultra for repetitive tasks with shared context and easy verification.

Privacy and Security

According to the project, Caveman has no backend, accounts, analytics, or telemetry. After installation, the skill is local, hooks are local scripts, and stats read existing session logs. Network activity occurs during installation through GitHub and agent-specific registries.

Prompt skills still influence every response, so they belong in the software supply chain. Pin or review versions, inspect installer scripts, verify configuration changes, scope installation to intended agents, and test updates. A style instruction should not silently weaken higher-priority security, accuracy, or documentation requirements.

A Practical Adoption Workflow

Start with one agent and one week of representative tasks:

  1. Record baseline output, input, reasoning, latency, and follow-up turns.
  2. Enable lite, then compare correctness and readability.
  3. Try full on debugging, review, and implementation tasks.
  4. Keep architecture, incident, legal, and security work less compressed.
  5. Review /caveman-compress changes before committing them.
  6. Measure total session economics rather than headline output savings.
  7. Document a quick “normal mode” escape for the team.

The goal is not the fewest possible words. It is the smallest reply that preserves the information required for a correct next action.

Final Take

Caveman turns a meme into a useful interface experiment. AI coding agents do not always need to narrate their competence. A clear constraint can make routine work faster to scan, reduce output tokens, and leave more attention for code and decisions.

Its honest limitation is equally important: short output is only one part of the token budget, and brevity can hide context. Caveman works best as a configurable communication layer—measured against task success, not admired for small numbers alone.

Resources

Frequently asked questions

What is Caveman: Make AI Coding Agents Say More with Fewer Tokens about?

A practical guide to JuliusBrussee/caveman, the MIT-licensed skill and plugin that compresses AI coding-agent replies, preserves code and commands, supports 30+ agents, measures output savings, and can shrink persistent memory files.

Who should read this article?

This article is written for engineers, technical leads, and data teams working with Caveman, AI Coding Agents, Token Optimization.

What can readers use from it?

Readers can use the article as a practical reference for ai tools decisions, implementation tradeoffs, and production engineering workflows.