caveman-compress

caveman-compress is a command for Claude Code from JuliusBrussee/caveman. It costs 12 tokens per session (163 once invoked), scanned A, original, Apache-2.0.

A command that compresses a Markdown or text file into caveman format, a shorter plain-text representation.

In plain words
What is it for?
Use it to make Markdown or text files smaller before sharing them with an agent.
Why use it?
It reduces the amount of text an agent needs to process when a document is too long or repetitive.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the caveman plugin — 22 skills, 9 commands, 3 agents shipped together

Good fit Use it to make Markdown or text files smaller before sharing them with an agent.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/juliusbrussee/caveman/caveman-compress
About the project

caveman is a skill and proxy for coding agents that shortens unnecessary explanatory prose so agents use fewer tokens while leaving code, commands, paths, and error messages unchanged. It is for people using coding agents who want terse responses and lower token use, including with Claude-based workflows. The catalogue entries contain its skills, commands, agents, instructions, and plugins.

JuliusBrussee/caveman · 113,062 stars · on GitHub · docs.caveman.so

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JuliusBrussee/caveman

Made for: Claude Code.

Or install caveman, the plugin that ships this one along with the rest of its 22 skills, 9 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for caveman-compress

README.md
[![agentmods](https://agentmods.dev/badge/commands/juliusbrussee/caveman/caveman-compress/github.svg)](https://agentmods.dev/commands/juliusbrussee/caveman/caveman-compress)
Your own site
<a href="https://agentmods.dev/commands/juliusbrussee/caveman/caveman-compress"><img src="https://agentmods.dev/badge/commands/juliusbrussee/caveman/caveman-compress/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for caveman-compress

Your own site · 80×15
<a href="https://agentmods.dev/commands/juliusbrussee/caveman/caveman-compress"><img src="https://agentmods.dev/badge/commands/juliusbrussee/caveman/caveman-compress.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 163 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00163
Opus 5.5 $0.00005 $0.00065
Sonnet 5.5 $0.00002 $0.00033
Haiku 4.5 $0.00001 $0.00016

Measured 1mo ago against content hash c7d60edfbbba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

caveman-compress scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/plugins/opencode/commands/caveman-compress.md · 16 lines

What it actually says

Compress the file at: $ARGUMENTS

Run the caveman-compress skill against the given filepath. The skill rewrites prose into terse caveman style — drops articles, filler, hedging — while preserving code blocks, inline code, URLs, file paths, commands, and markdown structure exactly. Original is backed up as <file>.original.md before overwrite.

Only compress natural-language files (.md, .txt, .typ, .tex, extensionless). Refuse source/config files (.py, .js, .ts, .json, .yaml, .toml, .sh, etc.). Never compress an existing *.original.md backup.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 16 lines · 12 tokens per session scan A c7d60edfbbba

Subscribe to this mod's changes

caveman-compress is a command published in the GitHub repository JuliusBrussee/caveman (113,062 stars, last pushed 2d ago), licensed Apache-2.0. It adds 12 tokens to every session and 163 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.