← 返回
未分类

memory ebbinghaus

Ebbinghaus forgetting curve memory lifecycle manager for AI agents. Automatically calculates memory strength decay, supports review reinforcement, archiving,...
基于艾宾浩斯遗忘曲线的AI代理记忆生命周期管理器,自动计算记忆强度衰减,支持复习强化、归档等功能。
subcoldzhang subcoldzhang 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 2
Stars
📥 393
下载
💾 0
安装
1
版本
#latest

概述

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:

python3 scripts/ebbinghaus.py status
# Auto-creates memory_db.json in current directory if not found

To use a custom path:

EBBINGHAUS_DB=/path/to/memory_db.json \
EBBINGHAUS_ARCHIVE=/path/to/MEMORY.md \
python3 scripts/ebbinghaus.py status

Environment variables:

VariableDefaultDescription
--------------------------------
EBBINGHAUS_DB./memory_db.jsonPath to the JSON database
EBBINGHAUS_ARCHIVE./MEMORY.mdFile to append archived memories

Core Concept

Strength formula: strength = e^(-days_elapsed / stability)

StatusStrengthMeaning
---------------------------
🟢 Active≥ 0.7Recently used, clear memory
🟡 Decaying0.3–0.7Not used for a while
🔴 Fading< 0.3Needs review or cleanup

Stability: starts at 1.0, multiplied by 1.5 on each review (the more you review, the slower it fades).

Commands

# 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

categoryMeaning
-------------------
projectProject/task completion
techTechnical findings/solutions
personMemory about someone
eventImportant events
generalOther

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 09:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,229 📥 268,119
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,085 📥 813,252
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,383 📥 320,810