返回顶部
a

autodream

>-

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
104
下载量
0
收藏
概述
安装方式
版本历史

autodream

# Autodream — Memory Consolidation Consolidates scattered daily memory files into a clean, organized `MEMORY.md`. ## When to Use - **Manually**: User says "consolidate memory", "dream", "clean up memory", "organize my memories" - **Via heartbeat**: Periodically check if consolidation is needed (24h+ since last run AND 5+ new files) - **After major events**: Big refactor, project changes, many new daily files ## Quick Start ```bash # Check if consolidation is needed node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --stats # Run consolidation (dry run first!) node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --dry-run --verbose # Run for real node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --verbose # Force full reconsolidation node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --force --verbose ``` Replace `{{workspace}}` with your actual workspace path (e.g., `~/.openclaw/workspace`). ## If Installed Globally ```bash # npm install -g openclaw-autodream autodream ~/.openclaw/workspace --stats autodream ~/.openclaw/workspace --verbose autodream ~/.openclaw/workspace --dry-run ``` ## What It Does (4 Phases) ### Phase 1: Orientation - Reads existing `MEMORY.md` (if any) - Scans `memory/` for daily files - Identifies files changed since last consolidation ### Phase 2: Gather Signal - Extracts structured entries from each daily file - Classifies into categories: People, Projects, Preferences, Technical Decisions, Events, Lessons - Scores importance of each entry ### Phase 3: Consolidation - Removes exact duplicates (hash-based) - Removes fuzzy duplicates (similarity > 75%) - Prunes stale entries (completed tasks, old debugging notes) - Normalizes relative dates ("yesterday" → "2026-03-24") ### Phase 4: Prune & Index - Enforces max line limit (default: 200 lines) - Prioritizes by importance × recency - Writes clean `MEMORY.md` with category sections - Backs up previous `MEMORY.md` to `memory/.autodream-backups/` ## Heartbeat Integration Add to your `HEARTBEAT.md`: ```markdown ## Memory Consolidation Check - Run `autodream <workspace> --stats` to check if consolidation is needed - If "Would trigger: ✅ yes", run `autodream <workspace> --verbose` - Only run consolidation during quiet hours (not while human is actively chatting) ``` ## Configuration Create `.autodream.json` in workspace root to customize: ```json { "maxLines": 200, "lookbackDays": 30, "categories": [ "People & Relationships", "Projects & Work", "Preferences & Style", "Technical Decisions", "Important Events", "Lessons Learned" ], "preservePatterns": ["⚠️", "IMPORTANT", "NEVER", "ALWAYS"], "triggerThreshold": { "minHoursSinceLastRun": 24, "minNewFiles": 5 } } ``` ## Safety - **Non-destructive**: Always backs up existing `MEMORY.md` before modifying - **Backups**: Stored in `memory/.autodream-backups/` - **Reports**: Consolidation reports in `memory/.autodream-reports/` - **Dry run**: Always available with `--dry-run` - **Protected entries**: Entries with ⚠️, IMPORTANT, NEVER, ALWAYS are never pruned ## Output Format ```markdown # Long-Term Memory <!-- Last consolidated: 2026-03-25T17:00:00Z | Files processed: 31 | Entries: 47 --> ## People & Relationships - **Bob Smith** — Team Lead test run passed (2026-03-25) ## Projects & Work - **Acme Corp** — Q1 review: 30.1% margin, targeting 40% (2026-03-25) ## Preferences & Style - Values precision and factual accuracy (2026-02-01) ## Technical Decisions - Using Supabase + Vercel for Project Alpha (2026-03-18) ## Lessons Learned - Always backup before modifying production data (2026-02-15) ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 autodream-1775998029 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 autodream-1775998029 技能

通过命令行安装

skillhub install autodream-1775998029

下载 Zip 包

⬇ 下载 autodream v1.0.0

文件大小: 2.43 KB | 发布时间: 2026-4-13 09:26

v1.0.0 最新 2026-4-13 09:26
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部