← Back to Skills Marketplace
realpda

Hermes Memory Sync

by RealGhost · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
53
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hermes-memory-sync
Description
Extract daily conversation summaries from Hermes Agent session logs and persist them as readable memory files. Covers the Python extraction script, cron setu...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hermes-memory-sync
  3. After installation, invoke the skill by name or use /hermes-memory-sync
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug hermes-memory-sync
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 53 downloads so far.

How do I install Hermes Memory Sync?

Run "/install hermes-memory-sync" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Hermes Memory Sync free?

Yes, Hermes Memory Sync is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Hermes Memory Sync support?

Hermes Memory Sync is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Hermes Memory Sync?

It is built and maintained by RealGhost (@realpda); the current version is v1.0.0.

💬 Comments