hermes-config-backup

hermes-config-backup is a skill for Claude Code, Codex from john-data-chen/hermes-agent-backup. It costs 30 tokens per session (861 once invoked), scanned C, original, MIT.

A procedure for making a backup of selected Hermes configuration, memories, skills, and scheduled jobs while leaving out secrets such as API keys and login tokens. Hermes is the agent environment whose files are being backed up.

In plain words
What is it for?
Use it to prepare a safer backup of Hermes settings, memory files, skills, and cron jobs, then scan the backup for exposed secrets.
Why use it?
It preserves important agent settings without packaging credentials or private session data into the backup. It also checks the copied files for accidental information leaks before compression.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for hermes-agent. Also seen: built for hermes-agent.

Good fit Use it to prepare a safer backup of Hermes settings, memory files, skills, and cron jobs, then scan the backup for exposed secrets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/john-data-chen/hermes-agent-backup/hermes-config-backup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add john-data-chen/hermes-agent-backup --skill hermes-config-backup
Clone the repo
git clone --depth 1 https://github.com/john-data-chen/hermes-agent-backup

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hermes-config-backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/john-data-chen/hermes-agent-backup/hermes-config-backup.svg)](https://agentmods.dev/skills/john-data-chen/hermes-agent-backup/hermes-config-backup)
Your own site
<a href="https://agentmods.dev/skills/john-data-chen/hermes-agent-backup/hermes-config-backup"><img src="https://agentmods.dev/badge/skills/john-data-chen/hermes-agent-backup/hermes-config-backup.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 861 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00861
Opus 5 $0.00015 $0.00430
Sonnet 5 $0.00006 $0.00172
Haiku 4.5 $0.00003 $0.00086

Measured 7d ago against content hash 9d072146be83, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

hermes-config-backup scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$BACKUP_DIR"
skills/devops/hermes-config-backup/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hermes Config Backup

Backup essential Hermes files. Exclude secrets and sensitive data.

What to Backup

Include Exclude
config.yaml .env (API keys)
memories/MEMORY.md auth.json (OAuth tokens)
memories/USER.md state.db (session store)
skills/ (all) sessions/ (transcripts)
cron/jobs.json *.lock (0-byte)
hermes-agent/ (source)
logs/, cache/, audio_cache/, image_cache/
.DS_Store

Workflow

1. Prepare temp directory

BACKUP_DIR="/tmp/hermes-backup-$(date +%Y%m%d_%H%M%S)"
mkdir -p "$BACKUP_DIR"
cd ~/.hermes

2. Copy files

cp config.yaml "$BACKUP_DIR/"
mkdir -p "$BACKUP_DIR/memories"
cp memories/MEMORY.md memories/USER.md "$BACKUP_DIR/memories/"
mkdir -p "$BACKUP_DIR/skills"
rsync -a --exclude='*.lock' --exclude='.DS_Store' --exclude='node_modules' skills/ "$BACKUP_DIR/skills/"
mkdir -p "$BACKUP_DIR/cron"
cp cron/jobs.json "$BACKUP_DIR/cron/"

3. Check for info leakage

Before compressing, scan for sensitive data:

# API keys (non-empty)
grep -rE 'api_key:\s*[^'\'']' "$BACKUP_DIR/" | grep -v node_modules

# Tokens
grep -rE 'ghp_|gho_|github_pat_|sk-[a-zA-Z0-9]{20,}' "$BACKUP_DIR/" | grep -v node_modules | grep -v 'example\|sample\|xxx'

# Phone numbers (exclude numeric config values)
grep -rE '\+?[0-9]{1,4}[-.\s]?\(?\d{1,4}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9}' "$BACKUP_DIR/" | grep -v 'timeout\|limit\|max\|min\|bytes\|chars\|sample_rate\|bit_rate'

# Email addresses
grep -rE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' "$BACKUP_DIR/"

If real secrets found → redact before compressing.

4. Compress as zip

ZIP_FILE="$HOME/backups/hermes/hermes-backup-$(date +%Y%m%d_%H%M%S).zip"
mkdir -p "$(dirname "$ZIP_FILE")"
cd "$BACKUP_DIR" && zip -r "$ZIP_FILE" . -x '*.DS_Store'

5. Cleanup

rm -rf "$BACKUP_DIR"

Pitfalls

Never include .env or auth.json. These contain API keys and OAuth tokens.

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 95 lines · 30 tokens per session scan C 9d072146be83

Subscribe to this mod's changes

hermes-config-backup is a skill published in the GitHub repository john-data-chen/hermes-agent-backup (2 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 861 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.