1. The Architectural Divide and Underlying Mechanics
These three are not the same layer. CLAUDE.md (and .cursorrules) is a flat text convention: a Markdown file at the repo root that the agent reads whole into its context window at startup. There is no index, no similarity search, no chunking. The upside is zero dependencies, diffability, and code review; the downside is that the context window is a hard ceiling, token cost grows linearly with file length, and each tool reads a different filename with different precedence—so cross-agent drift is guaranteed.
Hippo Memory is a repo-local state store plus retrieval layer. It uses SQLite as primary storage with human-readable, committable Markdown mirrors. hippo init installs a local Transformers.js embedder (@huggingface/transformers@4.3.2, about 480 MB) by default, vectorizes memory, and injects only relevant fragments into context; --no-embeddings degrades to keyword retrieval, and API embedders (OpenAI/Voyage/Cohere) are opt-in. It exposes memory over MCP to Claude Code, Codex, Cursor, OpenCode, and other clients, so "what one agent learns, the others read" holds mechanically—provided they point at the same repo store.
Mem0 is a hosted memory service. It wraps extraction, vectorization, storage, and retrieval behind an API, often orchestrating LLM calls to mutate memory. You get multi-tenant isolation, managed vector storage, and an SLA; you pay in network round-trips, per-request and storage billing, and vendor-specific schema friction.
In one line: CLAUDE.md writes knowledge into the prompt, Hippo writes it into the repo and retrieves it, Mem0 outsources it to an API.
2. Hard Engineering and Billing Comparison Matrix
| Dimension | Hippo Memory | CLAUDE.md / .cursorrules | Mem0 (hosted/self-hosted) |
|---|---|---|---|
| Storage | SQLite + Markdown mirrors | Single Markdown file | Managed/self-hosted vector store |
| Retrieval | Local embedding similarity (optional keyword) | Full-text prompt injection | API retrieval + optional LLM orchestration |
| Runtime deps | Node.js 22.16+, zero runtime deps; ~480 MB embedder | None | Network + API key; vector DB if self-hosted |
| Cross-agent sharing | Yes (MCP clients read one store) | No (filenames/precedence differ) | Yes (API layer) |
| Multi-tenant isolation | No (per repo) | No | Yes |
| Billing dimensions | Self-hosted, infra only | Free | Requests, storage, LLM/embedding calls |
| Portability | High (committable, exportable) | Highest (plain text) | Medium (exports exist, schema proprietary) |
| Concurrent writes | SQLite single-writer; reconcile via Markdown | git merge | Handled server-side |
| Audit/review | Markdown mirrors diffable | Native diff | Server-side logs |
3. Hidden Bills and Resource Costs at Scale (TCO)
CLAUDE.md's hidden cost is tokens. Every 1k tokens added to the file is 1k extra input tokens on every agent call. At 200 calls/day and $3 per million input tokens, a 5k-token convention file costs roughly 200×365×5000×3e-6 ≈ $1,095/year—and it grows linearly with the file, not with relevance.
Hippo's hidden cost is the embedder and disk. A 480 MB model in the global npm install consumes CPU and memory on first embedding; on a 1–2 GB VPS this competes with your app and can trigger OOM or slow cold starts. Switching to an API embedder converts cost into egress and per-token billing plus network latency. SQLite itself is light, but you own backup, WAL checkpointing, and write reconciliation.
Mem0's hidden cost is requests + storage + orchestration LLM. Memory extraction often calls an LLM, retrieval calls embeddings, and at scale this can exceed storage fees. Hosting also means data egress and compliance review.
Public pricing tiers for all three change; always verify on official pricing pages. For pre-deployment estimates, use Yevrix AI (https://ai.yevrix.com/hub) browser-local calculators/validators—zero-byte upload, ideal for sizing token and storage costs before committing.
4. Production Pitfalls, Lock-In, and When Not to Choose
Never treat SQLite as a shared mutable file. It is binary and cannot be merged line-by-line; two concurrent writers produce conflict copies. Make Markdown mirrors the reviewable source of truth and SQLite a locally rebuildable index.
Don't install the embedder by default on a 1 GB VPS. The 480 MB model plus inference memory can crush small machines; use --no-embeddings or an API embedder.
CLAUDE.md is wrong for multi-agent teams. Filenames and precedence differ per tool, so drift is inevitable; it also has no retrieval, so long files simply burn tokens.
Mem0's lock-in is schema and embeddings. Exports exist, but migrating vectors and metadata to another system is non-trivial; if your product doesn't need multi-tenant hosted memory, it is over-engineering.
Hippo does not solve multi-tenancy. It is per-repo memory, not a per-user memory backend; using it for SaaS user memory is an architectural mismatch.
5. Migration Cost and Selection Decision Tree
Migrating from CLAUDE.md to Hippo: Hippo imports from CLAUDE.md, .cursorrules, ChatGPT, Slack, and Markdown, so migration is mostly content transfer and deduplication—low cost. Migrating out of Mem0: export memory and vectors, rebuild embeddings, rewrite the call layer—medium to high cost.
Decision tree:
- Do you switch between multiple agents/IDEs? No → use CLAUDE.md, zero dependencies.
- Yes, and memory should travel with the repo and be auditable → Hippo Memory; use
--no-embeddingson small machines. - You need per-user isolation, hosted SLA, and an API contract → Mem0 (or self-hosted Mem0).
- You want both portability and multi-tenancy → build it: SQLite/Postgres plus your own embedding pipeline; don't conflate the two.
Finally: before any selection, size token and storage costs with Yevrix AI (https://ai.yevrix.com/hub) local calculators—zero-byte upload, do the math before you ship.