Install
openclaw skills install hermes-memory-syncExtract daily conversation summaries from Hermes Agent session logs and persist them as readable memory files. Covers the Python extraction script, cron setup, and output format.
openclaw skills install hermes-memory-syncAutomated daily memory extraction from Hermes Agent session logs. Reads session JSON/JSONL files, groups conversations by day, extracts key topics/decisions/tools used, and writes structured summaries to workspace/memory/YYYY-MM-DD.md.
Copy hermes-memory-sync.py to your workspace:
# Windows
copy hermes-memory-sync.py C:\path\to\workspace\
# Linux/macOS
cp hermes-memory-sync.py ~/workspace/
cd /path/to/workspace
python hermes-memory-sync.py stats
Expected output: shows active days, total messages, sessions, and existing memory files.
# Show coverage gaps between sessions and existing memory files
python hermes-memory-sync.py compare
# Backfill today's memory
python hermes-memory-sync.py backfill today
# Backfill a specific date
python hermes-memory-sync.py backfill 2026-05-03
# Backfill all missing dates (first-time setup)
python hermes-memory-sync.py backfill all
# Show stats
python hermes-memory-sync.py stats
Use Hermes' built-in cron to run daily at 3 AM:
cronjob action=create name="memory-sync-daily"
prompt="Run Hermes memory sync: cd /path/to/workspace && python hermes-memory-sync.py backfill today"
schedule="0 3 * * *"
The cron job creates files at workspace/memory/YYYY-MM-DD.md each morning.
Each memory file contains:
# 📅 YYYY-MM-DD
**会话数:** N | **消息总数:** N
**用户提问:** N | **助手回复:** N | **工具调用:** N
**使用的模型:** model1, model2
## 🎯 讨论主题
- Topic 1
- Topic 2
## 💬 关键对话
**Q:** User question...
> **A:** Assistant response...
## ⚡ 决策/方案
- Decision item...
## 🛠️ 工具使用
- Tool call summary...
---
*自动生成于 YYYY-MM-DD HH:MM,来自 N 个会话*
The script reads two types of Hermes session data:
session_*.json (full session records)%LOCALAPPDATA%/hermes/sessions/ (Windows)messages arraysession_id, model, platform, session_startYYYYMMDD_HHMMSS_*.jsonl (per-message logs){role, content, timestamp}.jsonl and .json files. The script handles both, but request_dump_*.json files (individual request/response dumps) are intentionally skipped to avoid duplication.memory-sync — That skill is designed for OpenClaw's JSONL format ({type, message} schema). This Hermes-native implementation directly parses Hermes format ({role, content} schema). See clawhub-skills-install skill for format differences.