Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

openclaw-memory-dreamingOpenClaw 记忆 dreaming

Agent Skill

openclaw-memory-dreaming 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,336

周安装

139

GitHub Stars

公开资料未说明

下载量

1,112
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-memory-dreaming(OpenClaw 记忆 dreaming)
来源仓库:https://github.com/ptburkis/openclaw-memory-dreaming
安装命令:
openclaw skills install openclaw-memory-dreaming
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-memory-dreaming

简介

openclaw-memory-dreaming 提供生物学启发的衰退与回忆机制。

  • 适合构建具有持久长期记忆的对话代理。
  • 结合 Markdown 与 JSON 实现对话存档与记忆衰减模型。
  • 安装命令为 openclaw skills install openclaw-memory-dreaming,需配置存储路径。
  • 注意记忆衰退参数设置,避免关键信息过早失效。

SKILL.md

name
memory-dreaming
description
>
source
https://github.com/ptburkis/openclaw-memory-dreaming
homepage
https://github.com/ptburkis/openclaw-memory-dreaming

Memory Dreaming

Agent-native memory and dreaming framework. Plain Markdown and JSON — no RAG, no vector store, no graph database. Just files your human can read and edit.

References (load when needed): - references/architecture.md — data model, biological inspiration, design decisions - references/dream-cycle.md — full dream cycle procedure with examples - references/cold-start.md — starting from zero memories - references/cron-templates.md — ready-to-use OpenClaw cron definitions

Setup

1. Copy scripts to your workspace

cp skills/memory-dreaming/scripts/*.js scripts/

Scripts use path.resolve(__dirname, '..') for workspace root — they must live in <workspace>/scripts/.

2. Bootstrap (if you have an existing MEMORY.md)

node scripts/memory-bootstrap.js          # seed memory-meta.json
node scripts/conversation-archive.js --discover  # see available channels

Starting from scratch? See references/cold-start.md.

3. Set up conversation archiving (optional)

Create archives/archive-config.json to label your groups:

{
  "agentName": "YourName",
  "groups": { "<group-id>": { "name": "my-group", "label": "My Group" } },
  "topicNames": { "<group-id>": { "1": "General" } }
}

Then archive and summarise:

node scripts/conversation-archive.js --all
node scripts/conversation-summarise.js --all

Two Layers

Layer 1: Core Memory

Your curated knowledge — facts, preferences, decisions, people.

FilePurpose
MEMORY.mdLong-term memory (human-readable, agent-edited)
memory/YYYY-MM-DD.mdDaily notes (raw session logs)
memory/memory-meta.jsonDecay metadata per entry
memory/dream-log.mdDream cycle audit trail
memory/archive/YYYY-MM.mdArchived (forgotten) entries

Layer 2: Conversational Memory

Context from group chats, channels, topics — archived and summarised.

FilePurpose
archives/<channel>/<group>/raw/Full conversation transcripts
archives/<channel>/<group>/summaries/AI-generated topic summaries
archives/<channel>/<group>/DIGEST.mdCross-topic master digest
archives/<channel>/<group>/INDEX.mdTopic index with message counts

Memory Tiers

TierAgeDecays?Notes
hot<48hYesNew entries
warm<30dYesRecent
cold<365dYesLong-term
archivedRemovedscore<0.1 + recalls<2
crystallisedNever20+ recalls

Structural entries (IPs, people, URLs, passwords) never decay below 0.3.

Decay Formula

baseDecay    = 1.0 - (daysSinceCreated / maxAgeDays)
recallBoost  = min(recallCount × 0.05, 0.5)
recencyBoost = lastRecalled ≤7d → 0.2 | ≤30d → 0.1 | else → 0
decayScore   = clamp(base + recall + recency, 0.0, 1.0)

Scripts (6)

Core Memory

ScriptPurposeWhen to run
memory-bootstrap.jsSeed meta from MEMORY.mdSetup + after adding entries
memory-decay.jsRecalculate scores, tier transitionsStart of dream cycle
memory-recall-logger.jsLog recall events, boost scoresAfter every memory search
memory-supersede.jsCreate temporal fact chainsWhen facts change

Conversation Memory

ScriptPurposeWhen to run
conversation-archive.jsArchive channel transcriptsNightly (before summarise)
conversation-summarise.jsAI-summarise topics + digestNightly (after archive)

Usage Examples

# Core memory
node scripts/memory-decay.js --verbose
node scripts/memory-recall-logger.js --query "dev server IP" --matches "Dev server: user@203.0.113.10"
node scripts/memory-supersede.js --old "Status: pending" --new "Status: accepted"

# Conversation memory
node scripts/conversation-archive.js --discover     # list available sessions
node scripts/conversation-archive.js --all           # archive everything
node scripts/conversation-archive.js --channel telegram --group my-group
node scripts/conversation-summarise.js --all         # summarise all archived
node scripts/conversation-summarise.js --force       # re-summarise everything

Daily Workflow

Every session

  1. Load MEMORY.md for context.
  2. After searching memory, log recalls:
   node scripts/memory-recall-logger.js --query "<search>" --matches "<matched line>"

When you learn something new

  • Add to MEMORY.md under the right section.
  • If it replaces an old fact, run memory-supersede.js.

Daily notes

  • Create memory/YYYY-MM-DD.md with what happened.
  • Bullet points. Decisions, contacts, technical details, anything worth keeping.

Dream Cycle

Agent-orchestrated consolidation. Run nightly or during quiet heartbeats.

  1. Decaynode scripts/memory-decay.js
  2. Review — Read recent memory/YYYY-MM-DD.md files
  3. Integrate — Move significant items into MEMORY.md
  4. Prune — Remove stale entries (low score, not structural)
  5. Supersede — Chain any changed facts
  6. Log — Append summary to memory/dream-log.md
  7. Re-bootstrapnode scripts/memory-bootstrap.js (picks up new entries)

Full procedure with worked examples: references/dream-cycle.md. Cron job definitions: references/cron-templates.md.


Conversation Context Loading

When receiving a message from a group/topic, load context before responding:

  1. Check archives/<channel>/<group>/summaries/topic-<id>.md for topic context
  2. For cross-topic awareness, skim DIGEST.md
  3. If summary seems stale, re-run archive + summarise for that group

This prevents the "I don't know what you're talking about" problem in long-running group conversations.


Limitations

  • No semantic search. Recall matching is hash → substring → Jaccard word overlap.

Good for exact/close matches. Won't find conceptually related entries.

  • Bootstrap hash is fragile. Based on first 20 chars — editing the start of

an entry creates a new hash and loses history.

  • Dream cycles need judgment. The scripts provide mechanics; you provide

the editorial sense of what's worth keeping.

  • Summarisation costs money. Uses LLM API calls. Free-tier models work

but quality varies. Configure summariseModel in archive-config.json.

  • MEMORY.md is ground truth. Meta tracks metadata; Markdown is what you read.

Keep them in sync.

This is a work in progress. Start simple, observe what works, add complexity when the simple thing breaks.


Credentials & Privacy

Required credentials

Core memory scripts (4): No credentials needed. These are pure local file operations — read/write Markdown and JSON in your workspace.

Conversation summariser: Requires an LLM API key. Set one of:

  • OPENROUTER_API_KEY in .env.openrouter or environment
  • OPENAI_API_KEY in .env.openai or environment

The summariser sends conversation transcripts to the configured LLM provider for summarisation. This means your chat content is sent to a third-party API. Use a self-hosted model or review transcripts before summarising if this is a concern.

Conversation archiver: No credentials. Reads local OpenClaw session transcripts and writes local Markdown files.

What gets read

  • MEMORY.md and memory/ files (your workspace)
  • OpenClaw session transcripts (sessions.json + .jsonl files)
  • .env.openrouter or .env.openai (for API keys, summariser only)
  • archives/archive-config.json (optional config you create)

What gets written

  • memory/memory-meta.json, memory/dream-log.md, memory/archive/
  • archives/<channel>/<group>/ (raw transcripts, summaries, digests)

What gets sent externally

  • Only conversation-summarise.js sends data externally (to your

configured LLM API for summarisation). All other scripts are fully local.

  • Raw conversation text is sent to the LLM. If your transcripts contain

sensitive information, credentials, or private messages, those will be included unless you filter them first.

适合场景

01

调用多模型

02

代码和文本生成

03

Agent 推理流程

04

OpenRouter 模型接入

能力概览

能力 1

统一调用多种 LLM

能力 2

支持 Claude、Gemini、Kimi 等模型

能力 3

适合聊天、代码和推理任务

能力 4

可作为 Agent 模型调用入口

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

79.87%
按下载量换算888

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills