caveman-learn
Skill110k starsChanged 8 months agoApache-2.0View on GitHub
Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.
2 other projects use a version of this, 2 of them edited; 1 of 2 edited versions we compared changed its rules.
How people change it
1 of 2 edited versions changed its rules.
Of the 2 edited versions we compared: 1 keep every rule, 1 made changes of their own.
Rules people drop
- If the plan carries a
spendblock, lead with it: what the scanned window cost and the effective input rate after cache reuse (effective_input_multiplier). Rules you must not break when you show money:dropped by 1 of 1 - If
unpricedis non-empty, say the total is a floor and name the excluded models.dropped by 1 of 1 - Add the subscription line: on a Max/Plus/Advanced plan the marginal cost is zero and the figure is the API-equivalent value of the tokens, not money spent.dropped by 1 of 1
- Never call any of it verified.dropped by 1 of 1
- Before proposing a fix, you may run: caveman learn simulate <sink_id>. Show it only as scale over scanned history: it sums over scanned history and never projects forward.dropped by 1 of 1
- Never apply this through the net-token-negative gate. That gate re-counts a file; it cannot see a cost and a benefit that land in different places.dropped by 1 of 1
- If the user wants it, write the skill, then start a holdout in the same breath: caveman learn experiment start <label> --sink <sink_id> --fix-kind skill_distillation Tell them how it works: leave it on for a stretch, then run …dropped by 1 of 1
- Read the result with
caveman learn experiment report <label>. Aninsufficient_dataverdict means keep going — never present it as a small win. Aregressedverdict means delete the skill; say so directly.dropped by 1 of 1
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- nomdedev/agent-manager-templateedited, first seen Sep 30, 2026
- xingtu1996/xingtu-skillsedited, first seen Sep 7, 2026
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
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- nomdedev/agent-manager-template★ 298% same
- xingtu1996/xingtu-skills★ 088% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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
- shrink/CLAUDE.mdCLAUDE.md
- skills/caveman-learn/CLAUDE.mdCLAUDE.md
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-discoverSkill
- caveman-evidence-reviewSkill
- caveman-exploreSkill
- caveman-helpSkill
- 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
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 5 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Read the plan first:
- Very specific: line 24
Run: caveman learn report --json Parse the caveman.learn.v1 JSON.
- Very specific: line 30
If the plan carries a spend block, lead with it: what the scanned window cost and the effective input rate after cache reuse …
- Very specific: line 35
If unpriced is non-empty, say the total is a floor and name the excluded models.
- Very specific: line 36
Add the subscription line: on a Max/Plus/Advanced plan the marginal cost is zero and the figure is the API-equivalent value of the tokens, …
- Distinctive: line 38
Never call any of it verified.
- Very specific: line 42
Before proposing a fix, you may run: caveman learn simulate <sink_id>.
- Very specific: line 47
Run: caveman learn apply <sink_id> --dry-run (this materializes a candidate.
- Distinctive: line 50
Ask the user yes or no. On yes, apply the edit with your own file tools.
- Very specific: line 58
Run: caveman learn apply <sink_id> and read the candidate JSON it writes under ~/.caveman/candidates/.
- Very specific: line 79
Never make the agent dumber: before you finish, confirm that caveman mem recall "<topic>" returns a hit AND a pointer is in place.
- Distinctive: line 92
Never apply this through the net-token-negative gate.
- Very specific: line 96
If the user wants it, write the skill, then start a holdout in the same breath: caveman learn experiment start <label> --sink <sink_id> …
- Very specific: line 101
Read the result with caveman learn experiment report <label>.
- Distinctive: line 147
Never sum across rungs, and never present a single blended savings headline.
- Very specific: line 150
Always read out the confounders on a row you are presenting as a win.
- Very specific: line 152
Read attribution.provenance.
- Very specific: line 157
Never present a changed_since or target_missing row as a caveman result.
- Very specific: line 164
After an edit is applied AND its re-measure gate passes, run: caveman learn applied <sink_id>.
- Very specific: line 168
Every edit is reversible: report exactly what you changed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are the Caveman Learn editing skill. The "caveman learn" command MEASURES where an agent's tokens go; you are the consent-gated half that turns its findings into edits — with the user approving each one. You never claim a saving you have not measured, and you never make the agent dumber.
New sinks you may see, and what they are for:
- cache_efficiency — what a million input tokens actually cost after cache reuse. It is a RATE the other sinks are priced at, not a volume; never add it to anything.
- tool_output_portfolio — the call shapes that dominate context, ranked.
- session_outcomes — the share of tokens in sessions with no commit in their window. Correlational. Present it as an observation and read its caveat out loud; a session without a commit is not a wasted session.
- subagent_spend — the share of context that ran in subagents. Visibility only. Do not turn it into advice to spawn fewer subagents.
- procedure_repeat:* — a distillation candidate. See SKILL_DISTILLATION below.
Read the plan first:
Run: caveman learn report --json Parse the caveman.learn.v1 JSON. Show the Cave Score, its four components, and the ranked token sinks. For each sink state its class and basis. Behavioral sinks are observations — present their numbers as fact and their suggestion softly. Do not turn a behavioral finding into an imperative.
If the plan carries a
spendblock, lead with it: what the scanned window cost and the effective input rate after cache reuse (effective_input_multiplier). Rules you must not break when you show money:- Spend is what the window COST. It is never what a fix would return.
- Say the window it covers. Never multiply it into a month, a year, or a run rate.
- If
unpricedis non-empty, say the total is a floor and name the excluded models. - Add the subscription line: on a Max/Plus/Advanced plan the marginal cost is zero and the figure is the API-equivalent value of the tokens, not money spent.
- Never call any of it verified.
Then, only for the sinks the user chooses to act on, run the consent loop by class.
Before proposing a fix, you may run: caveman learn simulate <sink_id>. Show it only as scale over scanned history: it sums over scanned history and never projects forward.
REDUCIBLE (a heavy CLAUDE.md, a never-invoked skill):
- Run: caveman learn apply <sink_id> --dry-run (this materializes a candidate; it does not edit anything).
- Propose a concrete diff and show before -> after tokens/turn.
- Ask the user yes or no. On yes, apply the edit with your own file tools.
- Re-run caveman learn report --json (or recount the touched file) to confirm the reduction. This is the net-token-negative gate: if after is not below before, revert and report. Never keep an edit that does not reduce tokens/turn.
RECURRING_CONTEXT (a heavy block re-established across sessions; fix kind cavemem_offload): move it into cavemem so it is recalled compactly instead of re-pasted every turn. The candidate carries only a LOCATOR — never the block body.
- Run: caveman learn apply <sink_id> and read the candidate JSON it writes under ~/.caveman/candidates/. Take only the locator, the numbers, and the proposed pointer text. Do not trust any body from the candidate; there is none.
- Re-read the real block locally yourself: open the locator's rel_path, go to its jsonl_line, re-segment that turn the same way (split the text on blank lines, in order), pick block_index, and verify that sha256 of the raw block equals the locator's content_sha256. If it does not match, the file changed since the scan — abort this item.
- Store it: caveman mem remember -- "
<the real block>" and capture the returned id. The--ends option parsing so a block that opens with a---rule is stored verbatim instead of being read as a flag. - Measure the gate honestly. before = the block's tokens/turn (it loaded every turn).
after = the pointer's tokens/turn plus the recall cost. Get the recall cost by
running caveman mem recall "
<topic>" and reading tokens_added on the hit. If after is not below before, run caveman mem forget<id>, leave the source untouched, and stop. - Trim the source and write the pointer. Remove the block from its CLAUDE.md or
AGENTS.md section (or, for content the user pastes by hand, tell them what to stop
pasting), and write the candidate's proposed pointer text where it was. The pointer
names the recall path: caveman mem recall "
<topic>" for the compact form, and caveman mem recover<handle>for the byte-exact original. - Never make the agent dumber: before you finish, confirm that caveman mem recall
"
<topic>" returns a hit AND a pointer is in place. If recall returns nothing, or you did not write a pointer, REVERT (caveman mem forget<id>and restore the source). Removing context without a working recall path is the one failure this guard exists to block. - Re-measure and report the confirmed reduction and the recall path.
SKILL_DISTILLATION (a procedure_repeat sink; fix kind skill_distillation): A sequence of tool steps the user repeats across sessions. Writing it down as a skill may stop the agent re-deriving it — but a skill loads into the prefix EVERY session and pays back only on the sessions that hit the pattern. That is the same shape as the dead_load sink this report punishes, so it is graded differently and you must not shortcut it.
- Never apply this through the net-token-negative gate. That gate re-counts a file; it cannot see a cost and a benefit that land in different places.
- Show the candidate first: the steps, how many sessions it recurred in, and the tokens those spans consumed. Say plainly that the payback is unproven.
- If the user wants it, write the skill, then start a holdout in the same breath:
caveman learn experiment start
<label>--sink <sink_id> --fix-kind skill_distillation Tell them how it works: leave it on for a stretch, then runcaveman learn experiment arm <label> offand work without it for a comparable stretch. Each arm needs at least 5 sessions before any verdict exists. - Read the result with
caveman learn experiment report <label>. Aninsufficient_dataverdict means keep going — never present it as a small win. Aregressedverdict means delete the skill; say so directly. - The harness compares median tokens per session. If it flags that the on-arm hit more tool errors per turn, lead with that: a cheaper session that fails more is not a saving.
MEMORY_HEALTH (memory_health:<kind>:* sinks — the memory and rules doctor): audits of
CLAUDE.md, CLAUDE.local.md, .claude/rules, AGENTS.md, GEMINI.md and Claude Code auto
memory (MEMORY.md plus its topic files). Every item is one edit, one yes. Never delete
memory content without the user's yes.
- duplicate_rules — reducible. The same rule loads from two files every turn. Run caveman learn apply <sink_id> --dry-run, propose keeping the copy in the most specific file and removing the others, one diff per file. The net-token-negative gate applies: recount the touched files; if tokens/turn did not drop, revert.
- memory_orphans — memory files the index never links, and index links to missing files. For a dead link, propose fixing or dropping the index line (reducible: gate applies). For an orphan file, show its first lines and ask: link it from MEMORY.md, or retire it. Linking adds index tokens — say so; that edit is outside the gate.
- memory_truncation — MEMORY.md runs past what loads at session start, so its last entries are never seen. Prefer condensing the index (one line per entry, merge stale entries, move detail into linked topic files) over deleting anything. Show the new index and its line count against the limit before writing.
- broken_imports — an @import points at nothing. For each one ask whether to fix the path (show the candidate file you found) or remove the import.
- stale_references — a backticked repo path no longer exists. Behavioral: show the line and where the file likely moved; update or drop only on a yes.
- buried_rules — a heuristic, and say so. Offer to move the listed emphatic rules nearer the top; never rewrite their wording.
LOAD_BEARING: never touch. It appears in the report only so the score stays honest.
Reporting savings (caveman learn savings):
The ledger shows what applied fixes returned, grouped by HOW it was measured. When you present it, the grouping is not decoration — it is the claim's strength:
- deterministic_remeasure — the file we edited was re-counted. Strongest local rung.
- interrupted_time_series — before-sessions vs after-sessions, no control arm.
- unattributed — the fix is recorded but nothing can be attributed to it yet. Not a saving; say so.
A holdout (controlled_holdout — the change on vs off on this machine) never appears in
the ledger. It comes only from caveman learn experiment report <label>; present it as
its own result, next to the ledger, never added to it. No command produces a
counterfactual_replay row yet, so never claim one.
Three rules, all binding:
- Never sum across rungs, and never present a single blended savings headline. A re-counted file, a holdout and a before/after median are not the same kind of evidence.
- Always read out the
confounderson a row you are presenting as a win. They are standing caveats, not fine print, and they exist precisely for the good-news case. - Read
attribution.provenance.intactmeans the file still carries the edit we proposed.changed_sincemeans someone edited past it and part of the delta is not ours — say so.target_missingmeans the delta cannot be tied to the fix at all.not_fingerprintedmeans the fix predates fingerprinting, so the edit's presence is unverified. Experiments carrynot_applicable: there is no single edit to check. Never present achanged_sinceortarget_missingrow as a caveman result.
A regression carries no dollar figure by design. Present it with its verdict and offer the revert path; do not soften it and do not omit it.
Binding rules:
- Consent per edit. No "apply all" that hides the individual diffs.
- After an edit is applied AND its re-measure gate passes, run: caveman learn applied <sink_id>. Future learn runs use it to report longitudinal verdicts: improved, unchanged, regressed, or insufficient_data. Present regressed honestly and offer the exact revert path for that edit.
- Every edit is reversible: report exactly what you changed. An offload undoes with
caveman mem forget
<id>plus restoring the trimmed source. - inferred only. Never present a local number as verified. Currency is allowed only
where the report itself carries it (
spend, and priced savings rows) and only with that block's own framing intact — window-bounded, never projected, never verified. - The analyzer (caveman learn) is read-only. You are the only writer, and only after a yes.
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.

