惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
V
V2EX
C
Check Point Blog
GbyAI
GbyAI
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
T
Troy Hunt's Blog
博客园 - Franky
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Security Blog
Microsoft Security Blog
P
Privacy & Cybersecurity Law Blog
WordPress大学
WordPress大学
The Cloudflare Blog
S
SegmentFault 最新的问题
Latest news
Latest news
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
I
InfoQ
博客园 - 【当耐特】
NISL@THU
NISL@THU
A
About on SuperTechFans
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Hacker News
The Hacker News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Scott Helme
Scott Helme
雷峰网
雷峰网
C
CXSECURITY Database RSS Feed - CXSecurity.com
Security Latest
Security Latest
V
Vulnerabilities – Threatpost
Security Archives - TechRepublic
Security Archives - TechRepublic
A
Arctic Wolf
Hacker News: Ask HN
Hacker News: Ask HN
N
News and Events Feed by Topic
IT之家
IT之家
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
aimingoo的专栏
aimingoo的专栏
T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
SecWiki News
SecWiki News
大猫的无限游戏
大猫的无限游戏
S
Security Affairs
The Register - Security
The Register - Security
www.infosecurity-magazine.com
www.infosecurity-magazine.com
L
LINUX DO - 热门话题
T
Tor Project blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
Merge branch 'main' of https://github.com/openclaw/openclaw · openclaw/openclaw@8a63c89
vincentkoc · 2026-04-26 · via Recent Commits to openclaw:main

@@ -1,17 +1,18 @@

11

---

22

summary: "Background memory consolidation with light, deep, and REM phases plus a Dream Diary"

33

title: "Dreaming"

4+

sidebarTitle: "Dreaming"

45

read_when:

56

- You want memory promotion to run automatically

67

- You want to understand what each dreaming phase does

78

- You want to tune consolidation without polluting MEMORY.md

89

---

91010-

Dreaming is the background memory consolidation system in `memory-core`.

11-

It helps OpenClaw move strong short-term signals into durable memory while

12-

keeping the process explainable and reviewable.

11+

Dreaming is the background memory consolidation system in `memory-core`. It helps OpenClaw move strong short-term signals into durable memory while keeping the process explainable and reviewable.

131213+

<Note>

1414

Dreaming is **opt-in** and disabled by default.

15+

</Note>

15161617

## What dreaming writes

1718

@@ -32,69 +33,63 @@ Dreaming uses three cooperative phases:

3233

| Deep | Score and promote durable candidates | Yes (`MEMORY.md`) |

3334

| REM | Reflect on themes and recurring ideas | No |

343535-

These phases are internal implementation details, not separate user-configured

36-

"modes."

36+

These phases are internal implementation details, not separate user-configured "modes."

373738-

### Light phase

38+

<AccordionGroup>

39+

<Accordion title="Light phase">

40+

Light phase ingests recent daily memory signals and recall traces, dedupes them, and stages candidate lines.

394140-

Light phase ingests recent daily memory signals and recall traces, dedupes them,

41-

and stages candidate lines.

42+

- Reads from short-term recall state, recent daily memory files, and redacted session transcripts when available.

43+

- Writes a managed `## Light Sleep` block when storage includes inline output.

44+

- Records reinforcement signals for later deep ranking.

45+

- Never writes to `MEMORY.md`.

424643-

- Reads from short-term recall state, recent daily memory files, and redacted session transcripts when available.

44-

- Writes a managed `## Light Sleep` block when storage includes inline output.

45-

- Records reinforcement signals for later deep ranking.

46-

- Never writes to `MEMORY.md`.

47+

</Accordion>

48+

<Accordion title="Deep phase">

49+

Deep phase decides what becomes long-term memory.

475048-

### Deep phase

51+

- Ranks candidates using weighted scoring and threshold gates.

52+

- Requires `minScore`, `minRecallCount`, and `minUniqueQueries` to pass.

53+

- Rehydrates snippets from live daily files before writing, so stale/deleted snippets are skipped.

54+

- Appends promoted entries to `MEMORY.md`.

55+

- Writes a `## Deep Sleep` summary into `DREAMS.md` and optionally writes `memory/dreaming/deep/YYYY-MM-DD.md`.

495650-

Deep phase decides what becomes long-term memory.

57+

</Accordion>

58+

<Accordion title="REM phase">

59+

REM phase extracts patterns and reflective signals.

516052-

- Ranks candidates using weighted scoring and threshold gates.

53-

- Requires `minScore`, `minRecallCount`, and `minUniqueQueries` to pass.

54-

- Rehydrates snippets from live daily files before writing, so stale/deleted snippets are skipped.

55-

- Appends promoted entries to `MEMORY.md`.

56-

- Writes a `## Deep Sleep` summary into `DREAMS.md` and optionally writes `memory/dreaming/deep/YYYY-MM-DD.md`.

61+

- Builds theme and reflection summaries from recent short-term traces.

62+

- Writes a managed `## REM Sleep` block when storage includes inline output.

63+

- Records REM reinforcement signals used by deep ranking.

64+

- Never writes to `MEMORY.md`.

576558-

### REM phase

59-60-

REM phase extracts patterns and reflective signals.

61-62-

- Builds theme and reflection summaries from recent short-term traces.

63-

- Writes a managed `## REM Sleep` block when storage includes inline output.

64-

- Records REM reinforcement signals used by deep ranking.

65-

- Never writes to `MEMORY.md`.

66+

</Accordion>

67+

</AccordionGroup>

66686769

## Session transcript ingestion

687069-

Dreaming can ingest redacted session transcripts into the dreaming corpus. When

70-

transcripts are available, they are fed into the light phase alongside daily

71-

memory signals and recall traces. Personal and sensitive content is redacted

72-

before ingestion.

71+

Dreaming can ingest redacted session transcripts into the dreaming corpus. When transcripts are available, they are fed into the light phase alongside daily memory signals and recall traces. Personal and sensitive content is redacted before ingestion.

73727473

## Dream Diary

757476-

Dreaming also keeps a narrative **Dream Diary** in `DREAMS.md`.

77-

After each phase has enough material, `memory-core` runs a best-effort background

78-

subagent turn (using the default runtime model) and appends a short diary entry.

75+

Dreaming also keeps a narrative **Dream Diary** in `DREAMS.md`. After each phase has enough material, `memory-core` runs a best-effort background subagent turn (using the default runtime model) and appends a short diary entry.

797680-

This diary is for human reading in the Dreams UI, not a promotion source.

81-

Dreaming-generated diary/report artifacts are excluded from short-term

82-

promotion. Only grounded memory snippets are eligible to promote into

83-

`MEMORY.md`.

77+

<Note>

78+

This diary is for human reading in the Dreams UI, not a promotion source. Dreaming-generated diary/report artifacts are excluded from short-term promotion. Only grounded memory snippets are eligible to promote into `MEMORY.md`.

79+

</Note>

84808581

There is also a grounded historical backfill lane for review and recovery work:

868287-

- `memory rem-harness --path ... --grounded` previews grounded diary output from historical `YYYY-MM-DD.md` notes.

88-

- `memory rem-backfill --path ...` writes reversible grounded diary entries into `DREAMS.md`.

89-

- `memory rem-backfill --path ... --stage-short-term` stages grounded durable candidates into the same short-term evidence store the normal deep phase already uses.

90-

- `memory rem-backfill --rollback` and `--rollback-short-term` remove those staged backfill artifacts without touching ordinary diary entries or live short-term recall.

83+

<AccordionGroup>

84+

<Accordion title="Backfill commands">

85+

- `memory rem-harness --path ... --grounded` previews grounded diary output from historical `YYYY-MM-DD.md` notes.

86+

- `memory rem-backfill --path ...` writes reversible grounded diary entries into `DREAMS.md`.

87+

- `memory rem-backfill --path ... --stage-short-term` stages grounded durable candidates into the same short-term evidence store the normal deep phase already uses.

88+

- `memory rem-backfill --rollback` and `--rollback-short-term` remove those staged backfill artifacts without touching ordinary diary entries or live short-term recall.

89+

</Accordion>

90+

</AccordionGroup>

919192-

The Control UI exposes the same diary backfill/reset flow so you can inspect

93-

results in the Dreams scene before deciding whether the grounded candidates

94-

deserve promotion. The Scene also shows a distinct grounded lane so you can see

95-

which staged short-term entries came from historical replay, which promoted

96-

items were grounded-led, and clear only grounded-only staged entries without

97-

touching ordinary live short-term state.

92+

The Control UI exposes the same diary backfill/reset flow so you can inspect results in the Dreams scene before deciding whether the grounded candidates deserve promotion. The Scene also shows a distinct grounded lane so you can see which staged short-term entries came from historical replay, which promoted items were grounded-led, and clear only grounded-only staged entries without touching ordinary live short-term state.

98939994

## Deep ranking signals

10095

@@ -109,13 +104,11 @@ Deep ranking uses six weighted base signals plus phase reinforcement:

109104

| Consolidation | 0.10 | Multi-day recurrence strength |

110105

| Conceptual richness | 0.06 | Concept-tag density from snippet/path |

111106112-

Light and REM phase hits add a small recency-decayed boost from

113-

`memory/.dreams/phase-signals.json`.

107+

Light and REM phase hits add a small recency-decayed boost from `memory/.dreams/phase-signals.json`.

114108115109

## Scheduling

116110117-

When enabled, `memory-core` auto-manages one cron job for a full dreaming

118-

sweep. Each sweep runs phases in order: light -> REM -> deep.

111+

When enabled, `memory-core` auto-manages one cron job for a full dreaming sweep. Each sweep runs phases in order: light → REM → deep.

119112120113

Default cadence behavior:

121114

@@ -125,43 +118,44 @@ Default cadence behavior:

125118126119

## Quick start

127120128-

Enable dreaming:

129-130-

```json

131-

{

132-

"plugins": {

133-

"entries": {

134-

"memory-core": {

135-

"config": {

136-

"dreaming": {

137-

"enabled": true

121+

<Tabs>

122+

<Tab title="Enable dreaming">

123+

```json

124+

{

125+

"plugins": {

126+

"entries": {

127+

"memory-core": {

128+

"config": {

129+

"dreaming": {

130+

"enabled": true

131+

}

132+

}

138133

}

139134

}

140135

}

141136

}

142-

}

143-

}

144-

```

145-146-

Enable dreaming with a custom sweep cadence:

147-148-

```json

149-

{

150-

"plugins": {

151-

"entries": {

152-

"memory-core": {

153-

"config": {

154-

"dreaming": {

155-

"enabled": true,

156-

"timezone": "America/Los_Angeles",

157-

"frequency": "0 */6 * * *"

137+

```

138+

</Tab>

139+

<Tab title="Custom sweep cadence">

140+

```json

141+

{

142+

"plugins": {

143+

"entries": {

144+

"memory-core": {

145+

"config": {

146+

"dreaming": {

147+

"enabled": true,

148+

"timezone": "America/Los_Angeles",

149+

"frequency": "0 */6 * * *"

150+

}

151+

}

158152

}

159153

}

160154

}

161155

}

162-

}

163-

}

164-

```

156+

```

157+

</Tab>

158+

</Tabs>

165159166160

## Slash command

167161

@@ -174,47 +168,52 @@ Enable dreaming with a custom sweep cadence:

174168175169

## CLI workflow

176170177-

Use CLI promotion for preview or manual apply:

171+

<Tabs>

172+

<Tab title="Promotion preview / apply">

173+

```bash

174+

openclaw memory promote

175+

openclaw memory promote --apply

176+

openclaw memory promote --limit 5

177+

openclaw memory status --deep

178+

```

178179179-

```bash

180-

openclaw memory promote

181-

openclaw memory promote --apply

182-

openclaw memory promote --limit 5

183-

openclaw memory status --deep

184-

```

180+

Manual `memory promote` uses deep-phase thresholds by default unless overridden with CLI flags.

185181186-

Manual `memory promote` uses deep-phase thresholds by default unless overridden

187-

with CLI flags.

182+

</Tab>

183+

<Tab title="Explain promotion">

184+

Explain why a specific candidate would or would not promote:

188185189-

Explain why a specific candidate would or would not promote:

186+

```bash

187+

openclaw memory promote-explain "router vlan"

188+

openclaw memory promote-explain "router vlan" --json

189+

```

190190191-

```bash

192-

openclaw memory promote-explain "router vlan"

193-

openclaw memory promote-explain "router vlan" --json

194-

```

191+

</Tab>

192+

<Tab title="REM harness preview">

193+

Preview REM reflections, candidate truths, and deep promotion output without writing anything:

195194196-

Preview REM reflections, candidate truths, and deep promotion output without

197-

writing anything:

195+

```bash

196+

openclaw memory rem-harness

197+

openclaw memory rem-harness --json

198+

```

198199199-

```bash

200-

openclaw memory rem-harness

201-

openclaw memory rem-harness --json

202-

```

200+

</Tab>

201+

</Tabs>

203202204203

## Key defaults

205204206205

All settings live under `plugins.entries.memory-core.config.dreaming`.

207206208-

| Key | Default |

209-

| ----------- | ----------- |

210-

| `enabled` | `false` |

211-

| `frequency` | `0 3 * * *` |

212-213-

Phase policy, thresholds, and storage behavior are internal implementation

214-

details (not user-facing config).

207+

<ParamField path="enabled" type="boolean" default="false">

208+

Enable or disable the dreaming sweep.

209+

</ParamField>

210+

<ParamField path="frequency" type="string" default="0 3 * * *">

211+

Cron cadence for the full dreaming sweep.

212+

</ParamField>

215213216-

See [Memory configuration reference](/reference/memory-config#dreaming)

217-

for the full key list.

214+

<Note>

215+

Phase policy, thresholds, and storage behavior are internal implementation details (not user-facing config). See [Memory configuration reference](/reference/memory-config#dreaming) for the full key list.

216+

</Note>

218217219218

## Dreams UI

220219

@@ -230,6 +229,6 @@ When enabled, the Gateway **Dreams** tab shows:

230229

## Related

231230232231

- [Memory](/concepts/memory)

233-

- [Memory Search](/concepts/memory-search)

234-

- [memory CLI](/cli/memory)

232+

- [Memory CLI](/cli/memory)

235233

- [Memory configuration reference](/reference/memory-config)

234+

- [Memory search](/concepts/memory-search)