← 返回
未分类 中文

OpenClaw Dreaming Setup — Memory Consolidation Config

Configure and manage OpenClaw Dreaming — background memory consolidation, auto-promotion to MEMORY.md, dream diary
配置和管理 OpenClaw Dreaming — 后台记忆整合、自动升级至 MEMORY.md、梦境日记
silverod silverod 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 398
下载
💾 1
安装
1
版本
#automation#configuration#dreaming#latest#memory#openclaw

概述

OpenClaw Dreaming Setup

Configure and manage OpenClaw's Dreaming system — the background memory consolidation that promotes short-term notes into long-term MEMORY.md.

When to Use

  • User wants to enable/configure Dreaming for automatic memory consolidation
  • Checking dreaming status, phase health, or promotion history
  • Troubleshooting blocked dreaming or heartbeat issues
  • Managing dream diary (DREAMS.md)
  • Manual memory promotion or backfill

What is Dreaming?

Dreaming automatically:

  1. Light phase — stages recent daily notes and session transcripts
  2. REM phase — extracts patterns and recurring themes
  3. Deep phase — promotes strong signals into MEMORY.md

It runs as a background cron job tied to heartbeat.

Quick Setup

Enable Dreaming

Add to openclaw.json:

{
  plugins: {
    entries: {
      "memory-core": {
        config: {
          dreaming: {
            enabled: true,
            // Optional: custom schedule (default: 03:00 daily)
            frequency: "0 3 * * *",
            timezone: "Asia/Jerusalem",
          },
        },
      },
    },
  },
}

Then restart gateway: openclaw gateway restart

With Skill Workshop (recommended combo)

{
  plugins: {
    entries: {
      "memory-core": {
        config: {
          dreaming: {
            enabled: true,
          },
        },
      },
      "skill-workshop": {
        enabled: true,
        config: {
          autoCapture: true,
          approvalPolicy: "pending",
          reviewMode: "hybrid",
        },
      },
    },
  },
}

With Active Memory

{
  plugins: {
    entries: {
      "active-memory": {
        enabled: true,
        config: {
          enabled: true,
          agents: ["main"],
          allowedChatTypes: ["direct"],
          modelFallback: "zai/glm-5-turbo",
          queryMode: "recent",
          promptStyle: "balanced",
          timeoutMs: 15000,
        },
      },
      "memory-core": {
        config: {
          dreaming: { enabled: true },
        },
      },
    },
  },
}

Commands Reference

Check Status

# Via slash command (in chat)
/dreaming status

# Via CLI
openclaw memory status --deep

Manual Promotion

# Preview what would be promoted
openclaw memory promote

# Apply promotion
openclaw memory promote --apply

# Limit candidates
openclaw memory promote --limit 5

# Explain why a specific topic would/wouldn't promote
openclaw memory promote-explain "claw-earn wallet"

Dream Diary

# View dream diary
cat ~/openclaw-data/workspace/DREAMS.md

# View specific phase reports
ls ~/openclaw-data/workspace/memory/dreaming/
cat ~/openclaw-data/workspace/memory/dreaming/deep/2026-04-24.md

REM Harness (preview without writing)

# Preview REM reflections
openclaw memory rem-harness

# Preview as JSON
openclaw memory rem-harness --json

Historical Backfill

# Preview grounded diary from past notes
openclaw memory rem-harness --path memory/2026-04-23.md --grounded

# Apply backfill
openclaw memory rem-backfill --path memory/2026-04-23.md

# Stage for deep promotion
openclaw memory rem-backfill --path memory/2026-04-23.md --stage-short-term

# Rollback if needed
openclaw memory rem-backfill --rollback

Dreaming Phase Model

PhasePurposeWrites to MEMORY.md?
-------------------------------------
LightSort and stage recent notesNo
REMExtract patterns and themesNo
DeepPromote strong candidatesYes

Deep ranking signals:

  • Frequency (0.24) — how often the topic appears
  • Relevance (0.30) — retrieval quality
  • Query diversity (0.15) — different contexts
  • Recency (0.15) — time-decayed freshness
  • Consolidation (0.10) — multi-day recurrence
  • Conceptual richness (0.06) — tag density

Troubleshooting

ProblemCheck
----------------
Dreaming never runsheartbeat.every must be > 0 (e.g., 30m)
Status shows "blocked"Default agent needs heartbeat enabled
No promotionsNeed more daily notes and variety
MEMORY.md growing too fastAdjust minScore threshold

Heartbeat dependency

Dreaming rides the default agent's heartbeat. If heartbeat is broken:

  1. Check agents.defaults.heartbeat.every — must be positive (e.g., "30m")
  2. Don't override heartbeat on a specific agent without including the default
  3. /dreaming status will say "blocked" if heartbeat is missing

Important Notes

  • Dreaming is opt-in and disabled by default
  • Default schedule: 03:00 daily (configurable via frequency)
  • Only grounded memory snippets are promoted, not diary entries
  • DREAMS.md is for human reading; MEMORY.md is for the agent
  • Promotion is reversible via --rollback

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 16:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

deckctl — Steam Deck / Bazzite Manager

silverod
Steam Deck 与 Bazzite 系统管理 — gamescope、flatpak、podman、GPU、性能、游戏模式、系统健康
★ 0 📥 425
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,398 📥 323,265
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,110 📥 833,880