JuliusBrussee/caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

What it solves

Caveman 是一個供 AI 代理人(如 Claude Code、Cursor、Gemini 與 Copilot)使用的外掛/技能,能減少回應中使用的輸出 token 數量。它會剔除填充詞與冗長的表述,同時保持完整的技術準確性,從而加快回應速度並降低 API 成本。

How it works

它以一組指示(即「技能」)的形式運作,告訴 AI 代理人去除填充詞、使用片段式語句,僅保留答案的核心內容。支援多種壓縮等級——litefullultrawenyan(古文中文)——且可透過 session flag 或規則檔自動啟用。此外,還提供一個名為 caveman-compress 的工具,可將記憶檔(如 CLAUDE.md)重新寫入壓縮格式,以減少每次 session 的輸入 token。

Who it’s for

開發者與 AI 程式碼代理人的使用者,想要降低 token 消耗、提升 AI 回應速度,並在不失去技術精確度的前提下避免冗長的 AI 「雜談」。

Highlights

  • Significant Token Reduction: Benchmarks show an average of 65% reduction in output tokens.
  • Multi-Agent Support: Compatible with 30+ agents including Claude Code, Codex, Gemini, Cursor, Windsurf, Cline, and Copilot.
  • Language Agnostic: Compresses the style of the response regardless of the language (e.g., Portuguese, Spanish, French).
  • Session Stats: Includes a /caveman-stats command to track real-time token usage and lifetime savings.
  • MCP Middleware: Provides caveman-shrink to compress tool descriptions for MCP servers.
  • Context Compression: caveman-compress reduces the size of project memory files to save input tokens.