One email each morning — yesterday's AI, sortedGet it in your inbox

METAL LAB

JuliusBrussee/caveman

99,331+286 todayGo

A tool that makes AI coding agents talk like cavemen and read less, to cut token costs

Caveman started as a skill that makes Claude Code and similar coding agents answer in short, blunt sentences, cutting output tokens. It has grown into a local proxy that also compresses what the agent reads every turn, including tool schemas, files, logs, and history. In a pinned benchmark it cut provider-reported input tokens by 33.2%, while the original skill cuts output tokens by an average of 65%.

What it does

  1. Began by shortening agent replies, and now also compresses what the agent reads: tool descriptions, files, logs, and conversation history
  2. A local proxy applies different compression per content type (code, JSON, logs, search results), always keeping the original bytes on disk so they can be recovered exactly
  3. A 'pixel mode' renders dense text into PNG images for vision models, since image tokens are cheaper than the equivalent text tokens
  4. In a pinned 54-run benchmark it used 33.2% fewer input tokens than plain Claude Code while passing all 18 exact-answer checks
  5. The README explicitly notes the original skill only shrinks output tokens, not input or reasoning tokens, and the skill itself adds roughly 1,000-1,500 input tokens per turn

Why it matters

For developers who rely heavily on AI coding agents, token usage translates directly into cost and latency, and this project shows there is real room to save by shrinking not just replies but everything the agent reads. It's also notable for publishing an 'honest numbers' document that spells out when the savings do and don't hold, which matters for judging how much to trust the claims.

Terms in this repo

  • token · the unit AI models process text in; usage cost is usually billed per token
  • proxy · a middle server that sits between the agent and the AI provider to intercept, compress, and restore data
  • MCP · a standard interface that lets AI agents call external tools
  • TOON · the project's own format for re-encoding JSON tool results into a smaller size

Repository description (English)

Claude Code skill that cuts 65% of tokens by talking like caveman

Open on GitHub

Trending repos

All repos →

Latest from METAL LAB