memu

Persistent memory infrastructure for 24/7 agents. Replaces flat-file memory with a three-layer architecture (Resource → Memory Item → Memory Category) that reduces token costs by 70-90% and enables proactive context retrieval. Built on NevaMind AI's open-source memU framework (v1.4.0). 92.09% accuracy on LoCoMo benchmark.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "memu" with this command: npx skills add projectsnowwork/memu

memU: Persistent Memory for 24/7 Agents

You are integrating memU, an open-source memory framework by NevaMind AI, into an agent that needs to remember, learn, and act proactively across long-running sessions.

When to Use This Skill

Use memU when the agent needs to:

  • Retain and retrieve information across sessions spanning days, weeks, or months
  • Reduce token costs from injecting raw conversation history into context (70-90% reduction)
  • Act proactively — surface relevant context before the user explicitly asks
  • Process multi-modal inputs (conversations, documents, images, logs) into structured memory
  • Distinguish between current and outdated information with temporal awareness

Do NOT use memU for:

  • Single-session chatbots that don't need persistence
  • Simple key-value storage (use a database directly)
  • Real-time streaming memory (not yet supported)

Core Concepts

memU organizes memory in three layers:

  1. Resources — Raw, immutable inputs (conversations, documents, images). The ground truth.
  2. Memory Items — Extracted atomic facts with timestamps, provenance, and confidence scores. Queryable and versioned.
  3. Memory Categories — Emergent clusters that self-organize as items accumulate. Enable broad context retrieval.

Two retrieval strategies are available:

  • Embedding (RAG) — Vector similarity search. Fast (50-150ms). Best for factual recall.
  • LLM — Deep semantic reasoning over memory files. Slower (500-2000ms). Best for nuanced, cross-category queries.

Installation

pip install memu-py

Optional persistent storage:

docker run -d --name memu-postgres \
  -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres \
  -e POSTGRES_DB=memu -p 5432:5432 pgvector/pgvector:pg16

Minimal Integration

import asyncio
from memu import MemoryService

service = MemoryService(
    llm_profiles={
        "default": {
            "provider": "openai",
            "base_url": "https://api.openai.com/v1",
            "api_key": "sk-your-key",
            "chat_model": "gpt-4o-mini",
            "embed_model": "text-embedding-3-small",
        }
    }
)

# Store
await service.memorize(
    resource_payload=[{"role": "user", "content": "I deploy on Tuesdays."}],
    modality="conversation",
)

# Retrieve
results = await service.retrieve(
    query=[{"role": "user", "content": "When should we deploy?"}],
    method="embedding",
)

Included Files

  • README.md — Full architecture explanation, 3 real-world scenarios, cost/performance tables, integration guides, troubleshooting
  • FAQ.md — 10 high-frequency questions with detailed answers
  • RELEASE.md — Release announcement
  • METADATA.yaml — ClawHub form metadata
  • examples/ — 4 complete, runnable Python scripts:
    • example_1_minimal.py — In-memory mode, no database
    • example_2_openclaw_integration.py — Replace OpenClaw default memory
    • example_3_production.py — Logging, retries, metrics
    • example_4_scenarios.py — Research assistant, email triage, system monitoring

Attribution

This is a community Skill packaging the official memU project by NevaMind AI. It does not modify or extend memU's code.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Plugin

Install + set up TotalReclaw encrypted memory for OpenClaw, then use totalreclaw_remember / totalreclaw_recall. Trigger on 'install TotalReclaw', 'set up Tot...

Registry SourceRecently Updated
9810Profile unavailable
Automation

Empathic Trinity Core

面向 OpenClaw 工作区的低上下文占用记忆系统安装、迁移与配置技能。用于把任意工作区改造成 Memory V8 运行方式:会话优先、daily 摘要、精简 `MEMORY.md`、按需检索,并保留用户状态察觉、关系温度与更有情商的长期协作能力。适用于安装新记忆体系、迁移旧记忆规则、压缩上下文占用、规范 da...

Registry SourceRecently Updated
4200Profile unavailable
Automation

Correction Memory

Makes agent corrections persistent and reusable. When you override, reject, or correct an agent's output, this skill logs the correction and automatically in...

Registry SourceRecently Updated
5180Profile unavailable
Automation

Self Review

Automatically evaluates and approves agent outputs based on clarity, conciseness, actionability, and structure using a rule-based system.

Registry SourceRecently Updated
8300Profile unavailable