ByteCosts
memu-agent-memory-review.mdx

AI Coding Agents

memU Review: Personal Memory Across Coding Agents

memU is a sidecar memory system that distills your coding agents’ session logs into a shared Markdown wiki, then injects up to five relevant hits into future prompts across Codex, Claude Code, Cursor, OpenClaw, Hermes, WorkBuddy and pi. It fits multi-agent setups that repeatedly rediscover the same project context. Measure model usage for distillation, embedding charges, and any retrieved text added to the prompt.

memU is a sidecar memory system that distills your coding agents’ session logs into a shared Markdown wiki, then injects up to five relevant hits into future prompts. It supports Codex, Claude Code, Cursor, OpenClaw, Hermes, WorkBuddy and pi, and one memory backend serves them all, so what one agent learns another can retrieve. Measure distillation, embeddings, and any retrieved text the host adds to prompts.

At a glance

QuestionAnswer
What is it?A shared memory sidecar that distills agent session logs into a Markdown wiki.
What cost does it target?Repeated context rebuilding across sessions. Distillation, embeddings, and retrieved text add usage.
Where does it act?A scheduled task prepares log records for distillation, and host instructions prompt the agent to retrieve relevant entries.
How do you try it?Use the project’s host-specific setup for cloud or self-hosted mode. The CLI is also available through pip, npm’s launcher, or uv.
What survives removal?The general uninstall keeps the memory store and ~/.memu/config.env by default.
What license is stated?The README states Apache-2.0. GitHub records NOASSERTION.
What is its maturity signal?14,649 stars and 132 open issues as of November 30, 2026.
When is it a good fit?You use multiple coding agents that regularly need the same project conventions or past findings.

What it is and which cost layer it targets

memU (NevaMind-AI/memU, styled “Personal memory, stored as Wiki”) is a Python project created in July 2025. As of November 30, 2026 it had 14,649 stars, 1,106 forks and 132 open issues. GitHub records the license as NOASSERTION while the README states Apache-2.0, so check the license file before relying on terms. The latest stable release in the evidence set is v1.5.1 from March 2026, with a v2.0.0-beta.0 pre-release from July 2026. The README says the core memory logic is about 500 lines, small enough to audit yourself.

The cost layer is memory plus a slice of input tokens. Memory tools change spend in both directions: they save the re-explanation and re-discovery tokens burned every new session, and they add model usage to distill logs and process retrieved hits. The embedding provider may charge for indexing and retrieval work.

How it works

memU runs as a sidecar binary per host agent and binds two seams:

  • record: a scheduled bridging task slices new session logs into self-contained job files, the agent itself distills them into memory and skill Markdown, and commit submits the result through commit_results.
  • inject: a standing instruction written into the host’s instruction file tells the agent to run <binary> retrieve (progressive retrieval) before answering.

The README’s adapter table shows where each binary reads and writes: memu-codex mines ~/.codex/sessions/*/.jsonl and patches ~/.codex/AGENTS.md; memu-claude-code reads ~/.claude/projects/<project>/<session>.jsonl and patches ~/.claude/CLAUDE.md; memu-cursor reads agent transcripts and patches a per-project ./AGENTS.md; memu-openclaw reads an SQLite database plus legacy JSONL and patches ~/.openclaw/workspace/AGENTS.md; memu-hermes, memu-workbuddy and memu-pi read their hosts’ state and patch SOUL.md or AGENTS.md equivalents. Every host shares one memory backend configured in ~/.memu/config.env.

Retrieval returns compact JSON with at most five self-contained hits plus resources, each carrying matched text, the source’s description, track, a local mirror path (or inline content), score and timestamps; database IDs and scope metadata are stripped from the agent-facing output. The automatic skill-extraction pipeline captures sessions, prepares jobs, lets the agent decide whether to patch or create a skill, writes readable Markdown, embeds it under a skill track, and serves it back on similar future tasks. MemoryService itself makes no LLM or chat calls; all judgment happens inside your agent, which means the distillation spend lands on whichever model your host runs.

Two deployment modes share the same pipeline. memU Cloud is the hosted path: the README directs you to memu.so for an API key and advertises “Cross-device, Free, Unlimited.” Self-hosted keeps storage local (SQLite by default, Postgres with pgvector for concurrent access via memu-cli[postgres]) and uses your own embedding provider: MEMU_EMBED_PROVIDER defaults to openai with jina, voyage, doubao and openrouter as alternatives, configured alongside MEMU_API_KEY, MEMU_EMBED_MODEL and MEMU_BASE_URL in ~/.memu/config.env.

Install and first run

Installation is deliberately agent-driven. For cloud setup, review the project-linked https://memu.pro/SKILL.md before allowing the agent to run it. Use a test credential and configure it through the host’s supported environment or secret-handling mechanism. Keep production keys out of chat and captured session logs. For self-hosting, review the repository’s SKILL.md and verify what your configured embedding provider receives. The skill identifies your host, installs the package, prints the host’s packaged install guide (<binary> docs install), and walks you through configuring the backend, registering the scheduled task and patching the instruction file behind verify gates. Direct CLI installs also exist:

pip install memu-cli         # library + memu + memu-codex CLIs
npx memu-cli --help          # CLI via npm launcher
uvx --from memu-cli memu     # CLI via uv, no install

After setup, <binary> doctor proves the loop resolves: config, mode and a live retrieval. Manual retrieval works too: memu-codex retrieve "What should I remember about this project?" and equivalents per host. The README’s general uninstall keeps the memory store and ~/.memu/config.env by default. For pi, follow the adapter’s uninstall and reload procedure. One sharp edge from the README: the removed memu-cola and memu-agent adapters leave scheduled tasks calling commands that no longer exist unless you print their uninstall docs before upgrading, so check your scheduler for leftovers after any memU upgrade.

Support is uneven. The README’s matrix marks ChatGPT chat mode and Claude chat/Cowork as unsupported, notes that Claude Code setup may need a retry with Opus when Sonnet declines the steps, marks OpenClaw retrieval as not yet verified on macOS, and shows Linux Codex as retrieve-only.

What it saves: claims vs independent evidence

The README makes no percentage or dollar claim. The savings mechanism is indirect: distilled memory and reusable skills mean a new session starts with the project facts the last session paid to discover, and cross-agent sharing means you explain the project once to memU rather than once per agent. There is no independent benchmark in the evidence, and the honest way to evaluate memU is to measure the two sides of its ledger yourself: the cost of distillation, embeddings and retrieved text against any reduction in exploration and re-explanation.

The open issues give the cost story texture. Issue #606 reports the bridging task mines its own run records, so prepare never comes back empty: the scheduled memory job can generate work for itself, confirmed on claude_code and hermes hosts. A job that never goes quiet is a recurring token spend, so verify your scheduled task’s cadence and what it processes.

Prompt-cache and extra-turn risk

If the host inserts changing retrieval results inside a cached prefix, they can lower cache reuse. Check cache-read and cache-write usage during the trial. The bigger risk is quality-driven spend: a stale or wrong memory steered into context can send the agent down a wrong path and cost whole turns to correct, and issue #776 shows one way records can silently shadow each other when similar titles map to one mirror file.

What the GitHub issues show

As of November 30, 2026, memU had 132 open issues. The snapshot includes a report explicitly tagged as a security issue.

  • Issue #385: a bug tagged [SECURITY] describing arbitrary local file read via resource_url in LocalFS.fetch(). Open as of November 30, 2026.
  • Issue #606: the record seam mines its own session runs, so prepare is never empty. Open.
  • Issue #499: embed() returned a tuple while the agentic side consumed a raw list, breaking memu commit and data-backed retrieve on main at the time. Closed.
  • Issue #500: a Windows multi-host test report covering sessions silently dropped over max-jobs and locale/test hangs. Closed.
  • Issue #331: cannot connect to Postgres. Open.
  • Issue #650: PostgreSQL migrations ignored custom user scope columns. Closed.
  • Issue #754: OpenRouter’s default embedding profile used the wrong path. Closed.
  • Issue #630: a request for temporal decay in retrieval scoring. Open.

The snapshot includes requests for OpenAI-compatible endpoints, a report that the DeepSeek provider could not be used, and a GLM base URL error report.

A cost example (estimate)

Assumptions, stated: retrieval adds about 800 tokens of hits to each of 40 prompts a day, and a nightly memorize job distills a day’s session logs at roughly 30,000 tokens in and 2,000 tokens out. Priced at claude-sonnet-5-5 rates (input $2 per million, output $10 per million; check the AI provider pricing index for current rates):

  • Retrieval injection: 40 × 800 × $2/1M = $0.064 per day, or $1.92 over 30 days.
  • Distillation job: (30,000 × $2/1M) + (2,000 × $10/1M) = $0.08 per night, or $2.40 over 30 days.
  • Embedding calls for indexing depend on your provider and are not priced in our committed data; the README defaults to OpenAI with several alternatives.

Estimated model cost over 30 days is $4.32 before embedding charges and any avoided work. These are estimates built on the stated assumptions; if the behavior in issue #606 adds jobs on your host, count their model usage too.

Who should use it, who should skip it

Use it if you:

  • Run multiple coding agents and want them to share one memory instead of maintaining per-tool context files
  • Re-explain project conventions, gotchas or preferences every session
  • Want auditable memory: plain Markdown files, a local SQLite store, and about 500 lines of core logic
  • Prefer self-hosting with your own embedding key over a hosted memory service

Skip it if you:

  • Use one agent with adequate built-in memory or a maintained CLAUDE.md/AGENTS.md
  • Are uncomfortable with a scheduled background task that reads session logs and runs model work on a timer
  • Need a polished support matrix: several host and OS combinations carry caveats in the README’s own table
  • Cannot accept the open security item (issue #385) until it is resolved

How to trial it safely

  1. Read the SKILL.md before allowing setup. Use test credentials and check what goes to the embedding provider before enabling the scheduler.
  2. Install for one host on one project, self-hosted, and run <binary> doctor to verify the retrieval path.
  3. Watch the scheduled task for a week: what it distills, how often it fires, and whether prepare ever reports nothing to do (issue #606).
  4. Measure billed input tokens before and after enabling inject-mode retrieval on comparable sessions; the hits should replace exploration, not just add tokens.
  5. Check the instruction file it patched (~/.claude/CLAUDE.md, ~/.codex/AGENTS.md or equivalent) so you know exactly what standing instruction your agent now carries. How to install agent skills safely has the full checklist, and how to measure coding agent token savings covers the A/B step.

Alternatives and next reads

Sources

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.

memU Review: Personal Memory Across Coding Agents. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/memu-agent-memory-review/

Sources