Better Memory
/install better-memory
Better Memory V2
Smart Install (Recommended)
Run once to inject memory capability additively and generate migration + schedule artifacts:
python3 skills/better-memory/scripts/smart_install.py --workspace .
Supported install customization:
--daily-time HH:MM(default22:00)--weekly-day MON..SUN(defaultSUN)--weekly-time HH:MM(default20:00)--monthly-day 1..31(default1)--monthly-time HH:MM(default10:00)--entry-threshold N(default8)
Memory Layers
- L1 (native):
memory/YYYY-MM-DD.md - L2 (sidecar):
.openclaw-memory-os/l2/{experience,value,standard}.md - L3 (native): managed block in
MEMORY.md
Typed taxonomy:
experience:think,say,dovalue:good,badstandard:right,wrong
Commands
- Capture L1 typed memory:
python3 skills/better-memory/scripts/capture_memory.py --workspace . --kind \x3Cexperience|value|standard> --axis \x3Caxis> --topic "\x3Ctopic>" --statement "\x3Cstatement>" - Daily review (L1 -> L2):
python3 skills/better-memory/scripts/run_daily_review.py --workspace . - Weekly rollup (L2 -> L3):
python3 skills/better-memory/scripts/run_weekly_rollup.py --workspace . - Monthly advisory review (no auto cleanup):
python3 skills/better-memory/scripts/run_monthly_review.py --workspace . - Apply approved monthly cleanup actions:
python3 skills/better-memory/scripts/apply_monthly_cleanup.py --workspace . --rerollup- This command also writes an apply summary in
.openclaw-memory-os/reviews/apply-summary-*.md.
- This command also writes an apply summary in
- Emit cron template:
python3 skills/better-memory/scripts/emit_cron_template.py --workspace . - Legacy migration plan prepare/apply:
python3 skills/better-memory/scripts/promote_legacy_memory.py --workspace . --preparepython3 skills/better-memory/scripts/promote_legacy_memory.py --workspace . --apply
Compatibility command:
python3 skills/better-memory/scripts/refine_memory.py --workspace .- Runs daily review then weekly rollup in one command.
Installation Policy
- Preserve existing
AGENTS.md,MEMORY.md, and daily logs. - Write only managed blocks in
AGENTS.md,MEMORY.md, and optionalHEARTBEAT.md. - Keep sidecar artifacts outside native
memory/somemory_searchbehavior stays clean. - Generate migration review and editable migration plan; do not auto-import legacy lines unless enabled.
Monthly Cleanup Policy
- Monthly script only produces a report and suggested actions.
- Monthly script also produces a disabled-by-default cleanup plan JSON.
- Do not auto-delete or auto-rewrite memory on monthly review.
- Resolve conflicts and bloat with user confirmation, enable selected plan actions, then apply.
References
Read references/memory-schema.md for schema and lifecycle details.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install better-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/better-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 192 次。
如何安装 Better Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install better-memory」即可一键安装,无需额外配置。
Better Memory 是免费的吗?
是的,Better Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Better Memory 支持哪些平台?
Better Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Better Memory?
由 fuuuuujichaos(@fuuuuujichaos)开发并维护,当前版本 v1.0.4。