Search

PythonReactSEOPDF
OpenClaw

openclaw-memory-fix

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

githubxiaohei0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install githubxiaohei/openclaw-memory-fix

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 information

Source
github
Repository
openclaw/skills
Path
skills/githubxiaohei/openclaw-memory-fix
Version
—
Commit
8528fd942e75595580f2bacef6384e99b280ca39
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 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. 自我反思
- 记忆模糊时主动询问
- 效能监控与调优

## 使用方法

```bash
# 查看记忆状态
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 馒头哥

Related skills

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.