caveman / mem
CLAUDE.md110k starsChanged 8 months agoApache-2.0View on GitHub
Durable, cross-session memory: remember / recall / supersede / history / forget. A local SQLite store holds the raw memories (the source of truth); recall ranks them with deterministic BM25 behind a conservative threshold and compresses each hit through the engine so the inferred token cost is honest and the dropped detail stays recoverable via CCR. Everything is inferred. See ../../CLAUDE.md (root) · ../engine/CLAUDE.md · ../mcp/CLAUDE.md
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
- 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-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
mem — cavemem, durable agent memory (Go core + clients, Apache-2.0)
Durable, cross-session memory: remember / recall / supersede / history / forget. A local SQLite store holds the
raw memories (the source of truth); recall ranks them with deterministic BM25 behind a
conservative threshold and compresses each hit through the engine so the
inferred token cost is honest and the dropped detail stays recoverable via CCR. Everything is
inferred.
Layout
store.go—Remember/Recall/Supersede/History/Forget/Recoverover SQLite + engine; legacy schemas migrate in place.bm25.go— deterministic tokenizer + BM25 scorer (non-negative scores, so the threshold is meaningful).cmd/cavemem/— MCP server +remember/recall/supersede/history/forgetCLI subcommands (JSON).js/+py/— thin TS and Python clients that shell out to the binary (mirrored libraries; they reimplement nothing).
The cavemem_* MCP tools
cavemem_remember(text) · cavemem_recall(query, limit?, token_budget?) ·
cavemem_supersede(id, text) · cavemem_history(id) · cavemem_forget(id),
served through mcp.NewServer so the framing matches caveman-mcp exactly.
Conventions
- Build/test:
make product-build PRODUCT=mem/make product-test PRODUCT=memfor the Go core; rootmake testalso runs mirrored JS/Python wrapper tests. - The wrappers shell memory text to the gated binary through
remember --stdin(never one huge argv element) — keep validation/recall/scoring logic in Go, never forked into TS/Python.
Gotchas (honesty invariants)
- byte-safe write — raw text is written to SQLite before any engine call, so a memory is never lost; compression is transient, at recall time only.
- single-writer store —
mem.dbandccr.dbopen withSetMaxOpenConns(1)+ a DSN carryingbusy_timeout(5000)+journal_mode(WAL)(ccr.SQLiteDSN). The proxy spend store uses the same DSN but does not force one pooled connection; mem/CCR's discipline is stricter. Cold-start migration is wrapped in a five-second-wall-budgetedccr.RetryOnBusybecause a fan-out of freshcavemem rememberprocesses (the JS client'sPromise.all(facts.map(remember))) races on the multi-statement DDL; runtime single-statement writes lean onbusy_timeoutalone. Without this, 32 concurrent writes landed 1 and dropped 31 asSQLITE_BUSY. - bounded recall —
Recallpacks hits greedily in BM25 rank order underRecallOptions.TokenBudget(defaultDefaultTokenBudget= 2000 inferred tokens), reusingengine/contextwindowpacking. Public CLI/MCP/JS/Python callers must explicitly passtoken_budget=0to request unlimited recall; adapters map that external zero toUnlimitedTokenBudget, while omitted/Go-zero stays bounded. A single top hit whose compressed form alone exceeds the budget is returned as a compressed head + CCR recovery_handle (the original is stored even when compression passed it through), never its whole body — this is what stops the measured 440,000-token single recall. - bounded remember —
Remembercaps one memory atMaxMemoryBytes(256 KiB), failing closed withcave_memory_too_large(ErrMemoryTooLarge); CLI exits 65 and both wrappers exportMEMORY_TOO_LARGE_EXIT_CODE. A memory is a fact to recall, not a file dump. - fail toward nothing — a query below the threshold (or with no term overlap) recalls nothing, never a guess.
- current-only recall — superseded versions stay auditable through
Historybut never enter normal recall. - inferred-only —
tokens_added, score, and basis are inferred estimates; neververified. - reversible — a compressed recall hit carries a CCR
recovery_handle;Recoverreturns the byte-exact original.
See ../../CLAUDE.md (root) · ../engine/CLAUDE.md · ../mcp/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.

