← 返回 Skills 市场
realpda

Hermes Memory Sync

作者 RealGhost · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
53
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hermes-memory-sync
功能描述
Extract daily conversation summaries from Hermes Agent session logs and persist them as readable memory files. Covers the Python extraction script, cron setu...
使用说明 (SKILL.md)

\r \r

Hermes Memory Sync\r

\r Automated 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.\r \r

When to Use\r

\r

  • Setting up memory persistence for Hermes Agent (beyond built-in memory/session_search)\r
  • Recovering or backfilling memory from earlier sessions\r
  • Creating a human-readable daily log of what was discussed\r
  • Auditing session history by topic or tool usage\r \r

Installation\r

\r

1. Place the script\r

\r Copy hermes-memory-sync.py to your workspace:\r \r

# Windows\r
copy hermes-memory-sync.py C:\path	o\workspace\\r
\r
# Linux/macOS\r
cp hermes-memory-sync.py ~/workspace/\r
```\r
\r
### 2. Verify\r
\r
```bash\r
cd /path/to/workspace\r
python hermes-memory-sync.py stats\r
```\r
\r
Expected output: shows active days, total messages, sessions, and existing memory files.\r
\r
## Usage\r
\r
```bash\r
# Show coverage gaps between sessions and existing memory files\r
python hermes-memory-sync.py compare\r
\r
# Backfill today's memory\r
python hermes-memory-sync.py backfill today\r
\r
# Backfill a specific date\r
python hermes-memory-sync.py backfill 2026-05-03\r
\r
# Backfill all missing dates (first-time setup)\r
python hermes-memory-sync.py backfill all\r
\r
# Show stats\r
python hermes-memory-sync.py stats\r
```\r
\r
## Cron Setup (Hermes Native)\r
\r
Use Hermes' built-in cron to run daily at 3 AM:\r
\r
```\r
cronjob action=create name="memory-sync-daily"\r
  prompt="Run Hermes memory sync: cd /path/to/workspace && python hermes-memory-sync.py backfill today"\r
  schedule="0 3 * * *"\r
```\r
\r
The cron job creates files at `workspace/memory/YYYY-MM-DD.md` each morning.\r
\r
## Output Format\r
\r
Each memory file contains:\r
\r
```\r
# 📅 YYYY-MM-DD\r
\r
**会话数:** N | **消息总数:** N\r
**用户提问:** N | **助手回复:** N | **工具调用:** N\r
**使用的模型:** model1, model2\r
\r
## 🎯 讨论主题\r
- Topic 1\r
- Topic 2\r
\r
## 💬 关键对话\r
**Q:** User question...\r
> **A:** Assistant response...\r
\r
## ⚡ 决策/方案\r
- Decision item...\r
\r
## 🛠️ 工具使用\r
- Tool call summary...\r
\r
---\r
*自动生成于 YYYY-MM-DD HH:MM,来自 N 个会话*\r
```\r
\r
## Supported Session Files\r
\r
The script reads two types of Hermes session data:\r
\r
### 1. `session_*.json` (full session records)\r
- Located at `%LOCALAPPDATA%/hermes/sessions/` (Windows)\r
- Complete conversation history with `messages` array\r
- Includes `session_id`, `model`, `platform`, `session_start`\r
\r
### 2. `YYYYMMDD_HHMMSS_*.jsonl` (per-message logs)\r
- Same sessions directory\r
- One JSON object per line with `{role, content, timestamp}`\r
- Uses Hermes format (NOT OpenClaw format)\r
\r
## Pitfalls\r
\r
- **Memory usage** — periodically review and consolidate memory entries. Over-full memory causes truncation and lost context.\r
- **JSONL vs JSON confusion** — The sessions directory contains both `.jsonl` and `.json` files. The script handles both, but `request_dump_*.json` files (individual request/response dumps) are intentionally skipped to avoid duplication.\r
- **Don't confuse with ClawHub `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.\r
安全使用建议
Before installing, inspect the full Python script, set the input and output directories explicitly, run stats/compare before any backfill, review the generated Markdown for sensitive content, and only create the daily cron job if you want ongoing memory persistence.
功能分析
Type: OpenClaw Skill Name: hermes-memory-sync Version: 1.0.0 The hermes-memory-sync skill is a utility designed to aggregate and summarize Hermes Agent session logs into daily markdown files. The Python script (hermes-memory-sync.py) parses local JSON and JSONL log files to extract conversation topics and tool usage, writing the output to a local workspace directory. The instructions in SKILL.md guide the agent to automate this process using a built-in cron feature. The code uses standard libraries, lacks network activity or obfuscation, and its behavior is entirely consistent with its stated purpose of session log management.
能力评估
Purpose & Capability
The stated purpose matches the visible code: it parses Hermes session JSON/JSONL logs and writes daily Markdown summaries. This is inherently sensitive because those logs can contain private conversations, tool outputs, and decisions.
Instruction Scope
The commands are presented as user-directed setup and usage, including compare, backfill, and stats. However, the documented 'backfill all' workflow can process all available historical sessions.
Install Mechanism
There is no remote installer or package download; installation is a manual copy-and-run Python script. The source is listed as unknown and the supplied code view is truncated, so users should inspect the full script before running it.
Credentials
The script defaults to hard-coded Administrator Windows paths for both input session logs and output memory, while the skill documentation describes generic workspace/local-app-data locations and metadata declares no required config paths.
Persistence & Privilege
The skill is designed to create persistent memory files and documents an optional daily cron job. That behavior is disclosed, but it can keep summarizing sensitive session history over time without shown redaction, retention, or exclusion controls.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hermes-memory-sync
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hermes-memory-sync 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of hermes-memory-sync: Automated daily extraction of conversation summaries from Hermes Agent sessions. - Reads Hermes session logs (JSON/JSONL), extracts key details, and generates daily memory files. - Groups conversations by day, summarizing topics, decisions, questions, and tool usage. - Supports backfilling, comparing, and auditing via command-line options. - Designed for easy setup with Hermes-native cron jobs. - Output: Human-readable Markdown summaries in `workspace/memory/YYYY-MM-DD.md`. - Handles both `.json` session files and `.jsonl` per-message logs, excluding raw request dumps.
元数据
Slug hermes-memory-sync
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Hermes Memory Sync 是什么?

Extract daily conversation summaries from Hermes Agent session logs and persist them as readable memory files. Covers the Python extraction script, cron setu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 53 次。

如何安装 Hermes Memory Sync?

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

Hermes Memory Sync 是免费的吗?

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

Hermes Memory Sync 支持哪些平台?

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

谁开发了 Hermes Memory Sync?

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

💬 留言讨论