Install
openclaw skills install @guyxlouspg/cat-viking-memory支持五级自动记忆管理和重要记忆保护,集成飞书群聊会话自动保存与向量相似度检索,提升跨 Agent 记忆共享。
openclaw skills install @guyxlouspg/cat-viking-memory确保以下文件已复制到你的技能目录:
cat-viking-memory/
├── config.json
├── SKILL.md
├── memory-pipeline/ # CLI 主入口和脚本
├── simple-viking/ # 向量搜索
└── references/ # 文档
├── README.md # 详细使用说明
└── 飞书集成说明.md
编辑 config.json 中的配置:
{
"memory_workspace": "~/.openclaw/viking-{agent}",
"auto_save_enabled": true,
"feishu_integration": {
"enabled": false
}
}
每天凌晨 3 点自动执行记忆降级:
# crontab -e
0 3 * * ~/.openclaw/workspace/agents/maozhuli/cat-viking-memory/memory-pipeline/memory-tier-cron.sh
如需飞书群聊会话自动保存:
config.json:
"feishu_integration": {
"enabled": true,
"check_interval_ms": 300000,
"timeout_ms": 1800000
}
references/飞书集成说明.md 详细步骤# 加载记忆上下文
memory-pipeline mp_autoload
# 保存记忆
memory-pipeline mp_global "任务完成说明"
# 搜索记忆
sv_find "关键词"
# 手动触发降级(测试)
memory-pipeline/memory-tier-cron.sh
references/README.mdreferences/飞书集成说明.mdreferences/README.md 的"记忆文件格式"章节存储流程:
输入 → Ontology映射 → Viking存储 → 向量索引 → 检索
层级管理:
L0(0-1天) → L1(2-7天) → L2(8-30天) → L3(30-90天) → L4(90天+)
自动保存:
会话结束 → memory-session-hook.sh → mp_global → 存储
飞书集成:
FeishuSessionManager → 检测超时 → 触发 Hook → 保存
memory-pipeline 命令存取,不要直接操作文件--important 标记永不忘记的关键信息chmod +x memory-pipeline/*.sh基于 OpenViking 思想设计,专为 OpenClaw Agents 打造