openclaw-memory-fix

OpenClaw记忆系统优化方案 - 四层架构 + 动态衰减 + 智能检索

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openclaw-memory-fix" with this command: npx skills add githubxiaohei/openclaw-memory-fix

OpenClaw Memory Fix 🧠

OpenClaw记忆系统优化方案 - 四层架构 + 动态衰减 + 智能检索

功能

1. 四层记忆架构

  • L1 短期记忆:当前会话、任务状态
  • L2 情景记忆:场景、情绪、置信度
  • L3 语义记忆:知识库、经验教训
  • L4 长期记忆:核心原则、用户画像

2. 层间迁移

方向触发条件
L1→L2任务完成、用户确认
L2→L3相似情景3次+
L3→L4知识验证10次+

3. 动态衰减

  • L4核心原则:永久保留
  • L4画像:1%/月
  • L3知识:5%/月
  • L2情景:10%/月
  • L1临时:50%/会话

4. 智能检索

  • 向量索引 + 知识图谱
  • 多维筛选(标签/时间/情绪)

5. 自我反思

  • 记忆模糊时主动询问
  • 效能监控与调优

使用方法

# 查看记忆状态
node scripts/memory.js status

# 手动触发迁移
node scripts/memory.js migrate

# 触发遗忘模拟
node scripts/memory.js preview-decay

配置

在 WORKSPACE 下创建 memory/ 目录:

memory/
├── L1/           # 短期记忆
├── L2/           # 情景记忆
├── L3/           # 语义记忆
├── L4/           # 长期记忆
└── config.json   # 配置文件

详细文档

参考:references/MEMORY.md

更新日志

  • 2026-03-08: 初始版本
    • 四层架构
    • 动态衰减
    • 智能检索
    • 自我反思

作者:Odin for 馒头哥

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Digicert

DigiCert integration. Manage Certificates, Orders, Users, Organizations. Use when the user wants to interact with DigiCert data.

Registry SourceRecently Updated
General

Dialpad

Dialpad integration. Manage Users, Groups, Departments, Offices. Use when the user wants to interact with Dialpad data.

Registry SourceRecently Updated
General

Darwinbox

Darwinbox integration. Manage Organizations, Goals, Roles, Projects, Pipelines, Leads and more. Use when the user wants to interact with Darwinbox data.

Registry SourceRecently Updated
General

Creatio

Creatio integration. Manage Leads, Organizations, Users. Use when the user wants to interact with Creatio data.

Registry SourceRecently Updated