skkeoriw/hermes-brain/hermes-brain-sync
Claude Code and agent skill by skkeoriw/hermes-brain
- community
Checking that the SKILL.md file is still in the repository.
Use when bootstrapping, cloning, restoring, synchronizing, auto-syncing, or setting push/pull roles for a user's Hermes Agent memory, skills, sessions, configuration, webhooks, and plaintext test credentials across machines from the hermes-brain repository.
Install
npx vskill@latest install skkeoriw/hermes-brain/hermes-brain-syncSKILL.md
The same SKILL.md was published earlier as skkeoriw/hermes-brain/hermes-brain-sync.
Hermes Brain Sync
Overview
This repository is the user's portable "Hermes 大脑". It stores a copy of Hermes Agent persistent state so multiple machines can share the same memories, skills, sessions, webhooks, prompts, config, and test credentials.
This project intentionally uses plaintext full sync for testing. Do not silently remove or encrypt secrets unless the user asks. Treat the repository as private-only.
When to Use
Use this skill when the user asks to:
- Set up Hermes on a new machine from this repository.
- Copy this machine's Hermes state to GitHub.
- Restore ~/.hermes from the repository.
- Synchronize memories, USER profile, skills, sessions, webhook subscriptions, config, or credentials across machines.
- Explain what data is synced and what is excluded.
Do not use this for production secret management unless the user explicitly accepts plaintext risk or requests an encrypted variant.
Data Model
Canonical repo path:
This maps to local:
The sync scripts copy most persistent files directly. This includes plaintext test credentials such as .env and auth.json.
Default exclusions are runtime or rebuildable artifacts:
hermes-agent/logs/cache/audio_cache/__pycache__/*.pyc*.lock*.pid*.log*-wal*-shm.update_check
New Machine Bootstrap
From a fresh machine:
The script checks dependencies, installs Hermes if missing, backs up any existing ~/.hermes, restores brain/hermes-home/, sets the local sync role to pull if no role exists, installs the auto-sync timer when systemd user services are available, fixes basic permissions, and runs hermes doctor.
After bootstrap:
If the machine should run gateway services:
Auto Sync Roles
This repo intentionally uses one push machine and many pull machines.
Local, non-synced machine files:
Global repo owner file:
Check status:
Make the current machine the single push owner:
Make the current machine pull-only:
Install periodic auto-sync:
All machines run scripts/auto_sync.sh. It pushes only when both conditions are true:
- local role is
push; - local machine id equals
brain/sync-owner.json.push_machine_id.
Otherwise it pulls. If an old push machine sees a different global push owner, it automatically downgrades local role to pull.
This role-management procedure is the main way Hermes can "set itself to push": load/use this skill, then run bash scripts/set_sync_role.sh push --git --push inside the repo.
Push Local Hermes State to Repo
Use this on a machine whose Hermes state should become the shared state:
The script copies from ${HERMES_HOME:-$HOME/.hermes} to brain/hermes-home/, writes brain/manifest.json, commits, and pushes if origin exists.
Pull Repo State to Local Hermes
Use this when the repository is newer or on a new machine:
The script backs up current ~/.hermes under ~/.hermes-brain-backups/ before restoring.
Conflict Policy
This repo uses a single-writer / multi-reader model:
- one
pushmachine writes~/.hermesinto the repo and pushes to GitHub; - all other machines are
pullmachines and restore from GitHub.
New machines default to pull. To make the current machine the single push owner:
To check role:
See docs/conflict-policy.md for details.
SQLite files such as state.db are binary-ish and can conflict if multiple machines push. This project avoids that by allowing only the global push owner in brain/sync-owner.json to push. Old push machines auto-downgrade to pull when they see a different owner.
Plaintext Secret Warning
This repo can include plaintext keys by design:
.envauth.json- webhook secrets
- gateway state
- channel/pairing state
- provider credentials
Rules:
- Keep the GitHub repository private.
- Do not paste repo contents into public issues or logs.
- If the repo becomes public, rotate all credentials.
Verification Checklist
After bootstrap or restore:
- [ ]
~/.hermes/memories/MEMORY.mdexists if the source had memory. - [ ]
~/.hermes/memories/USER.mdexists if the source had user profile. - [ ]
~/.hermes/skills/exists. - [ ]
hermes doctorruns. - [ ]
hermes skills listshows expected skills in a fresh session. - [ ] Gateway is only started if this machine is intended to receive messages/webhooks.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/hermes-brain-sync/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/skkeoriw/hermes-brain/hermes-brain-sync)