返回顶部
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
安全检测
已通过
83
下载量
2
收藏
概述
安装方式
版本历史

memory-ebbinghaus

# Memory Ebbinghaus Ebbinghaus forgetting curve-based memory lifecycle manager. Tracks memory items with strength decay, review reinforcement, and archiving. ## Setup First run — initialize the database: ```bash python3 scripts/ebbinghaus.py status # Auto-creates memory_db.json in current directory if not found ``` To use a custom path: ```bash EBBINGHAUS_DB=/path/to/memory_db.json \ EBBINGHAUS_ARCHIVE=/path/to/MEMORY.md \ python3 scripts/ebbinghaus.py status ``` **Environment variables:** | Variable | Default | Description | |----------|---------|-------------| | `EBBINGHAUS_DB` | `./memory_db.json` | Path to the JSON database | | `EBBINGHAUS_ARCHIVE` | `./MEMORY.md` | File to append archived memories | ## Core Concept **Strength formula**: `strength = e^(-days_elapsed / stability)` | Status | Strength | Meaning | |--------|----------|---------| | 🟢 Active | ≥ 0.7 | Recently used, clear memory | | 🟡 Decaying | 0.3–0.7 | Not used for a while | | 🔴 Fading | < 0.3 | Needs review or cleanup | **Stability**: starts at 1.0, multiplied by 1.5 on each review (the more you review, the slower it fades). ## Commands ```bash # View all memory items and their current strength python3 scripts/ebbinghaus.py status # Recalculate all strength values (run daily) python3 scripts/ebbinghaus.py decay # Add a new memory item python3 scripts/ebbinghaus.py add "content description" --category <cat> --source <origin> # Review and reinforce (resets strength to 1.0, stability ×1.5) python3 scripts/ebbinghaus.py review <id> # Delete a memory item python3 scripts/ebbinghaus.py forget <id> # Archive to MEMORY.md (removes from active list, appends to archive file) python3 scripts/ebbinghaus.py archive <id> # Heartbeat mode — print items needing attention python3 scripts/ebbinghaus.py heartbeat ``` ## Heartbeat Integration Add to your heartbeat config: ``` - Memory decay check: python3 /path/to/scripts/ebbinghaus.py heartbeat ``` Heartbeat output rules: - 🔴 items exist → alert user, ask "review or forget?" - Only 🟡 items → log silently, no interruption - All 🟢 → output `HEARTBEAT_OK` ## Categories | category | Meaning | |----------|---------| | `project` | Project/task completion | | `tech` | Technical findings/solutions | | `person` | Memory about someone | | `event` | Important events | | `general` | Other | ## Typical Workflows **"Clean up old memories"**: 1. Run `decay` then `status` 2. List 🔴 items, ask user: review / forget / archive? 3. Execute chosen action **"Remember this: XXX"**: 1. Run `add "XXX"` 2. Confirm added **"Which memories are fading?"**: 1. Run `decay` to update strengths 2. Run `status`, highlight 🔴 items

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install memory-ebbinghaus-1776012009

下载 Zip 包

⬇ 下载 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.

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

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

p2p_official_large
返回顶部