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.
npx skills add john-data-chen/hermes-agent-backup --skill hermes-config-backupgit clone --depth 1 https://github.com/john-data-chen/hermes-agent-backupWrote 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.
[](https://agentmods.dev/skills/john-data-chen/hermes-agent-backup/hermes-config-backup)<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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00861 |
| Opus 5.5 | $0.00012 | $0.00344 |
| Sonnet 5.5 | $0.00006 | $0.00172 |
| Haiku 4.5 | $0.00003 | $0.00086 |
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 3mo 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" 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.
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.
- 3mo ago First seen · 95 lines · 30 tokens per session scan C 9d072146be83
hermes-config-backup is a skill published in the GitHub repository john-data-chen/hermes-agent-backup (1 stars, last pushed 4mo ago), licensed MIT. It adds 30 tokens to every session and 861 once invoked, about $0.0001 per session on Opus 5.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.
hermes-config-backup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hermes-config-backupjohn-data-chen/hermes-agent-backup | Skill | 1 | 4mo ago | MIT | C | 30 | Claude Code, Codex |
| narco-checkopen-gitagent/opengap | Skill | 3.2k | 5mo ago | MIT | A | 45 | Claude Code, Codex |
| list-learned-actionsLykhoyda/rn-dev-agent | Skill | 20 | 1mo ago | MIT | A | 29 | Claude Code, Codex |
| hive.context-preservationaden-hive/hive | Skill | 11k | today | Apache-2.0 | A | 24 | Claude Code, Codex |
| hive.note-takingaden-hive/hive | Skill | 11k | today | Apache-2.0 | A | 30 | Claude Code, Codex |
| session-summarieskirodotdev/KiroCrew | Skill | 5.1k | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| openloreaakarim/OpenLore | Skill | 2.0k | 8d ago | Apache-2.0 | A | 42 | Claude Code, Codex |