/memory-archivist
自动归档 + 知识图谱同步 + 记忆生命周期管理
Claude Code
$ npx -y skills add mage0535/hermes-memory-installer --skill memory-archivist --agent claude-code
Codex
$ npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a codex -y
Cursor
$ npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a cursor -y
Gemini CLI
$ npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a gemini-cli -y
GitHub Copilot
$ npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a github-copilot -y
OpenCode
$ npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a opencode -y
Windsurf
$ npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a windsurf -y
SKILL.md
memory-archivist.SKILL.mdname: memory-archivist description: 自动归档 + 知识图谱同步 + 记忆生命周期管理
Memory Archivist
进阶记忆层。实现自动化: 会话归档 → gbrain 知识图谱同步 → 记忆清理。
核心脚本
1. 会话归档 (`archive_sessions.py`)
从 state.db 提取完整对话 → 生成结构化摘要 → 写入 gbrain
python3 scripts/archive_sessions.py --session-id <id>
2. 自动摘要 (`auto_session_summary.py`)
分析对话关键决策/学习/变更 → 生成 session_summary.md
3. 知识图谱同步 (`session_to_gbrain.py`)
增量同步: Hermes state.db → gbrain pages, 含 timeline + tags + wikilinks
python3 scripts/session_to_gbrain.py --resume # 断点续传
4. 记忆生命周期 (`memory_lifecycle.py`)
- 检测 stale 记忆 (>30天未访问)
- 标记 expired 记忆 (>90天)
- 自动清理, 保护已标注 `keep` 的记忆
5. 记忆守护 (`memory_guardian.py`)
11.7KB, 最全面的记忆管理:
- 容量检测 (memory tool 5KB cap)
- 冲突检测 (新旧信息矛盾)
- 智能压缩 (合并重复条目)
- 过期清理
6. 记忆反思 (`memory_reflect.py`)
周期性运行, 分析近期记忆趋势, 生成用户画像更新建议
Cron 配置
# 每日归档 schedule: "30 3 * * *" script: $AGENT_HOME/scripts/archive_sessions.py # 每周生命周期 schedule: "0 4 * * 0" script: $AGENT_HOME/scripts/memory_lifecycle.py
The follow-up memory quality optimization adds canonical runtime path resolution, evaluation trend comparison, private registry linting, policy validity/conflict metadata, gbrain plan summaries, and an operator report. See the optimization report.
Other skills on hermes-memory-installer.
More skills from other plugins.
agent-cost-report
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
mempalace
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
mempalace
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
bot-handoff
Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…
Questions about memory-archivist.
- Which coding agents can use memory-archivist?
- memory-archivist installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

