openclaw-autodream
AI agent skill for OpenClaw — openclaw-autodream
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
🌙 AutoDream for OpenClaw
Automatic Memory Maintenance — Let Your AI Agent Truly "Remember" You
Inspired by the Claude Code Dream Machine. A restricted sub-Agent automatically analyzes all Agent conversations every night, extracts key decisions and preferences, and generates change proposals for your approval.
✨ From 11 manual steps to 1 command — 30 seconds to install.
🇺🇸 English
Core Features
| Feature | Description |
|---|---|
| 4-Phase Pipeline | ORIENT → GATHER → CONSOLIDATE → PRUNE, inspired by dream-skill |
| Grep Pattern Matching | 8 signal types auto-detected (user correction / preference change / important decision / repetition / config change / external resources / file creation / important tasks), 10x more efficient than full-text reading |
| Staging Area | AutoDream only writes proposals to pending-changes/. The main Agent executes after your approval — no accidental memory corruption |
| Multi-Agent Scanning | Scans all Agent sessions (main, sub-agents, etc.), not just the primary Agent |
| Accumulative Trigger | Heartbeat monitors conversation turns; auto-triggers when threshold is reached. Also force-triggers at 3:00 AM |
| Dashboard Visualization | Interactive HTML dashboard with 5 health dimensions (freshness / coverage / connectivity / efficiency / reachability); multi-Agent view — each Agent gets its own health score, card, and summary table |
| One-Command Install | Inspired by dream-skill's install.sh — setup in 30 seconds |
| Semantic Analysis Mode | New semantic output mode sends raw conversation transcripts to the auto-dream Agent, letting the LLM judge semantic importance — filling the blind spots of grep keyword matching. 100 lines per file for semantic mode, 30 lines for others |
Quick Start
install.sh is idempotent — safe to re-run.
# Clone to skills directory
git clone https://github.com/kirin1024/openclaw-autodream ~/.openclaw/workspace/skills/openclaw-autodream
# Run installer
bash ~/.openclaw/workspace/skills/openclaw-autodream/install.sh
# Restart Gateway
openclaw gateway restart
install.sh automatically:
- Creates directory structure
- Writes all core files
- Configures
openclaw.json(adds auto-dream Agent) - Configures macOS
launchdscheduled task (daily at 3:00 AM) - Prints 2 steps that need manual confirmation
Idempotent design: detects existing installation and skips — safe to re-run.
Architecture
┌──────────────────────────────────────────────────────┐
│ Trigger A: Daily at 3:00 AM (launchd) │
│ Trigger B: Heartbeat detects cumulative turns ≥ 30 │
├──────────────────────────────────────────────────────┤
│ Phase 1: ORIENT — Read MEMORY.md + topic files │
│ Phase 2: GATHER — grep signals + semantic + full │
│ ├─ 8 signals: correction/pref/decision/ │
│ │ repetition/config/resources/file-creation/ │
│ │ important-tasks │
│ ├─ Semantic mode: LLM judges importance (100 ln) │
│ ├─ Other modes: 30 lines per file default │
│ └─ Conversation depth scoring │
│ Phase 3: CONSOLIDATE — Generate proposals (staging) │
│ ├─ Each with source evidence │
│ └─ Confidence: high / medium / low │
│ Phase 4: PRUNE — Mark expired entries for archive │
├──────────────────────────────────────────────────────┤
│ Output: │
│ ├─ pending-changes/YYYY-MM-DD.md (proposals) │
│ ├─ kairos-dream-YYYY-MM-DD.md (analysis report) │
│ ├─ dream-state.json (state tracking) │
│ └─ dream-dashboard.html (visualization) │
├──────────────────────────────────────────────────────┤
│ On your next message: │
│ Main Agent checks pending-changes → shows summary │
│ → You confirm → Execute → Delete pending files │
└──────────────────────────────────────────────────────┘
Reminder Mechanism
After AutoDream generates pending-changes/*.md, it does not proactively message you across channels. The reminder strategy is chosen during installation:
- Immediate reminder in terminal after manual trigger
- macOS local notification after daily scheduled run
- Immediate terminal + notification when pending is generated
- Check on next user message — main Agent scans pending first (Recommended)
Option 4 is recommended. It works across all channels (Web / Telegram / Discord / Signal / Feishu) without dependency on any specific messaging platform.
If you choose 4, the installer will auto-patch AGENTS.md with pending-changes check logic, including:
- Session Start check: Check pending on every new session
- Every Turn check + date comparison: On every message, compare current date with last check date (auto-trigger on new day)
- last_pending_check_date: Stored in dream-state.json, ensures cross-day sessions work correctly
Cross-Day Session Support
AutoDream supports cross-Agent memory distribution: after scanning all Agent sessions, it automatically routes change proposals to each Agent's memory/pending-changes/ directory based on the source. Each Agent confirms and writes to its own memory files independently.
The installer auto-creates MEMORY.md templates for all existing sub-Agent workspaces.
Comparison with Open Source Projects
dream-skill
| Feature | dream-skill | AutoDream for OpenClaw |
|---|---|---|
| Trigger | Stop hook | launchd + Heartbeat accumulative |
| Pipeline | 4 phases | ✅ 4 phases (same) |
| Grep matching | ✅ 5 signals | ✅ (adapted, 8 types) |
| Staging mode | ❌ Direct write | ✅ Safe |
| Multi-Agent | ❌ Single project | ✅ All agents |
| Cron filtering | ❌ None | ✅ |
| Dashboard | ❌ None | ✅ |
| Installation | git clone + bash install.sh | install.sh one-click |
openclaw-auto-dream
| Feature | openclaw-auto-dream | AutoDream for OpenClaw |
|---|---|---|
| Memory scoring | importance = base × recency × refs/8 | ✅ Fixed negative recency bug |
| Health monitoring | ✅ 5 dimensions | ✅ (adapted) |
| Staging mode | ❌ Direct write | ✅ Safe |
| Multi-Agent | ❌ | ✅ |
| Dream log | ✅ dream-log.md | ✅ kairos-dream report |
| Installation | ClawHub one-liner | ✅ install.sh one-click |
Customization
# View trigger config
cat ~/.openclaw/workspace/memory/dream-state.json
# Change cumulative threshold (default: 30 turns)
# Edit cumulative_threshold in dream-state.json
# Change trigger time (default: 3:00 AM)
# Edit ~/Library/LaunchAgents/com.openclaw.auto-dream.plist
# Change scan scope
# Edit EXCLUDE_AGENTS / SKIP_KEYWORDS in parse-sessions.py
# View Dashboard
open ~/.openclaw/workspace/memory/dream-dashboard.html
Security Guarantees
- AutoDream can never execute commands, browse the web, or send messages
- AutoDream can never directly update topic files (staging area only)
- AutoDream's own session is always excluded (prevents self-reference loops)
- Cron/auto tasks are always filtered (reduces noise)
- All changes require main Agent review + user confirmation before execution
- Every proposal includes source evidence for verification
- Every proposal includes confidence rating for judgment
- Never records sensitive credentials: passwords, tokens, API keys, SSH private keys, full public keys, cookies, sessions, recovery codes, verification codes, or security answers — even if they appear in conversations
Session Reset Compatibility
When OpenClaw compacts a session's context, it saves the old conversation as .jsonl.reset.{timestamp} files. AutoDream scans the