hermes-updates
Skill3 starsChanged 53 days agoMITView on GitHub
Upgrade a live Hermes install and diagnose update drift: decide whether an update is worth a maintenance window, snapshot before mutation, run the official updater, and verify the runtime afterwards. Use for failed updates, stale unattended timers, dependency-sync gates, detached release checkouts, or post-update health checks. Not for model/provider configuration and not for editing the install's own source.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-harness-settings-paritySkill
- agent-operating-contract-evolutionSkill
- ai-coding-agent-delegationSkill
- arch-improvement-planSkill
- contract-bound-deliverablesSkill
- cross-agent-repair-routingSkill
- define-goalSkill
- delegated-work-acceptanceSkill
- design-an-interfaceSkill
- design-mdSkill
- discord-rich-messageSkill
- dotnet-repo-workflowSkill
- evidence-backed-analytical-writingSkill
- evidence-boundary-disciplineSkill
- find-nearbySkill
- gddSkill
- generated-runtime-repairsSkill
- ghc-searchSkill
- git-auto-sync-pipelinesSkill
- github-code-reviewSkill
- github-repo-managementSkill
- grounded-citationsSkill
- harness-engineeringSkill
- hermes-context-file-loadingSkill
- hermes-modelsSkill
- hoa-introspect-distillSkill
- hoa-introspectSkill
- hoa-skill-reviewSkill
- hoa-skill-workSkill
- html-artifactSkill
- jupyter-live-kernelSkill
- kanban-workflowsSkill
- m365-copilot-cdpSkill
- measurement-campaign-evidenceSkill
- microsoft-officeSkill
- notes-to-prdSkill
- ocr-and-documentsSkill
- official-document-verificationSkill
- omp-headless-orchestrationSkill
- ops-claim-verificationSkill
- package-release-verificationSkill
- plan-to-issuesSkill
- project-phase-closeoutSkill
- report-claim-auditSkill
- research-stream-consolidationSkill
- review-revision-candidatesSkill
- rss-feedsSkill
- skill-library-curationSkill
- skill-porting-and-publishingSkill
- spec-convergenceSkill
- structural-validity-gatesSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- teams-cdpSkill
- tmux-agent-controlSkill
- whisperSkill
- writing-plansSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 63
Order: stop gateway → venv/bin/hermes update --yes --no-backup --branch main → restore shallow window (git fetch --depth=10 --prune …
- Very specific: line 103
Check git ls-remote against the repo the origin remote actually points to — that remote may be a personal mirror, not upstream.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Install-side hooks (the check is required, the script is not)
Commands under $HERMES_HOME/scripts/ — a shim repair (hermes-toolchain-shim.py), a config snapshot
(config-snapshot.py), a post-update check (post-update-check.py), the unattended updater
(hermes-auto-update.py) — are hooks the install may ship. This skill states what each one must
achieve; it does not ship them and does not require their filenames. Resolve them from the install
(ls "$HERMES_HOME/scripts"), and when one is absent, record the corresponding check as
unavailable rather than as passed. Substituting an equivalent command is expected, not a deviation.
Hermes Updates
<!-- install-root: `$HERMES_HOME` below means the install root; it defaults to `~/.hermes` -->When to Use
| You hear / see | Do |
| "升级 Hermes"、"update to latest"、"是不是落后了" | Decide first → owner-requested upgrade |
| 更新失败 / 更新后 CLI 起不来 | failure-mode index |
no dependency environment is committed … run hermes pm repair | references/install-layout.md |
hermes --version 看起来旧、04:00 timer 几天没动 | references/install-layout.md → updater frozen |
hermes: a source update is unfinished | advisory tail, no action needed |
| 想判断新 commit 值不值得升 | drift assessment (references/upgrade-execution.md) |
Load hermes-agent for current CLI syntax; hermes-operations when the task also moves config,
sessions, or backups.
Decide first
- Which channel?
hermes update --checkprints the channel and the offered commit. Official checkouts default tostable; a release channel installs an exact commit, so a healthy checkout is detached (git rev-parse --abbrev-ref HEAD→HEAD). Never add amain-only guard. - Behind what?
git fetch --all --tags --prune, thengit rev-list --left-right --count HEAD...origin/main. Judge staleness from· upstream <sha>vsgit rev-parse origin/main, never from the(YYYY.M.D)inhermes --version(that is the release's date). - Worth doing now? Classify commits by owner impact: gateway/platform → provider/model → cron/session → UI/TTS/Kanban. Core gateway or session files changed → maintenance window, not midday.
Non-negotiables
- Snapshot before mutation.
updates.pre_update_backupisfalsehere, so--no-backuphas no rollback unless you make one:venv/bin/python -c "from hermes_cli.backup import create_quick_snapshot; print(create_quick_snapshot(label='manual-upgrade-latest', keep=3, max_file_size=1 << 30))". - Never edit Hermes source. A dirty tree makes the unattended updater fail closed
(
FATAL: working tree is dirty). - Order: stop gateway →
venv/bin/hermes update --yes --no-backup --branch main→ restore shallow window (git fetch --depth=10 --prune --no-tags origin main) → re-apply local tail → start gateway → post-check. A manual update runs none of the local-tail steps an unattended updater performs, so whatever maintenance hooks the install ships — a toolchain-shim repair, a config snapshot, a post-update check under its ownscripts/— must be run by hand. Resolve them from the install (ls $HERMES_HOME/scripts), and when it ships none, say the tail was unchecked instead of implying it passed: an unchecked tail is exactly what makes a latercron worker python env: BROKENor a stale config snapshot look like a mystery. - One self-update path only: the
systemd --usertimer. Never schedulehermes updatefrom a Hermes cron job, and prefer an external shell over a gateway-served chat (its process can be drained). - Give the gateway start its own tool call. A compound command tailed by the start is refused in full; the earlier stop then stands and messaging stays offline.
- Running inside the gateway? Restart from a detached unit — see
hermes-gateway. - Post-check even on "Already up to date": that path skips dependency reinstall, bundled-skill sync, web build, and config migration.
- Verify the live runtime from
gateway_state.json(pid,code_sha, platform states), not a log slice.
Failure-mode index
TypeError … unexpected keyword argumentmid-update → mixed sys.modules (install-layout.md).- CLI hard-gated after update → dependency-sync failure (
install-layout.md). local <sha> (+N carried commits), timer silent for days → updater frozen by dirt (install-layout.md).FATAL: checkout is not on main→ detached release checkout (install-layout.md).a source update is unfinished→ advisory optional tail, clears next successful update (upgrade-execution.md).install out of sync (venv … uv.lock)/dependency lock still held after 10.0s→ readhermes pm statusfirst, then runhermes pm install.venv_rebuild.ok: falsewithreason: "already in sync"is healthy, and the lock line means apm/worker.pysync is running concurrently — wait for it to exit and re-check instead of killing it.hermes pm doctorends with✗ python: realized bytes do not match recorded digest→ the toolchain artifact itself drifted (not the venv graph):hermes pm repairrebuilds the recorded dependency environment without changing it, then restart the gateway so sessions use the repaired env. This is a different fault frominstall out of sync, sopm installis not the fix. Expectpm gcto reclaim nothing while every store entry is referenced:installs/*/environmentsis live weight (one env per feature set), so disk recovery means dropping unused features, never gc.hermes-auto-update.servicefailed withRuntimeError: hermes update --check failed (1)→ the check itself shells out togit ls-remote --tags originand a single slow moment at the origin (60s tag-lookup timeout) fails the whole night's run.hermes-auto-update.py:update_statusnow retries 3× with 120s backoff; confirm with a manualhermes update --check, thensystemctl --user reset-failed hermes-auto-update.service(the next run would clear it anyway). Checkgit ls-remoteagainst the repo theoriginremote actually points to — that remote may be a personal mirror, not upstream.- GitHub 429 / timed-out fetch → authenticated refetch, never
--filter=blob:none(upgrade-execution.md). - Interrupted maintenance / half-migrated state DB →
maintenance-window-recovery.md.
Proof
hermes --version; git -C $HERMES_HOME/hermes-agent status --short
hermes doctor; hermes config check
python3 $HERMES_HOME/scripts/post-update-check.py # when the install ships one; else the tail is unchecked
hermes cron list --all # no job gained an `error`References
references/upgrade-execution.md— drift assessment, 429 recovery, no-op post-check, advisory tail, owner-requested upgrade, runtime-layer preference order.references/install-layout.md— shallow checkout, unattended timer, mixed sys.modules, dependency-sync gate, detached release channel,REPO/venvis not the runtime, host build deps (clang/python-olm).references/upgrade-safe-local-ops.md— why config/env/profile/script changes beat source patches.references/update-execution-and-runtime-state.md,references/maintenance-window-recovery.md— session detail.references/cases.md— historical cases: upgrade-safe maintenance, no-op update post-check, upstream drift assessment.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

