Xpersona
M

Memory Dream

CLAWHUB · Unverified

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...

62
Rank
84
Safety
971
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 971 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bnt8jz52xmnv7qptde7e06n83k15c:openclaw-memory-dream
  1. Install using `clawhub skill install s17bnt8jz52xmnv7qptde7e06n83k15c:openclaw-memory-dream` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/mitchelldavis44/openclaw-memory-dream before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-mitchelldavis44-openclaw-memory-dream/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

57,603 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: memory-dream
description: 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 context, resolve contradictions, and tighten what remains. Supports persistent DM channels via session-gap detection.
---

# 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](https://clawhub.ai) session summaries for richer consolidation context if that plugin is also installed.

## Installation

```bash
openclaw plugins install @mitchelldavis44/openclaw-memory-dream
```

## Configuration (`openclaw.json`)

```json
{
  "plugins": {
    "entries": {
      "memory-dream": {
        "enabled": true,
        "config": {
          "minSessions": 5,
          "minHours": 24,
          "memoryFiles": ["MEMORY.md"],
          "model": "claude-haiku-4-5"
        }
      }
    }
  }
}
```

| Option | Default | Description |
|---|---|---|
| `minSessions` | `5` | Session boundaries since last consolidation before triggering |
| `minHours` | `24` | Hours 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.

README.md

# 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 after enough sessions have passed and enough time has elapsed — like REM sleep. 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.

The consolidation is:
- **Non-blocking** — fires after session end, doesn't delay anything
- **Lock-safe** — won't run twice simultaneously, handles stale locks from crashed processes
- **Conservative** — the prompt instructs the LLM to keep everything important, not to summarize aggressively

## Install

```bash
openclaw plugins install openclaw-memory-dream
```

## Configuration

Add to your `openclaw.json` under `plugins.entries`:

```json
{
  "plugins": {
    "entries": {
      "memory-dream": {
        "enabled": true,
        "config": {
          "minSessions": 5,
          "minHours": 24,
          "memoryFiles": ["MEMORY.md"],
          "model": "claude-haiku-4-5"
        }
      }
    }
  }
}
```

| Option | Type | Default | Description |
|---|---|---|---|
| `minSessions` | `number` | `5` | Session boundaries since last consolidation before triggering |
| `minHours` | `number` | `24` | Hours since last consolidation before triggering |
| `memoryFiles` | `string[]` | `["MEMORY.md"]` | Memory files to consolidate (relative to workspace root) |
| `model` | `string` | *(agent default)* | Model override for consolidation LLM calls |
| `enabled` | `boolean` | `true` | Disable without uninstalling |

Both `minSessions` **and** `minHours` must be satisfied for consolidation to trigger.

> **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. This matches the spirit of Claude Code's Auto Dream behavior.

## How it works

### Trigger conditions

After every session ends, the plugin increments a session counter stored in `{agentDir}/.memory-dream-state.json`. Consolidation fires when:

1. `sessionCount >= minSessions` — enough sessions have accumulated
2. `hoursSinceLastRun >= minHours` — enough time has passed (or this is the first run)
3. No lock file is held by a running process

### Consolidation process

1. Acquires a lock file at `{agentDir}/.memory-dream.lock` (PID + timestamp)
2. Reads each file in `memoryFiles` from the workspace root
3. Reads recent LCM (Lossless Context Management) summaries from `{agentDir}/lossless-claw/` for additional session

_meta.json

{
  "ownerId": "kn76mqfscpwma4hnx4b9wrmjhh83kyw3",
  "slug": "openclaw-memory-dream",
  "version": "1.1.0",
  "publishedAt": 1775277387589
}

skill-card.md

## Description:

Automatically consolidates agent memory files after sessions by using an LLM to prune stale context, resolve contradictions, tighten remaining memory, and support persistent DM channels through session-gap detection.

This skill is ready for commercial/non-commercial use.

## Publisher:

[mitchelldavis44](https://clawhub.ai/user/mitchelldavis44)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to keep persistent memory files concise and current by automatically consolidating stale, contradictory, or vague memory entries after enough sessions and time have passed. It also supports optional in-session capture of corrections, preferences, decisions, and other memory-worthy signals.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill may process memory files, recent conversation content, and transcript excerpts with an LLM.

Mitigation: Use it only in workspaces where that data access is acceptable, configure memoryFiles conservatively, and disable capture when recent conversation content should not be processed.

Risk: The skill automatically writes updates to persistent memory files.

Mitigation: Keep memory files under version control or backed up, and review memory changes before relying on them.

Risk: The security evidence reports under-disclosed data access and weak boundaries.

Mitigation: Review the skill carefully before installing and avoid workspaces containing sensitive conversations or credentials until path validation, disclosure, redaction, and review controls are improved.

## Reference(s):

- [Memory Dream README](artifact/README.md)
- [Memory Dream ClawHub page](https://clawhub.ai/mitchelldavis44/skills/openclaw-memory-dream)

## Skill Output:

**Output Type(s):** [Text, Markdown, Files, JSON]

**Output Format:** [Markdown memory-file updates and JSON status output]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Background consolidation and optional capture run according to configured session and time thresholds.]

## Skill Version(s):

1.1.0 (source: server release metadata and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

openclaw.plugin.json

{
  "id": "memory-dream",
  "name": "Memory Dream",
  "description": "Auto-consolidates agent memory files after sessions — like REM sleep for AI agents",
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "minSessions": { "type": "number", "default": 5 },
      "minHours": { "type": "number", "default": 24 },
      "intervalHours": { "type": "number", "default": 24, "description": "Alias for minHours — minimum hours between consolidations" },
      "memoryFiles": { "type": "array", "items": { "type": "string" }, "default": ["MEMORY.md"] },
      "model": { "type": "string", "description": "Model override for consolidation (defaults to agent default)" },
      "captureModel": { "type": "string", "description": "Model override for capture phase (defaults to claude-haiku-4-5-20251001)" },
      "enableCapture": { "type": "boolean", "default": true, "description": "Enable in-session auto-capture of corrections and preferences" },
      "enabled": { "type": "boolean", "default": true }
    }
  }
}

Sponsored

Ads related to Memory Dream and adjacent AI workflows.