caveman / shrink
CLAUDE.md110k starsChanged 8 months agoApache-2.0View on GitHub
Compress MCP/OpenAI tool definitions before they fill the context window. A thin Go wrapper over the engine's toolschema compressor: it drops annotation metadata (examples, titles, $comment, $schema) and reduces free-text descriptions to their lead sentence plus every constraint-bearing sentence, while keeping every selection token — tool and parameter names, types, enums, required — and every argument-construction value — default, const, $ref targets — byte-for-byte. Everything is inferred.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about JuliusBrussee/caveman
- A Hacker News story“Caveman: Why use many token when few token do trick”Hacker News · Apr 5, 2026 · 904 points
- @laresai.danielesalatti.it“Someone made a Claude Code plugin that talks like a caveman to save tokens. Cuts output 65%. Accuracy …”Bluesky · Apr 5, 2026 · 21 likes
- @spaceprez.bsky.social“I had an intuitive feeling that cutting a lot of flowery language in genAI prompts would get identical …”Bluesky · Apr 30, 2026 · 14 likes
- @midu.dev“¿Quieres que tu sesión de Claude Code y Codex dure más? Haz que hable como un cavernícola. Esta Skill hace …”Bluesky · Apr 11, 2026 · 9 likes
- ayghri/i-have-adhd“Benchmarks on whether this reduces performance of the model”GitHub · Jul 19, 2026 · 7 reactions
The biggest 5 of 103 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 103
Talked about on GitHub, Bluesky and Hacker News (103 times).
On GitHub · 50
- Jul 19, 2026Benchmarks on whether this reduces performance of the model — ayghri/i-have-adhdsays it tested it7 reactions · 6 comments
- Apr 19, 2026feat(agents): add caveman gemini skill source — ooodnakov/ooodnakov-config2 reactions
- Nov 22, 2026Add caveman CLI (pinned 4.2.0) and skills; set DO_NOT_TRACK=1 — mmontes11/docker-opencode1 reaction
- Nov 20, 2026Add arakun shrink so every agent gets summarized command output — ArakunHQ/arakun1 reaction · 1 comment
- Nov 20, 2026Shrink Workers AI tool output by format (JSON, CSV, logs, tests) — ArakunHQ/arakun1 reaction · 1 comment
45 more on GitHub
- Nov 4, 2026RTK or caveman to reduce token consumption by default in just code ? — etalab-ia/codebox1 reaction · 1 comment
- Sep 3, 2026multiple system messages sent when a plugin uses experimental.chat.system.transform, breaks backends that require exactly one leading system message — anomalyco/opencode1 reaction · 2 comments
- Aug 18, 2026How or should I use this with caveman? — AminBlg/SimpleEnglish1 reaction · 3 comments
- Aug 8, 2026Comms — timerloggedout-spec/termux-monorepo1 reaction · 4 comments
- Jul 20, 2026feat(adhd): add ADHD output-shaping plugin (reauthor of i-have-adhd) — melodic-software/claude-code-plugins1 reaction · 4 comments
- Jun 15, 2026fix(docker): install git for repository scans — NVIDIA/SkillSpector1 reaction · 1 comment
- May 15, 2026New blog post — weblancaster/personal-blog1 reaction
- May 10, 2026Tools Comparisons alternatives — jgravelle/jcodemunch-mcp1 reaction · 6 comments
- May 6, 2026Add NPX installer for Linux and Windows replace current method — joshyorko/plugins1 reaction
- Apr 29, 2026feat: daily-caveman-optimizer — apply caveman optimization to .github/aw and .github/agents — github/gh-aw1 reaction · 1 comment
- Apr 22, 2026Token consumption reduction — KaugaKauga/familiar1 reaction
- Apr 18, 2026docs: cross-link caveman / cavemem / cavekit ecosystem — JuliusBrussee/cavemem1 reaction
- Apr 16, 2026[FEATURE] Caveman Mode: outbound prompt slimming to reduce generated tokens — headroomlabs-ai/headroom1 reaction · 1 comment
- Apr 10, 2026Enhancement: Add Caveman Token Management `speed go brrr` — github/squad1 reaction · 6 comments
- Apr 6, 2026Rename Blueprint to Cavekit across entire project — JuliusBrussee/cavekit1 reaction
- Nov 29, 2026Add caveman voice skills — NobleSeven7/Digilit-Project0 reactions
- Nov 28, 2026Use the caveman reply style in this project — mikecoa/personal-pos0 reactions
- Nov 27, 2026feat(skills): vendor caveman and caveman-compress (Apache-2.0) with guardrail exemptions — stefanasemota/vibe-coding-guardrail0 reactions
- Nov 27, 2026Plugin updates 2026-11-27 (review) — Fornida-Dev/fornida-claude-plugins0 reactions
- Nov 27, 2026fix(deps): bump gobwas/ws to v1.5.0 for GO-2026-6940 — JuliusBrussee/caveman-browse0 reactions
- Nov 26, 2026Try a read-only explore tool that searches outside the main context — ArakunHQ/arakun0 reactions · 1 comment
- Nov 26, 2026Measure and trim what every Workers AI request carries — ArakunHQ/arakun0 reactions · 1 comment
- Nov 23, 2026Upstream: caveman v4.1.0 → v4.2.0 — rbonweb/anthology0 reactions
- Nov 23, 2026Catalogue digest — 2026-11-23 — vatsalp2008/AI-Agent-Discovery0 reactions
- Nov 23, 2026chore(deps): bump the git-submodules group with 13 updates — wxxb789/hoa0 reactions
- Nov 22, 2026claude-code-plugins.github.juliusbrussee.caveman: 4.1.0 → 4.2.0 — sudosubin/agents.nix0 reactions
- Nov 22, 2026agent-skills.github.juliusbrussee.caveman: 4.1.0 → 4.2.0 — sudosubin/agents.nix0 reactions
- Nov 22, 2026claude-code-marketplaces.github.juliusbrussee.caveman: 4.1.0 → 4.2.0 — sudosubin/agents.nix0 reactions
- Nov 20, 2026Try a terse reply rule in Arakun Lab — ArakunHQ/arakun0 reactions
- Nov 20, 2026Try routing Workers AI steps between models, not only efforts — ArakunHQ/arakun0 reactions
- Nov 18, 2026Skills: ponytail and caveman for every session, and the founder's rule to use them — reidjxn/foundmill0 reactions · 1 comment
- Nov 16, 2026chore(deps): bump the all-updates group with 18 updates — eveeifyeve/nix-config0 reactions · 1 comment
- Nov 16, 2026Catalogue digest — 2026-11-16 — vatsalp2008/AI-Agent-Discovery0 reactions
- Nov 14, 2026Scout pitch: Read-less opt-in compression of command output — 8gi-foundation/8gent-code0 reactions
- Nov 12, 2026Add caveman skill for terse, low-token replies — moodyjones/Float0 reactions
- Nov 11, 2026Bump the compatible-packages group with 4 updates — delexw/motion-graphics-agent0 reactions
- Nov 10, 2026chore(deps): bump the all-updates group across 1 directory with 9 updates — eveeifyeve/nix-config0 reactions
- Nov 9, 2026Catalogue digest — 2026-11-09 — vatsalp2008/AI-Agent-Discovery0 reactions
- Nov 8, 2026agent-skills.github.juliusbrussee.caveman: 4.0.1 → 4.1.0 — sudosubin/agents.nix0 reactions
- Nov 8, 2026claude-code-marketplaces.github.juliusbrussee.caveman: 4.0.1 → 4.1.0 — sudosubin/agents.nix0 reactions
- Nov 8, 2026claude-code-plugins.github.juliusbrussee.caveman: 4.0.1 → 4.1.0 — sudosubin/agents.nix0 reactions
- Nov 7, 2026feat(app): install RTK, Caveman and Ponytail for an agent in one click — basilelt/overseer0 reactions
- Nov 5, 2026[Bug]: file:line refs in SKILL.md fail skill install — NousResearch/hermes-agent0 reactions · 2 comments
- Nov 4, 2026Add caveman agent skill — DavidCaua14/simulation0 reactions · 1 comment
- Nov 2, 2026Catalogue digest — 2026-11-02 — vatsalp2008/AI-Agent-Discovery0 reactions
On Bluesky · 50
- Apr 5, 2026Someone made a Claude Code plugin that talks like a caveman to save tokens. Cuts output 65%. Accuracy doesn't drop. "Bug in auth… — @laresai.danielesalatti.itsays it tested it21 likes and reposts · 4 replies
- Apr 30, 2026I had an intuitive feeling that cutting a lot of flowery language in genAI prompts would get identical results, but I generally avoid genAI… — @spaceprez.bsky.social14 likes and reposts · 1 reply
- Apr 11, 2026¿Quieres que tu sesión de Claude Code y Codex dure más? Haz que hable como un cavernícola. Esta Skill hace que tu agente responda en modo… — @midu.dev9 likes and reposts · 1 reply
- Sep 4, 2026we’re getting there — @ohnoim.online5 likes and reposts · 2 replies
- Jun 2, 2026lol github.com/JuliusBrussee/caveman/ — @nanojess.io5 likes and reposts
45 more on Bluesky
- May 20, 2026tem essa daqui tambem github.com/JuliusBrusse... — @punishedlynx.bsky.social5 likes and reposts · 1 reply
- May 6, 2026Clever way to save on your token usage: github.com/JuliusBrusse... — @dotmorten.xaml.dev5 likes and reposts · 1 reply
- Apr 7, 2026new conspiracy theory: llms are verbose and mansplainy and yes men because it burns more tokens which means the user can be charged for… — @funkjunkins.bsky.social5 likes and reposts · 2 replies
- Apr 5, 2026A Claude Code skill that makes Claude talk like a caveman, cutting token use https://github.com/JuliusBrussee/caveman… — @betterhn300.e-work.xyz5 likes and reposts · 2 replies
- Apr 5, 2026Talk like caveman | Discussion — @hackernewsbot.bsky.social5 likes and reposts
- Jun 20, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 JuliusBrussee / caveman ⭐ 75,013 (+314) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social4 likes and reposts · 1 reply
- Jun 4, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 JuliusBrussee / caveman ⭐ 68,598 (+471) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social4 likes and reposts · 1 reply
- Apr 30, 2026ולמי שמשלם על טוקנים מהכיס שלו github.com/JuliusBrusse... — @halfdino.bsky.social3 likes and reposts
- Apr 11, 2026Caveman! 😂 github.com/JuliusBrusse... — @kispocok.hu3 likes and reposts · 1 reply
- Apr 11, 2026Make your agent speak less. In a caveman-style language “why use many token when few do trick” It only affects output tokens —… — @qdrddr.bsky.social3 likes and reposts · 1 reply
- Nov 14, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 JuliusBrussee / caveman ⭐ 119,831 (+227) 🗒 Go 🪨 why use many token when few token do trick. Viral… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Jun 30, 2026Onko tämä tuttu? En ole itse ennättänyt testaamaan, mutta voisi helpottaa github.com/JuliusBrusse... — @jhilden.bsky.social2 likes and reposts · 1 reply
- Jun 11, 2026"No it's ok you see we can just make it talk like a caveman to save tokens :)" something a real actual living person said to me today... I… — @succupony.bsky.social2 likes and reposts
- Jun 5, 2026github.com/JuliusBrusse... — @l422y.com2 likes and reposts · 1 reply
- May 22, 2026installed caveman? brain trying to save tokens github.com/JuliusBrusse... — @marko.tech2 likes and reposts
- May 18, 2026caveman to shut that up github.com/JuliusBrusse... — @marko.tech2 likes and reposts · 1 reply
- Apr 27, 2026You're never gonna guess what's the hot new way to make chatbots/LLMs waste less tokens github.com/JuliusBrusse... — @damien.zone2 likes and reposts · 1 reply
- Apr 27, 2026repo: github.com/juliusbruss... enough said bye — @freek.bsky.social2 likes and reposts
- Apr 10, 2026Zwei Ansätze, um Token zu sparen: Tool-Output eindampfen https://github.com/rtk-ai/rtk Talk like caveman… — @timo.social.hetzel.net.ap.brid.gy2 likes and reposts
- Apr 5, 2026Claude Code skill that cuts 75% of tokens by talking like caveman 🪨 #technology #news #artificialintelligence #ai #claude #code — @todaystopainews.bsky.socialsays it tested it2 likes and reposts · 1 reply
- Nov 14, 2026github.com/luongnv89/c... - Free visual Claude Code guide kinetik-ui.dev - 136 animated React Native components morphin.dev - 27 free… — @csaba.bsky.social1 likes and repost
- Oct 3, 2026读 PhD 做的是压缩感知,结果给 coding agent 省 65% token 的办法,是让它像原始人一样说话。 caveman:让 coding agent 用原始人语说话来省 token 的 skill 和 proxy,号称能省… — @anotherbug.comsays it tested it1 likes and repost
- Aug 13, 2026Caveman skill github.com/JuliusBrusse... — @airowe.online1 likes and repost
- Jul 28, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 JuliusBrussee / caveman ⭐ 93,726 (+371) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jul 8, 2026Caveman? Caveman no make brain smaller. Caveman make mouth smaller. Shrinks what the agent says, not what it knows. 🤣… — @neilvosslab.bsky.social1 likes and repost
- May 8, 2026A mí me pagan la sub de pago, lo malo es que no le puedo meter cosas como caveman. Que literal lleguemos a este punto es de risa más que… — @catpucchino.eurosky.social1 likes and repost · 1 reply
- May 1, 2026github.com/JuliusBrusse... - Get the #LLM to answer like a caveman - very brief - and save a ton of tokens. — @robrich.bsky.social1 likes and repost
- Apr 23, 2026Už jsi zkoušel toto? — @mecesty.cz1 likes and repost
- Apr 11, 2026What they don’t want you to find github.com/JuliusBrusse... — @stevedylan.dev1 likes and repost · 2 replies
- Apr 10, 2026tired of your AI agents' verbosity? make it talk like caveman. also save money by not needing many tokens 🔗… — @lostdomain.org1 likes and repost
- Apr 9, 2026Did you see this? github.com/JuliusBrusse... Who needs context embedded in language anyway? What's a bit of casual racism putting the… — @productnerd.bsky.social1 likes and repost
- Apr 5, 2026🌐原始人:少数のトークンでトリックが成功するのに、なぜ多くのトークンを使う必要があるのか? https://github.com/JuliusBrussee/caveman via #HackerNews — @kdmsnr.com1 likes and repost
- Apr 5, 2026Caveman: 🦴 Why use many tokens when few tokens do the trick? 🤔 Dive into this clever project optimizing token use in AI. ⚡ Efficiency… — @jerome-etienne.bsky.social1 likes and repost
- Apr 5, 2026Caveman: Why use many token when few token do trick https://github.com/JuliusBrussee/caveman https://news.ycombinator.com/item?id=47647455 — @hn100.atproto.rocks1 likes and repost
- Apr 5, 2026A Claude Code skill that makes Claude talk like a caveman, cutting token use https://github.com/JuliusBrussee/caveman… — @hn100.atproto.rocks1 likes and repost
- Apr 5, 2026LOL there's a #Claude Code skill that cuts 75% of tokens by talking like a caveman: github.com/JuliusBrusse... 😄 #ai #aicoding — @kevin.woblick.comsays it tested it1 likes and repost
- Oct 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 JuliusBrussee / caveman ⭐ 112,086 (+398) 🗒 Go 🪨 why use many token when few token do trick. Viral… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 10, 2026De qualquer jeito fica ruim pro anti-IA tem que ser token-ascetismo. É curioso que tem até chinês literário pra token minimizing quero… — @cabra.pw0 likes and reposts · 1 reply
- Jul 21, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 JuliusBrussee / caveman ⭐ 91,533 (+529) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jul 20, 2026maybe this thing made it in somehow? github.com/JuliusBrusse... — @ninachaubal.com0 likes and reposts · 1 reply
- Jul 9, 20265. Caveman. instructs the model to drop articles and polite openers. Blunt, exact, up to 75% token savings in output only.… — @lennartnacke.com0 likes and reposts · 1 reply
- Jul 6, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 JuliusBrussee / caveman ⭐ 85,408 (+969) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jul 2, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 JuliusBrussee / caveman ⭐ 79,557 (+866) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jun 16, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 JuliusBrussee / caveman ⭐ 73,316 (+557) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- Jun 10, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 JuliusBrussee / caveman ⭐ 70,867 (+482) 🗒 JavaScript 🪨 why use many token when few token do trick… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On Hacker News · 3
- Apr 5, 2026Caveman: Why use many token when few token do trick904 points · 366 comments
- Sep 10, 2026Respond terse like smart caveman. All technical substance stay. Only fluff die2 points
- Apr 16, 2026Caveman – why use many token when few do trick2 points
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- engine/AGENTS.mdAGENTS.md
- extension/AGENTS.mdAGENTS.md
- mcp/AGENTS.mdAGENTS.md
- mem/AGENTS.mdAGENTS.md
- proxy/AGENTS.mdAGENTS.md
- shrink/AGENTS.mdAGENTS.md
- browse/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- engine/CLAUDE.mdCLAUDE.md
- extension/CLAUDE.mdCLAUDE.md
- integrations/CLAUDE.mdCLAUDE.md
- mcp/CLAUDE.mdCLAUDE.md
- mem/CLAUDE.mdCLAUDE.md
- proxy/CLAUDE.mdCLAUDE.md
- skills/caveman-learn/CLAUDE.mdCLAUDE.md
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-discoverSkill
- caveman-evidence-reviewSkill
- caveman-exploreSkill
- caveman-helpSkill
- caveman-learnSkill
- caveman-manageSkill
- caveman-optimizeSkill
- caveman-reviewSkill
- caveman-setupSkill
- cavemanSkill
- caveman-statsSkill
- investigate-firstSkill
- lean-buildSkill
- megacaveSkill
- migrationSkill
- safe-refactorSkill
- surgical-patchSkill
- ultracaveSkill
- verify-and-stopSkill
The file
Files
shrink — caveman-shrink, the tool-catalog compressor (Go core + launcher, Apache-2.0)
Compress MCP/OpenAI tool definitions before they fill the context window. A thin Go wrapper
over the engine's toolschema compressor: it drops annotation metadata
(examples, titles, $comment, $schema) and reduces free-text descriptions to their lead
sentence plus every constraint-bearing sentence, while keeping every selection token —
tool and parameter names, types, enums, required — and every argument-construction value —
default, const, $ref targets — byte-for-byte. Everything is inferred.
Layout
shrink.go— the library:Shrink(catalog → compressed, fail-open S4 transform, durable-CCR-backed),Recover(handle → original bytes),Lint(per-tool inferred token reductions),SelectionProfile(the structural surface — what must survive).WithStore/WithStorePathpick the recovery store; default is the sharedCAVEMAN_CCR_DB/~/.caveman/ccr.db.cmd/caveman-shrink/— the CLI:caveman-shrink/shrink(stdin→stdout),lint <file>, andrecover <handle>(prints the original catalog for a handle a prior shrink minted).bin/caveman-shrink.mjs+package.json— thenpx caveman-shrinklauncher around the prebuilt binary.
Two correctness boundaries
- structural selection surface —
SelectionProfile(input)==SelectionProfile(Shrink(input).Output)always. This proves names/params/enums/required survive byte-for-byte. It does not prove the model selects the same tool: descriptions are model-visible and long descriptions are lossy. Behavioral equivalence requires model-eval fixtures; current results stayinferred. - argument validity — agents build tool arguments from descriptions, so shrink preserves
selection but does not by itself guarantee argument validity. What it guarantees, biased
to over-keep: (a) a description that already fits a small budget (≤
maxDescLen*2bytes) is kept whole — no sentence is elided, so a constraint phrased without a recognised marker still survives; (b) in a genuinely large description, the lead sentence plus every sentence carrying a constraint marker (must / cannot / required / rejected / invalid / not allowed / exactly one / at least / at most / max / min / range / between / greater-than / over / above / unique / mutually exclusive / format / ISO / RFC / absolute …) is retained in full. Truncating an abbreviation ("Target path, e.g. /srv…" → "Target path, e.") or droppingdefault/RFC3339/bound rules would produce invalid calls the structural profile cannot see; the call-validity conformance test (engine/compressors, golden fixture + reproduced under-keep cases) locks recognised constraint tokens in place. Over-keep is the rule — never knowingly under-keep.
Conventions
- Build/test:
make product-build PRODUCT=shrink/make product-test PRODUCT=shrink. - The structural compressor lives in the engine (
compressors/toolschema.go); shrink reuses it, never forks it. - This is the dedicated product surface for the
toolschemacompressor. Engine API/CLI callers can also force it locally. Managed-gateway adapters keep tool arrays in the frozen prompt-cache prefix and never hand them to it; gateway's separate S2 tool-search/deferral path is not compression. Local reductions stayinferred. A future billed route for this transform needs cache-versus-schema cost proof, stable byte-identical prefix output, and an eval gate.
Gotchas (honesty invariants)
- S4 lossy, fail-open — successful compression changes model-visible bytes; malformed/incompressible catalogs pass through unchanged (
ratio:0, no handle). - inferred-only — token counts are estimates via the engine's offline counter; never
verified, never re-projected. - reversible for real — a compressing shrink writes the exact original to the durable store (
engine.Compresscommits the recovery row before it publishes transformed bytes), so a printed handle resolves later, from a separate process, viaRecover/caveman-shrink recover. It is NOT an in-memory store discarded on return — that minted handles that were unresolvable the instantShrinkreturned. If the durable store cannot be opened,Shrinkreturns an error and the CLI forwards the original bytes: no handle, no reversibility claim.
See ../../CLAUDE.md (root) · ../engine/CLAUDE.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

