@sunmer575399: 推荐一个我最近一直在用的开源项目caveman,77.3k star 能把Claude Code的对话token直接砍掉65%,靠的是让AI用原始人语法回话,省下的都是钱。我跑了个一周的活儿,账单愣是少了一半 不用改你的工作流,装成Cla…
摘要
推荐一个开源项目caveman,通过让AI用原始人语法回复来减少输出token,可节省65%的散文token和8.5%的代理编码任务token,兼容30多种AI代理工具。
查看缓存全文
缓存时间: 2026/08/04 14:11
推荐一个我最近一直在用的开源项目caveman,77.3k star
能把Claude Code的对话token直接砍掉65%,靠的是让AI用原始人语法回话,省下的都是钱。我跑了个一周的活儿,账单愣是少了一半
不用改你的工作流,装成Claude Code的skill就能用,写代码、跑测试、查日志全兼容。省token还不降智商,代码质量基本没掉
纯文本规则文件,核心逻辑就几十行,想改口吻自己动手就行。嫌原始人不够狠,还能让它说废话文学,玩法随你折腾
做AI的兄弟直接fork,轮子别自己写了。 算笔账 重度Claude Code用户一个月token费300刀起步,用这个直接省出小200刀,一年下来够换个新显示器。 而且它是skill文件。 不是黑盒插件,扒开看就懂,想嵌进自己的自动化流程也容易。 你们平时咋省token的,有比我这个更野的路子吗? 冷知识,
https://github.com/JuliusBrussee/caveman…
#AI #AI工具老炮
JuliusBrussee/caveman
Source: https://github.com/JuliusBrussee/caveman
why use many token when few do trick
Make your AI coding agent talk like a caveman.
Same answers. 65% fewer output tokens on prose,
8.5% on long-horizon agentic coding runs. Brain still big. Mouth small.
See it · Install · Levels · What you get · Benchmarks · Ecosystem · Caveman 2
Caveman is a skill/plugin for Claude Code, Codex, Gemini, Cursor, Windsurf, Cline, Copilot, and 30+ other agents. Install once. Agent drops the filler and answers in tight caveman-speak, keeping code, commands, and errors byte-for-byte exact. You save output tokens on every reply, forever.
Before / After
| 🗣️ Normal agent — 69 tokens | |
|---|---|
|
|
|
|
Same fix. Third of the words. Nothing technical lost.
┌────────────────────────────────────────────┐
│ output tokens saved █████████ 65% │
│ input tokens saved ░░░░░░░░░ 0% │
│ technical accuracy █████████ 100% │
│ vibes █████████ OOG │
└────────────────────────────────────────────┘
Caveman no make brain smaller. Caveman make mouth smaller. Shrinks what the agent says, not what it knows.
That 65% is the prose number, measured on replies like the ones above. On a full agentic coding run, where most of the output is code and tool calls, it’s 8.5%. Same skill, different workload — mechanism below.
Install
One command. Finds every agent on your machine. Installs for each.
# macOS · Linux · WSL · Git Bash
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash
# Windows · PowerShell 5.1+
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.ps1 | iex
~30 seconds. Needs Node ≥18. Skips agents you no have. Safe to re-run.
Turn it on: type
/cavemanor say “talk like caveman”. Turn it off: say “normal mode”. On Claude Code, Codex, and Gemini it’s already on from message one. No command needed.
Install for one agent, or any of 30+ others
Every agent has its own path (plugin, extension, rule file, or npx skills add). The full per-agent matrix, all flags, dry-run, and uninstall live in INSTALL.md. A few common ones:
# Claude Code plugin
claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@caveman
# Gemini CLI extension
gemini extensions install https://github.com/JuliusBrussee/caveman --consent
# Cursor / Windsurf / Cline / Codex / 30+ more, via the skills registry
npx skills add JuliusBrussee/caveman -a cursor
Install broke? Open your agent in this repo and say: “Read CLAUDE.md and INSTALL.md, install caveman for me.” Agent read repo, agent fix own brain. Snake eat tail.
Pick your grunt
Six levels. Switch anytime with /caveman <level>. Level sticks until you change it or the session ends.
| Level | Same sentence, shrunk |
|---|---|
| normal agent | You should wrap the object in useMemo, since a new reference is created on every render. |
lite | Wrap object in useMemo. New ref created every render. |
full (default) | New ref each render. Wrap object in useMemo. |
ultra | New ref/render. useMemo it. |
wenyan | New ref every render, so wrap in useMemo — rendered in classical Chinese, shorter still. |
Speak your tongue. Caveman keeps your language. Write Portuguese, caveman grunt Portuguese. Spanish, French, same. It compresses the style, never translates.
wenyanmode is the exception on purpose: classical Chinese packs the most meaning per token.
What you get
| Command | What it does |
|---|---|
/caveman [lite|full|ultra|wenyan] | Compress every reply. Level sticks for the session. |
/caveman-commit | Conventional Commit messages, ≤50-char subject. Why over what. |
/caveman-review | One-line PR comments: L42: 🔴 bug: user null. Add guard. |
/caveman-stats | Real session token usage, lifetime savings, USD. Tweetable line with --share. |
/caveman-compress <file> | Rewrite a memory file (like CLAUDE.md) into caveman-speak. Cuts ~46% input tokens every session after. Code, URLs, paths byte-preserved. |
caveman-shrink | MCP middleware. Wraps any MCP server, compresses its tool descriptions. npm. |
cavecrew-* | Caveman subagents (investigator, builder, reviewer). ~60% fewer tokens than vanilla, so main context lasts longer. |
On Claude Code the statusline shows
[CAVEMAN] ⛏ 12.4k— that’s your lifetime tokens saved, updated on every/caveman-stats. Silence it withCAVEMAN_STATUSLINE_SAVINGS=0.
Benchmarks
Real token counts from the Claude API. Average 65% output reduction across 10 chat-style prompts (range 22–87%), measured against default verbose replies. Output tokens only, committed and reproducible in benchmarks/ and evals/. This is one-question-one-answer, not a full agentic coding run — for that number, see JetBrains below.
| Task | Normal | Caveman | Saved |
|---|---|---|---|
| Explain React re-render bug | 1180 | 159 | 87% |
| Fix auth middleware token expiry | 704 | 121 | 83% |
| Set up PostgreSQL connection pool | 2347 | 380 | 84% |
| Explain git rebase vs merge | 702 | 292 | 58% |
| Refactor callback to async/await | 387 | 301 | 22% |
| Architecture: microservices vs monolith | 446 | 310 | 30% |
| Review PR for security issues | 678 | 398 | 41% |
| Docker multi-stage build | 1042 | 290 | 72% |
| Debug PostgreSQL race condition | 1200 | 232 | 81% |
| Implement React error boundary | 3454 | 456 | 87% |
| Average | 1214 | 294 | 65% |
Honest number warning. Caveman only shrinks output tokens. Input and reasoning tokens are untouched, and the skill itself adds ~1–1.5k input tokens per turn. So whole-session savings run smaller than the output number, and on already-terse workloads they can go net-negative. The real win is readability and speed. Cost savings are the bonus. When caveman wins, when it loses, and how to measure it yourself: docs/HONEST-NUMBERS.md.
Independently measured: JetBrains, 86 tasks
JetBrains ran the skill against 86 tasks from SkillsBench in July 2026 — real coding work, auto-graded by each task’s own tests, Claude Code on claude-sonnet-5, skill forced on for every reply.
| Workload | Output tokens saved | Measured by |
|---|---|---|
| Chat-style prose | 65% | us, table above |
| Agentic coding run | 8.5% | JetBrains, 86 tasks |
Both numbers are real. They measure different workloads, and the gap is mechanical: caveman compresses narration and leaves code, diffs, tool calls, and error strings byte-exact. In a chat answer, narration is the whole reply. In an agentic run it’s the thin layer between tool calls, so that’s all there is to squeeze. An output-only skill has a low ceiling on work that is mostly not prose.
Pick the number that matches your workload:
- Agent writes you prose — explanations, review, docs, debugging walkthroughs → 65% territory.
- Agent works a repo unattended → single digits. Not zero, not 65%.
Quality was unaffected: across 86 auto-graded tasks the two arms were statistically indistinguishable. Small mouth, same brain — checked by someone who didn’t ship it.
Two things follow:
- Agentic bills are mostly input tokens, which an output-only skill cannot touch by construction.
/caveman-compressandcaveman-shrinkchip at that side; the skill alone never will. - The right number is your number. JetBrains had to run a full paid benchmark to find out what caveman does on their stack. That’s the job Caveman 2 exists to do — for yours, continuously.
Turns out short isn’t just cheaper. A March 2026 paper, Brevity Constraints Reverse Performance Hierarchies in Language Models, tested 31 models and found that constraining large models to brief answers improved accuracy by ~26 points on some benchmarks. Sometimes less word = more correct.
caveman-compress receipts — real memory files, cutting input tokens forever
| File | Original | Compressed | Saved |
|---|---|---|---|
claude-md-preferences.md | 706 | 285 | 59.6% |
project-notes.md | 1145 | 535 | 53.3% |
claude-md-project.md | 1122 | 636 | 43.3% |
todo-list.md | 627 | 388 | 38.1% |
mixed-with-code.md | 888 | 560 | 36.9% |
| Average | 898 | 481 | 46% |
Every session after, that file loads ~46% smaller. Input tokens saved forever, not just one reply.
The whole cave
|
Five tools, one idea: agent do more with less.
| Repo | What it shrinks |
|---|---|
| caveman (you here) | What the agent says |
| caveman-code | The whole agent, end to end |
| cavemem | What the agent remembers, across sessions |
| cavekit | The build loop — spec-driven, no guessing |
| cavegemma | The compression baked into weights (Gemma fine-tune) |
Also: five sibling skills, one install
JuliusBrussee/skills — works in Claude Code, Cursor, Gemini, Cline, Copilot, 40+ agents:
| Skill | What |
|---|---|
| caveman | This one. Speak less, say more. |
| grill-me | Agent grills your plan before you build the wrong thing. |
| interface-kit | Build UI that looks good, loads fast, works for everyone. |
| junior-to-senior | Adversarial review pass. Junior output in, senior output out. |
| loop-factory | Spec-driven task loop — inbox → active → archive. |
npx skills@latest add JuliusBrussee/skills
🦞 Teach the lobster brevity — OpenClaw integration
OpenClaw is a self-host gateway: one box, many agents inside, wired to Slack / Discord / iMessage / Telegram. Lobster strong. Lobster smart. Lobster also talk a lot.
Same installer, scoped to one agent:
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash -s -- --only openclaw
Two things happen, no more: a caveman skill lands in the workspace, and a tiny marker-fenced block is appended to SOUL.md (OpenClaw injects it every turn, so the lobster is terse from message one — no /caveman per session). Custom path? OPENCLAW_WORKSPACE=/your/path. Uninstall with the same line plus --uninstall; your other workspace content stays untouched. Lobster claw still sharp. Lobster mouth now small.
Caveman 2
Caveman make token small. Caveman 2 make it provable.
Today’s savings numbers (including /caveman-stats) are local estimates. Caveman 2 measures and verifies them across a whole team — real receipts, real dashboard, real proof the tokens went down. Building it now.
The JetBrains result is the argument for it. 65% and 8.5% are both correct, and neither one is your number — one harness, one model, one task set, and your stack is none of those. The fix is not a better README claim, ours or anyone’s. It’s a baseline on your own traffic and a receipt at the end of the month.
Join the waitlist → caveman.so
How it works
- Install drops a skill file into your agent.
- Skill tells agent: drop filler, keep substance, use fragments — but never touch code, commands, or errors.
- On Claude Code, a hook writes a tiny flag file each session, so the agent talks caveman from message one without
/caveman. /caveman-statsreads your session log, counts tokens saved, writes the number to your statusline./caveman-compressrewrites memory files (likeCLAUDE.md) so every future session starts with a smaller context. Save tokens forever, not just once.
Hook architecture, file ownership, and CI sync are documented for maintainers in CLAUDE.md.
Privacy
Caveman no phone home. No telemetry, no analytics, no accounts, no backend. After install, zero network calls — the skill is a prompt, the hooks are local scripts, and /caveman-stats reads a log already on your disk. Install-time fetches (GitHub plus your agents’ own registries) are spelled out in SECURITY.md.
Sponsors
Caveman free forever. Sponsors keep the rock sharp.
Atlas Cloud — full-modal AI inference platform, one API.
Want your rock here? → Sponsor caveman
Star this repo
Caveman save you token, save you money. Star cost zero. Fair trade. ⭐
Docs: Install matrix · Honest numbers · Contributing · Maintainer guide · Issues
Also by Julius Brussee: Revu — local-first macOS study app with FSRS spaced repetition (revu.cards)
MIT — free like mass mammoth on open plain.
相似文章
@freeman1266: 通过优化策略和模型路由,将每月数千美元的 AI 编程成本大幅削减 80% 如果低效的上下文管理和盲目使用高昂模型,将会使账单飞涨。 通过实施提示词缓存、精简上下文文件以及修复工具调用的自动循环,开发者可以显著减少无效的 Token 消耗。…
本文介绍了通过提示词缓存、精简上下文、多模型路由(将日常编码任务交给Kimi 2.6,核心架构用高级模型)等策略,将AI编程成本削减80%的实用技巧。
使用 Caveman 减少 Claude Code 的 token 使用
本文介绍了 Caveman,一个开源插件,旨在通过使 AI 响应更简洁来减少 Claude Code 的 token 使用,同时保留重要的技术细节。
@VincentLogic: 这开源项目把 Claude Code 的成本砍了 25%。 它不做新模型,不做新 IDE。 就给 AI coding agent 画了张"代码地图"。 传统玩法:模型读完整个仓库 → 爆 token。 它的玩法:先把代码用 Tree-si…
一个开源项目通过Tree-sitter将代码解析成图结构并存入本地SQLite,为AI coding agent提供代码地图,从而减少token消耗和成本,平均节省57% token,成本降低25%。支持Claude Code、Cursor、aider等工具。
公司让Claude和Codex像穴居人一样说话,以遏制AI成本飙升
公司正在采用一款名为“Caveman”的插件,强制Claude和Codex等AI模型使用简短的穴居人式语言,以减少令牌消耗并遏制不断飙升的AI成本。该工具可将输出令牌削减高达75%,目前已被OpenAI、Nvidia、GitHub和Legrand的员工使用。
@GYLQ520: 搞 AI Agent 的注意了!token 烧钱烧到心疼? 有个开源工具叫 curl.md,专门把网页转成 Markdown 格式喂给 AI,token 消耗直接砍一大截。CLI、浏览器插件、API 三种用法随你选,Cursor、Clau…
curl.md is an open-source tool that converts web pages to optimized Markdown format for AI agents, significantly reducing token consumption and cost. It offers CLI, browser extension, and API usage, with integrations for Cursor, Claude, and other agents.
