AI Coding Agents
claude-mem vs memU for Cross-Session Agent Memory
Choose claude-mem to recover project history from live agent activity or memU to distill transcript history into reusable memory and skills across supported hosts. Compare the model calls needed to create the memories, the text retrieved on future tasks, and where each deployment sends and stores the underlying data.
How the memory gets into the next session
| Dimension | claude-mem | memU | Contexere |
|---|---|---|---|
| Capture path | Lifecycle hooks forward tool activity to a local worker on recording-capable hosts | Host adapters process saved session logs into jobs, typically on a schedule | Current README centers on rewriting and folding tool output |
| Processing | Observer model turns activity into observations and session summaries | An agent distills jobs into memory or skill Markdown, and the service indexes the results | Rewritten output can point to a locally retained original |
| Storage | Local SQLite under ~/.claude-mem, with Chroma supporting semantic search and optional cloud sync | Shared configured backend, with local SQLite or Postgres and a MemU Cloud path | Local retained tool output, with broader cross-agent and cross-machine memory described as planned |
| Recall | Startup observation index where supported and layered search for details | Host instruction to retrieve, with host-specific behavior such as pi background retrieval | README labels some MCP-only hosts as having memory and recall, with limited detail on that path |
| Main costs to measure | Observer calls, startup index, search and detail retrieval | Distillation jobs, embeddings, recall responses, and any query-preparation calls | Tool output reduction, follow-up recovery reads, and hook time |
Think about what you want to retrieve. If the next session needs the reason a specific test was changed, a project observation with an ID and timeline can be useful. If it needs a troubleshooting procedure that applies across projects, a reviewed reusable skill can be a better fit. Both use cases benefit from preserving the repository source and checks that back up a remembered claim. claude-mem, memU, Contexere
Live capture and scheduled distillation
claude-mem describes a worker that receives lifecycle events. Its observer converts tool activity into compact observations and writes a summary at session end. The next session can get a short index of earlier observations for the project. The README says Copilot CLI, Goose, Roo Code, Warp, and Zed can search memory while their sessions are excluded from recording. Existing memories returning in a new host therefore give insufficient evidence that the host is adding to the store. Test recording and retrieval independently. claude-mem review
memU’s README describes a scheduled bridging task for typical desktop hosts. The adapter reads a transcript source, such as the host’s JSONL session logs or a supported SQLite store, and prepares jobs. An agent reads related memories and decides whether to create, revise, or skip a new record or skill. The service stores and embeds the results. This introduces a delay between finishing a conversation and seeing what it taught the memory system. If immediate handoff is important, record when the write becomes available and preserve the pending work in a reviewed note in the meantime. memU agent memory review
The memU README says MemoryService makes no LLM or chat calls. The overall workflow still uses the agent for judgment and synthesis, plus an embedding provider under the documented local configuration. The pi extension has its own flow. It starts recall in the background and, for long prompts, can make an isolated request to prepare a search query. Check the adapter and platform you plan to deploy before applying cost assumptions drawn from other hosts.
There’s an open memU issue whose title describes undesired capture when the bridging task processes its own session records. Treat that as a case to check for scheduled jobs. Inspect the recorded sources after repeated runs and look for memory about the memory system crowding out the work you intended to capture. For claude-mem, check that the observer recorded the actual decision and verification result, including the distinction between an attempted action and a completed one. memU scheduled capture issue
Storage, sharing, and privacy
claude-mem describes SQLite for observations and summaries, with keyword search and a Chroma component for semantic search. Its README says the memory store is local by default and cloud sync is opt-in. The observer can use external model providers, so a local database says where the completed record resides and does not by itself define what the observer sees. The README also describes usage analytics on by default and screenshots retained locally by default, with separate conditions for cloud upload and observer image inference. Confirm those settings individually before enabling capture on a sensitive project.
The README documents private tags intended to keep tagged content out of stored memory. Include innocuous fixture data in a trial and inspect the viewer and any authorized sync destination to verify the exclusion. Check screenshots and tool output as separate inputs to capture. A setting that controls what a new session sees does not tell you what the worker retained when it originally recorded the activity.
memU separates local or cloud storage from the embedding configuration. The README lists a SQLite path or a Postgres connection for local or self-hosted deployments and describes a separate embedding provider and key. Read the local configuration as a statement about the storage backend. Where data goes for embeddings or agent synthesis depends on the provider choices. Check whether the boundary between projects is suitable for a memory store shared across hosts. Search from another project during a trial using a harmless fixture and check whether it returns records your policy expects to be isolated.
Treat uninstall and deletion as different operations. memU says its default uninstall removes the host integration and tooling while keeping the memory store and configuration. That is convenient for reinstalling and can be wrong for a project with a retention deadline. Decide who removes retired records and which mirrors or synchronized copies they need to check. For claude-mem, make that decision across the local store, retained media, and any enabled sync destination. The evidence does not establish comparable deletion verification for every backend.
Price creation and retrieval together
claude-mem’s README estimates about 50 to 100 tokens per search index row and 500 to 1,000 per full detail result. Its workflow adds a timeline around useful matches and fetches full records for selected IDs. Track the startup injection, search results, and full records separately to see which replaced repository reads. claude-mem MCP search documentation
Three open claude-mem issue titles flag trial checks. They report billed warmup pings with no off switch, Claude condense calls ignoring CLAUDE_MEM_OBSERVER_MAX_OUTPUT_TOKENS, and promotional messages addressed to the model in hook context. Log observer calls outside the coding thread and inspect the startup injection for unexpected content. Warmup pings, Condense output cap, Promotional hook context
memU’s documented host retrieval returns up to five compact hits plus separate resources. A hit can carry matching text and a path to a local mirror or inline content. A cap on hit count is distinct from a measured token budget. An agent can pay for the standing instructions, retrieval results, and additional reads from those paths. The supplied README does not give a comparable per-hit token size for the host results. Inspect the actual responses for your tasks and record any embedding and agent calls that happen outside the visible turn.
For a useful comparison, estimate total memory-enabled spend as coding-agent spend with memory active plus separately incurred capture, distillation, and retrieval charges. Compare that with the spend to reach the same accepted task without memory. Use provider-reported fresh input, cache reads, cache writes, and output where available. Count recurring background charges over the same observation period in both arms. A startup index itself is part of the coding agent’s input and belongs in the coding-agent total once.
Judge the result across sessions rather than from a clean install’s first prompt. The memory might prevent repeated code exploration after a pause, but store and read costs continue on tasks with no useful hit. Also track outdated retrievals that caused the agent to repeat an abandoned approach. Classify each memory hit as used and verified, irrelevant, or stale. This shows whether you should narrow capture, simplify the standing retrieval instruction, or use explicit handoffs for that workload. Measure coding agent token savings
Where Contexere fits
The Contexere README calls cross-agent and cross-machine memory part of its direction, while describing context reduction as the feature that ships today. The support matrix does label some MCP-only hosts with memory and recall. The same evidence includes an open roadmap issue for pushing notes at session start within a budget. Those sources do not establish a capture, storage, and injection workflow comparable to the two main tools. Contexere session-start memory proposal
Evaluate Contexere separately if repeated reads or verbose tool results are the cost problem. Its README describes folding repeated file reads into handles and retaining output for recovery. That can complement a memory store, because preserving today’s exact tool output and remembering the decision it informed tomorrow serve different purposes. Trial each feature on its own before attributing savings to their combination. Contexere review
Test how a correction propagates
Use a fixture project with a decision you can change on purpose, such as the test command for a package. Capture the original decision, change the command in the repository, and capture or record the update. Then ask a fresh session to find the current command and explain where it came from. Check whether the two results are ordered clearly, and whether the agent can retrieve the source record when both look relevant. Repeat the check from the hosts you actually want to share memory across.
A completed write tells you that the store accepted a record. This trial tells you whether the next agent can resolve competing records and how many queries or file reads it pays for along the way. Keep the repository check authoritative for the trial so neither system receives credit for retrieving a plausible but superseded answer.
Pick by what you need to remember
Pick claude-mem if you regularly reopen a project and need a searchable account of what the agent did. Start with a harmless project on a recording-capable host. Finish a task whose key decision you can name, start a fresh session, and check whether the agent can find the observation and validate it against current source. Note the observer charges separately and compare capture and recall across the hosts you use.
Pick memU if you want supported agents to reuse a procedure learned from session history. Inspect the Markdown produced by a repeated workflow, retrieve it from a second host, and check whether a newer procedure supersedes it. The newest release in the snapshot is v2.0.0-beta.0, a prerelease from July 23, 2026. The latest stable release is v1.5.1 from March 23, 2026. Confirm which version ships your host adapter and check the support matrix for both capture and retrieval. memU releases
Use a handoff note when the next step needs explicit, reviewable state. Put the working revision, open issue, next check, and unresolved decisions in a place the next session can inspect. Keep memory as a way to locate earlier observations and procedures. A short note can be enough if most resumed tasks have a clear branch, a known next step, and a small amount of state to carry forward. Managing long coding agent sessions
Sources
- claude-mem README and observer architecture (GitHub, accessed 2026-11-30)
- claude-mem issue on billed observer warmup pings (GitHub, accessed 2026-11-30)
- claude-mem issue on the condense output cap (GitHub, accessed 2026-11-30)
- claude-mem issue on promotional hook context (GitHub, accessed 2026-11-30)
- memU README and host adapters (GitHub, accessed 2026-11-30)
- Contexere README and current capabilities (GitHub, accessed 2026-11-30)
- memU issue on scheduled bridge self-capture (GitHub, accessed 2026-11-30)
- Contexere proposal for budgeted startup notes (GitHub, accessed 2026-11-30)
How this note was produced
Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.
claude-mem vs memU for Cross-Session Agent Memory. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/claude-mem-vs-memu-agent-memory/
Sources
- claudemem README and observer architecture
- claudemem issue on billed observer warmup pings
- claudemem issue on the condense output cap
- claudemem issue on promotional hook context
- memU README and host adapters
- Contexere README and current capabilities
- memU issue on scheduled bridge selfcapture
- Contexere proposal for budgeted startup notes