agentleFS
JuliusBrusseeJuliusBrussee/caveman/mem/AGENTS.md

caveman / mem

AGENTS.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

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about JuliusBrussee/caveman

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

45 more on GitHub

On Bluesky · 50

45 more on Bluesky

The file

Files
AGENTS.md

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/Recover over 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/forget CLI 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=mem for the Go core; root make test also runs mirrored JS/Python wrapper tests.
  • The wrappers shell out to the gated binary — keep 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.
  • bounded recall — omitted/Go-zero TokenBudget defaults to 2000 inferred tokens. Public CLI/MCP/JS/Python callers must explicitly pass token_budget=0 for unlimited recall; adapters map it to UnlimitedTokenBudget.
  • 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 History but never enter normal recall.
  • inferred-only — tokens_added, score, and basis are inferred estimates; never verified.
  • reversible — a compressed recall hit carries a CCR recovery_handle; Recover returns the byte-exact original.

See ../../CLAUDE.md (root) · ../engine/CLAUDE.md · ../mcp/CLAUDE.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.