safe-update-restart

safe-update-restart is a skill for Claude Code, Codex from Gentech-Labs/genTech-agent-kit. It costs 52 tokens per session (1,303 once invoked), scanned A, original, MIT.

A procedure for updating or restarting a production VPS, a remote server that runs live applications and agent gateways.

In plain words
What is it for?
Use it to record service health, back up the system, restart services in a controlled window, and verify public endpoints afterward.
Why use it?
It reduces the risk of dropping active connections or taking services offline during maintenance.

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 record service health, back up the system, restart services in a controlled window, and verify public endpoints afterward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gentech-labs/gentech-agent-kit/safe-update-restart
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 Gentech-Labs/genTech-agent-kit --skill safe-update-restart
Clone the repo
git clone --depth 1 https://github.com/Gentech-Labs/genTech-agent-kit

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 safe-update-restart

README.md
[![agentmods](https://agentmods.dev/badge/skills/gentech-labs/gentech-agent-kit/safe-update-restart/github.svg)](https://agentmods.dev/skills/gentech-labs/gentech-agent-kit/safe-update-restart)
Your own site
<a href="https://agentmods.dev/skills/gentech-labs/gentech-agent-kit/safe-update-restart"><img src="https://agentmods.dev/badge/skills/gentech-labs/gentech-agent-kit/safe-update-restart/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.

agentmods 80×15 button for safe-update-restart

Your own site · 80×15
<a href="https://agentmods.dev/skills/gentech-labs/gentech-agent-kit/safe-update-restart"><img src="https://agentmods.dev/badge/skills/gentech-labs/gentech-agent-kit/safe-update-restart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00052 $0.01303
Opus 5 $0.00026 $0.00651
Sonnet 5 $0.00010 $0.00261
Haiku 4.5 $0.00005 $0.00130

Measured 8d ago against content hash 78d1bad57cbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

safe-update-restart scanned grade A 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

echo "$u -> $(curl -s -m 12 -o /dev/null -w '%{http_code}' "$u")"
skills/safe-update-restart/SKILL.md · 100 lines

How it starts

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

Safe Update & Restart for Production VPS

When to Use

  • Updating Hermes Agent (hermes update) on a box that runs live services.
  • Restarting the gateway, x402 gateway, or any service someone may be connected to.
  • Any restart where "someone could be connecting any minute."
  • Recovering after a service or gateway change.

The Core Principle

Never blind-restart. A production VPS hosts many live APIs, x402 services, and multiple agent gateways that share one Hermes venv. A careless update/restart can drop a live connection or take down a service with no warning. Always: backup → controlled window → restart each service → verify everything after.

The Procedure

Step 1 — Record the baseline (BEFORE touching anything)

Capture current state so you can prove nothing regressed:

# hermes gateways (note PIDs)
for p in <profile1> <profile2> <profile3>; do
  pid=$(pgrep -f "profile $p gateway run" | head -1)
  echo "$p: pid=${pid:-DOWN}"
done
# systemd services
for svc in <x402-api> <x402-backend@...> <other services>; do
  echo "$svc: $(systemctl is-active "$svc" 2>/dev/null)"
done
# public endpoints
for u in "https://api.example.net/" "https://api.example.net/status"; do
  echo "$u -> $(curl -s -m 12 -o /dev/null -w '%{http_code}' "$u")"
done

Step 2 — Take a rollback-safe backup

Use the quick snapshot (covers config, .env, auth, state.db, cron — the rollback-critical files). A full zip of ~/.hermes can be 30-40GB+ and take 30+ min — too heavy for rollback needs.

hermes backup -q -l pre-update-$(date +%Y%m%d) -o /root/hermes-quick-backup.zip

Also record the git rollback point:

cd /usr/local/lib/hermes-agent && git log -1 --oneline && git describe --tags

PITFALL: A full hermes backup (no -q) zips the entire 30-40GB ~/.hermes including cargo/node caches — it's slow and produces giant zips that fill disk. Use -q unless you have a specific reason for the full archive. Delete any stale .partial files it leaves behind.

Read the full file on GitHub · 100 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. 8d ago First seen · 100 lines · 52 tokens per session scan A 78d1bad57cbd

Subscribe to this mod's changes

safe-update-restart is a skill published in the GitHub repository Gentech-Labs/genTech-agent-kit (0 stars, last pushed 17d ago), licensed MIT. It adds 52 tokens to every session and 1,303 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.