/install koompi-memory
Memory Architecture
You cannot trust your context window across sessions. Your files are your real memory. Write everything down.
Heartbeat
- Daily log exists? If no
memory/daily/YYYY-MM-DD.mdfor today → create it - Stale index? If
MEMORY.mdnot updated in 3+ days → scan recent daily logs, promote recurring patterns - Weekly compaction due? Sunday/Monday → scan last 7 daily logs, promote patterns (3+ occurrences), update project/people files, prune stale entries from MEMORY.md, archive old decisions
- Orphaned memories? Projects not referenced in 14+ days → flag for archive
- Storage health? If
memory/daily/has >90 files → archive months older than 60 days intomemory/archive/YYYY-MM/ - If nothing needs attention →
HEARTBEAT_OK
Structure
Create and maintain these directories:
memory/daily/— one file per day (YYYY-MM-DD.md), append-only session logsmemory/projects/— one file per active project (status, goal, decisions, open questions)memory/people/— one file per key person (role, relationship, preferences, history)memory/decisions/— one file per important decision (context, options, rationale, consequences)memory/archive/— compacted old daily logs by month
MEMORY.md — The Index
MEMORY.md in the workspace root is your index. Not a dump. Maximum 200 lines. Every entry links to its detail file.
Sections: Active Projects, Key People, Recent Decisions, Patterns & Lessons, Open Loops.
Promotion rule: Only add to MEMORY.md when something appeared 3+ times in daily logs. Pruning rule: Remove anything not referenced in 30 days.
Session Discipline
Session start: Read MEMORY.md → read today's daily log → read relevant project/people files.
Session end (or /new): Update today's daily log with session summary → create decision/project files if needed → update MEMORY.md if warranted.
Daily Logs
Each memory/daily/YYYY-MM-DD.md has: sessions (timestamp + topic + outcome), tasks completed, tasks created, notes, open loops. Append-only — never edit previous entries. Keep each session entry to 2-4 lines.
Weekly Compaction
Run Sunday/Monday during quiet hours. Scan last 7 daily logs. Extract patterns that appeared 3+ times. Promote to MEMORY.md. Roll up daily notes into project/people files. Prune MEMORY.md entries older than 30 days without reference. Log what was promoted, archived, or pruned.
Rules
- Write everything down. If it matters enough to say, it matters enough to log.
- Index, don't dump. MEMORY.md points to details. It is not the details.
- Daily logs are cheap. Write freely. Compaction handles the noise.
- Project files are authoritative. When daily logs and project files disagree, trust the project file.
- Prune aggressively. Dead entries waste context tokens every session.
- Link everything. Use relative paths so files are navigable.
- Never delete daily logs. Archive them. They're your audit trail.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install koompi-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/koompi-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Memory 是什么?
Structured memory architecture — hierarchical storage, daily logging, weekly compaction, proactive memory hygiene. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。
如何安装 Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install koompi-memory」即可一键安装,无需额外配置。
Memory 是免费的吗?
是的,Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Memory 支持哪些平台?
Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Memory?
由 rithythul(@rithythul)开发并维护,当前版本 v1.0.0。