← 返回
未分类 中文

Memory Dream

Auto-consolidates agent memory files after sessions — like REM sleep for AI agents. Prevents MEMORY.md from growing unbounded by using an LLM to prune stale...
在会话结束后自动整合智能体的记忆文件——类似AI的REM睡眠,使用LLM删除过时内容,防止MEMORY.md无限膨胀。
mitchelldavis44 mitchelldavis44 来源
未分类 clawhub v1.1.0 2 版本 100000 Key: 无需
★ 1
Stars
📥 502
下载
💾 1
安装
2
版本
#latest

概述

memory-dream

Auto-consolidates agent memory files after sessions — like REM sleep for AI agents.

What it does

As an AI agent accumulates sessions, its memory files can get cluttered: vague date references ("yesterday", "last week"), stale context that no longer applies, and contradictions where newer information superseded older entries but both remain.

memory-dream runs automatically in the background once enough sessions have passed and enough time has elapsed. It uses the configured LLM to quietly clean up memory files, resolving contradictions, replacing vague date references with actual dates, removing stale entries, and preserving everything that still matters.

Without it: MEMORY.md grows unbounded until it gets truncated on load.

With it: memory stays tight, relevant, and useful automatically.

Works standalone — no other plugins required. Optionally uses lossless-claw session summaries for richer consolidation context if that plugin is also installed.

Installation

openclaw plugins install @mitchelldavis44/openclaw-memory-dream

Configuration (openclaw.json)

{
  "plugins": {
    "entries": {
      "memory-dream": {
        "enabled": true,
        "config": {
          "minSessions": 5,
          "minHours": 24,
          "memoryFiles": ["MEMORY.md"],
          "model": "claude-haiku-4-5"
        }
      }
    }
  }
}
OptionDefaultDescription
---------
minSessions5Session boundaries since last consolidation before triggering
minHours24Hours since last consolidation before triggering
memoryFiles["MEMORY.md"]Memory files to consolidate (relative to workspace root)
model(agent default)LLM used for consolidation (cheap model recommended)

Both conditions must be met before consolidation triggers.

> Session detection in persistent channels: In DM-style channels where there's no discrete session lifecycle (e.g. Slack DMs), the plugin detects session boundaries via inactivity gaps — a gap of 30+ minutes between messages counts as a new session.

Status tool

memory_dream_status

Returns session count, last run time, next trigger estimate, and whether consolidation is currently running.

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-05-03 05:17 安全 安全
  • v1.0.4
    2026-03-31 07:49

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 851 📥 334,099
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,245 📥 272,271
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,135 📥 910,579