mirror of https://github.com/openclaw/openclaw.git
2.8 KiB
2.8 KiB
| title | summary | read_when | |||
|---|---|---|---|---|---|
| Dreaming (experimental) | Background promotion from short-term recall into long-term memory |
|
Dreaming (experimental)
Dreaming is the background memory consolidation pass in memory-core.
It is called "dreaming" because the system revisits what came up during the day and decides what is worth keeping as durable context.
Dreaming is experimental, opt-in, and off by default.
What dreaming does
- Tracks short-term recall events from
memory_searchhits inmemory/YYYY-MM-DD.md. - Scores those recall candidates with weighted signals.
- Promotes only qualified candidates into
MEMORY.md.
This keeps long-term memory focused on durable, repeated context instead of one-off details.
Promotion signals
Dreaming combines four signals:
- Frequency: how often the same candidate was recalled.
- Relevance: how strong recall scores were when it was retrieved.
- Query diversity: how many distinct query intents surfaced it.
- Recency: temporal weighting over recent recalls.
Promotion requires all configured threshold gates to pass, not just one signal.
Modes
dreaming.mode controls cadence and default thresholds:
off: dreaming disabled.core: nightly cadence with balanced thresholds.rem: more frequent cadence for active consolidation.deep: stricter promotion gating with slower cadence.
Default presets:
core:0 3 * * *,minScore=0.75,minRecallCount=3,minUniqueQueries=2rem:0 */6 * * *,minScore=0.85,minRecallCount=4,minUniqueQueries=3deep:0 */12 * * *,minScore=0.8,minRecallCount=3,minUniqueQueries=3
Scheduling model
When dreaming is enabled, memory-core manages the recurring schedule
automatically. You do not need to manually create a cron job for this feature.
You can still tune behavior with explicit overrides such as:
dreaming.frequency(cron expression)dreaming.timezonedreaming.limitdreaming.minScoredreaming.minRecallCountdreaming.minUniqueQueries
Configure
{
"plugins": {
"entries": {
"memory-core": {
"config": {
"dreaming": {
"mode": "core"
}
}
}
}
}
}
Operational notes
- Use
/dreaming off|core|rem|deepto switch modes from chat. - Use
openclaw memory promoteto preview candidates andopenclaw memory promote --applyfor manual promotion. - Use
openclaw memory status --deepto inspect current memory and dreaming status.