闲社服务运行正常AI智能体自动化平台
m

艾宾浩斯记忆管理

技能标识:memory-ebbinghaus

Ebbinghaus forgetting curve memory lifecycle manager for AI agents. Automatically calculates memory strength decay, supports review reinforcement, archiving, and deletion. Use when managing agent memory files, cleaning up stale knowledge, or implementing spaced repetition for long-term memory. Triggers on "memory management", "forgetting curve", "clean up memory", "which memories are fading", "review memory", "add memory item", "记忆管理", "遗忘曲线", "清理记忆", "哪些记忆快忘了", "复习记忆".

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
2
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

艾宾浩斯记忆管理

记忆艾宾浩斯

基于艾宾浩斯遗忘曲线的记忆生命周期管理器。通过强度衰减、复习强化和归档来追踪记忆项目。

设置

首次运行——初始化数据库:
bash
python3 scripts/ebbinghaus.py status

如果未找到,会在当前目录自动创建 memory_db.json

使用自定义路径:
bash
EBBINGHAUSDB=/path/to/memorydb.json \
EBBINGHAUS_ARCHIVE=/path/to/MEMORY.md \
python3 scripts/ebbinghaus.py status

环境变量:

变量默认值描述
EBBINGHAUSDB./memorydb.jsonJSON数据库的路径
EBBINGHAUS_ARCHIVE
./MEMORY.md | 追加归档记忆的文件 |

核心概念

强度公式:strength = e^(-days_elapsed / stability)

状态强度含义
🟢 活跃≥ 0.7近期使用,记忆清晰
🟡 衰减中
0.3–0.7 | 有一段时间未使用 |
| 🔴 消退中 | < 0.3 | 需要复习或清理 |

稳定性:初始值为1.0,每次复习乘以1.5(复习越多,遗忘越慢)。

命令

bash

查看所有记忆项目及其当前强度


python3 scripts/ebbinghaus.py status

重新计算所有强度值(每日运行)

python3 scripts/ebbinghaus.py decay

添加新的记忆项目

python3 scripts/ebbinghaus.py add 内容描述 --category <类别> --source <来源>

复习并强化(强度重置为1.0,稳定性×1.5)

python3 scripts/ebbinghaus.py review

删除记忆项目

python3 scripts/ebbinghaus.py forget

归档到MEMORY.md(从活跃列表中移除,追加到归档文件)

python3 scripts/ebbinghaus.py archive

心跳模式——打印需要关注的项目

python3 scripts/ebbinghaus.py heartbeat

心跳集成

添加到你的心跳配置中:

  • - 记忆衰减检查:python3 /path/to/scripts/ebbinghaus.py heartbeat

心跳输出规则:

  • - 存在🔴项目 → 提醒用户,询问复习还是遗忘?
  • 仅有🟡项目 → 静默记录,不中断
  • 全部🟢 → 输出HEARTBEAT_OK

类别

类别含义
project项目/任务完成
tech
技术发现/解决方案 | | person | 关于某人的记忆 | | event | 重要事件 | | general | 其他 |

典型工作流程

清理旧记忆:

  1. 1. 运行decay然后status
  2. 列出🔴项目,询问用户:复习/遗忘/归档?
  3. 执行所选操作

记住这个:XXX:

  1. 1. 运行add XXX
  2. 确认已添加

哪些记忆正在消退?:

  1. 1. 运行decay更新强度
  2. 运行status,高亮显示🔴项目

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 memory-ebbinghaus-1776012009 技能

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

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

通过命令行安装

skillhub install memory-ebbinghaus-1776012009

下载

⬇ 下载 memory-ebbinghaus v1.0.0(免费)

文件大小: 4.71 KB | 发布时间: 2026-4-13 11:00

v1.0.0 最新 2026-4-13 11:00
- Initial release of memory-ebbinghaus: an Ebbinghaus forgetting curve memory lifecycle manager for AI agents.
- Tracks memory items with automatic strength decay, review reinforcement, archiving, and deletion.
- Integrates spaced repetition by recalculating memory strength and adjusting stability on review.
- Supports heartbeat mode to alert on fading (🔴) memory items.
- Command-line interface provided for adding, reviewing, forgetting, archiving, and status checking.
- Triggers on memory management and forgetting curve-related tasks in both English and Chinese.
返回顶部