返回顶部
b

better-memory智能记忆管理

One-shot smart installation and ongoing maintenance for a native OpenClaw memory stack with L1 daily logs (`memory/YYYY-MM-DD.md`), L2 sidecar summaries, and L3 weekly rollups in `MEMORY.md`. Use when installing memory capability, migrating legacy memory safely, capturing typed memory (`experience`/`value`/`standard`), running daily or weekly distillation, or generating monthly conflict/bloat review reports.

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

better-memory

更好记忆 V2

智能安装(推荐)

运行一次即可增量注入记忆能力,并生成迁移及调度工件:

python3 skills/better-memory/scripts/smart_install.py --workspace .

支持的安装自定义选项:

  • - --daily-time HH:MM(默认 22:00)
  • --weekly-day MON..SUN(默认 SUN)
  • --weekly-time HH:MM(默认 20:00)
  • --monthly-day 1..31(默认 1)
  • --monthly-time HH:MM(默认 10:00)
  • --entry-threshold N(默认 8)

记忆层级

  • - L1(原生):memory/YYYY-MM-DD.md
  • L2(伴生文件):.openclaw-memory-os/l2/{experience,value,standard}.md
  • L3(原生):MEMORY.md 中的托管块

类型分类:

  • - experience:think、say、do
  • value:good、bad
  • standard:right、wrong

命令

  • - 捕获 L1 类型记忆:
python3 skills/better-memory/scripts/capture_memory.py --workspace . --kind --axis --topic --statement
  • - 每日回顾(L1 -> L2):
python3 skills/better-memory/scripts/rundailyreview.py --workspace .
  • - 每周汇总(L2 -> L3):
python3 skills/better-memory/scripts/runweeklyrollup.py --workspace .
  • - 每月咨询回顾(无自动清理):
python3 skills/better-memory/scripts/runmonthlyreview.py --workspace .
  • - 应用已批准的每月清理操作:
python3 skills/better-memory/scripts/applymonthlycleanup.py --workspace . --rerollup - 此命令还会在 .openclaw-memory-os/reviews/apply-summary-*.md 中写入应用摘要。
  • - 生成 cron 模板:
python3 skills/better-memory/scripts/emitcrontemplate.py --workspace .
  • - 旧版迁移计划准备/应用:
- python3 skills/better-memory/scripts/promotelegacymemory.py --workspace . --prepare - python3 skills/better-memory/scripts/promotelegacymemory.py --workspace . --apply

兼容命令:

  • - python3 skills/better-memory/scripts/refine_memory.py --workspace .

- 通过一条命令依次执行每日回顾和每周汇总。

安装策略

  • - 保留现有的 AGENTS.md、MEMORY.md 和每日日志。
  • 仅在 AGENTS.md、MEMORY.md 和可选的 HEARTBEAT.md 中写入托管块。
  • 将伴生工件保留在原生 memory/ 目录之外,以保持 memory_search 行为的整洁。
  • 生成迁移审查和可编辑的迁移计划;除非启用,否则不会自动导入旧版记录。

每月清理策略

  • - 每月脚本仅生成报告和建议操作。
  • 每月脚本还会生成一个默认禁用的清理计划 JSON。
  • 每月回顾时不自动删除或重写记忆。
  • 在用户确认后解决冲突和冗余,启用选定的计划操作,然后应用。

参考资料

阅读 references/memory-schema.md 了解架构和生命周期详情。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 better-memory-1776063740 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 better-memory-1776063740 技能

通过命令行安装

skillhub install better-memory-1776063740

下载

⬇ 下载 better-memory v1.0.4(免费)

文件大小: 28.03 KB | 发布时间: 2026-4-14 14:29

v1.0.4 最新 2026-4-14 14:29
Major upgrade: Switch to a native Python-based memory management system with smart install, typed multi-layer memory, and improved review/cleanup workflows.

- Added scripts for smart installation, daily/weekly/monthly memory review, legacy migration, and cron template generation.
- Introduced structured memory layers (L1 daily logs, L2 sidecar summaries, L3 rollups) and typed taxonomy (`experience`, `value`, `standard`).
- Moved configuration and operations from JavaScript to Python; removed legacy JS files and configs.
- Improved migration safety: preserves existing user data, generates reviews and editable plans instead of automatic changes.
- Monthly review now produces non-destructive reports and actions for user-approved cleanup.
- Updated documentation to detail new commands, installation options, and compatibility guidance.

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

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

p2p_official_large
返回顶部