← 返回 Skills 市场
subcoldzhang

memory ebbinghaus

作者 subcoldzhang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
129
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install memory-ebbinghaus
功能描述
Ebbinghaus forgetting curve memory lifecycle manager for AI agents. Automatically calculates memory strength decay, supports review reinforcement, archiving,...
使用说明 (SKILL.md)

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:

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 \x3C 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

# 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 \x3Ccat> --source \x3Corigin>

# Review and reinforce (resets strength to 1.0, stability ×1.5)
python3 scripts/ebbinghaus.py review \x3Cid>

# Delete a memory item
python3 scripts/ebbinghaus.py forget \x3Cid>

# Archive to MEMORY.md (removes from active list, appends to archive file)
python3 scripts/ebbinghaus.py archive \x3Cid>

# 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
安全使用建议
This skill is internally coherent and implements a local memory manager. Before installing or running it: (1) review and keep a copy of the included scripts (you already have them); (2) run it in a safe directory (don't set EBBINGHAUS_DB or EBBINGHAUS_ARCHIVE to system or sensitive file paths); (3) back up any existing memory_db.json or MEMORY.md you care about; (4) if you plan to add this to an automated heartbeat, ensure the process runs with appropriate user permissions so it cannot write to protected system locations; (5) if you need the script to use the current working directory, update the environment-variable guidance or edit the DB_PATH default in the script to match your expectations.
功能分析
Type: OpenClaw Skill Name: memory-ebbinghaus Version: 1.0.0 The skill bundle provides a legitimate utility for managing an AI agent's memory using the Ebbinghaus forgetting curve. The Python script (ebbinghaus.py) performs local file operations to track, decay, and archive memory items in a JSON database and a Markdown file. There is no evidence of network activity, data exfiltration, or malicious command execution; the logic is transparent and strictly follows the functionality described in SKILL.md.
能力评估
Purpose & Capability
Name, description, SKILL.md, and the included Python script are consistent: the tool manages memory items with a forgetting-curve formula and supports add/review/decay/archive/forget/heartbeat. Minor documentation mismatch: SKILL.md lists the default DB path as './memory_db.json' (current dir) while the script's default is the repository root (parent of scripts/). This is an implementation/documentation divergence but not a functional mismatch.
Instruction Scope
Runtime instructions and commands are narrowly scoped to local file operations and memory workflows. SKILL.md does not ask the agent to read unrelated system files, credentials, or contact external endpoints. Heartbeat integration simply runs the script and expects textual output.
Install Mechanism
No install spec; this is instruction + included script. The script is plain Python, uses only stdlib, and requires no external downloads or package installs.
Credentials
The skill declares no required credentials and uses two optional environment variables (EBBINGHAUS_DB, EBBINGHAUS_ARCHIVE) to pick file paths. This is proportional to the purpose. Note: because these env vars accept arbitrary paths, a user (or misconfigured agent) could point them to sensitive or system files, causing accidental overwrite/appends; that is a usage risk rather than a hidden requirement.
Persistence & Privilege
The skill does not request permanent 'always' inclusion, does not modify other skills, and does not alter agent-wide config. It writes only its own DB and archive files (paths configurable).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install memory-ebbinghaus
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /memory-ebbinghaus 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 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.
元数据
Slug memory-ebbinghaus
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

memory ebbinghaus 是什么?

Ebbinghaus forgetting curve memory lifecycle manager for AI agents. Automatically calculates memory strength decay, supports review reinforcement, archiving,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 129 次。

如何安装 memory ebbinghaus?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install memory-ebbinghaus」即可一键安装,无需额外配置。

memory ebbinghaus 是免费的吗?

是的,memory ebbinghaus 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

memory ebbinghaus 支持哪些平台?

memory ebbinghaus 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 memory ebbinghaus?

由 subcoldzhang(@subcoldzhang)开发并维护,当前版本 v1.0.0。

💬 留言讨论