一键导入
hermes-auto-update-cron
Setup cron job for automatic Hermes Agent code updates — git pull + dependency install + gateway restart, with Discord notification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Setup cron job for automatic Hermes Agent code updates — git pull + dependency install + gateway restart, with Discord notification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Diagnose and fix Hermes messaging gateway connectivity issues (Telegram/Discord down, stale locks, PM2 problems)
Backup Hermes agent to GitHub and restore on a new VPS. Covers what to include/exclude, GitHub token requirements, and restore steps. Includes automated scripts.
GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login.
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
Fetch YouTube video transcripts and transform them into structured content (chapters, summaries, threads, blog posts). Use when the user shares a YouTube URL or video link, asks to summarize a video, requests a transcript, or wants to extract and reformat content from any YouTube video.
Manage Linear issues, projects, and teams via the GraphQL API. Create, update, search, and organize issues. Uses API key auth (no OAuth needed). All operations via curl — no dependencies.
| name | hermes-auto-update-cron |
| description | Setup cron job for automatic Hermes Agent code updates — git pull + dependency install + gateway restart, with Discord notification. |
| category | devops |
Automatically checks for and applies Hermes Agent updates on a scheduled basis. Prevents the agent from falling behind on upstream commits.
hermes cron add "Auto-update Hermes" --schedule "0 */6 * * *" --script /root/hermes-backup/auto-update.sh
#!/bin/bash
set -euo pipefail
cd /root/hermes-agent
# Fetch and check for updates
git fetch origin main
LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse origin/main)
if [ "$LOCAL" = "$REMOTE" ]; then
echo "$(date): Already up to date"
exit 0
fi
echo "$(date): New commits detected ($LOCAL → $REMOTE)"
# Pull updates
git pull origin main
# Install dependencies if changed
if git diff --name-only HEAD@{1} HEAD | grep -qE '(requirements|pyproject|setup)'; then
cd /root/hermes-agent
source venv/bin/activate
pip install -r requirements.txt -q
fi
# Restart gateway
pkill -9 -f hermes_gateway
sleep 3
systemctl start hermes-gateway.service
echo "$(date): Updated and gateway restarted ($REMOTE)"
hermes cron list — check job is activehermes cron logs <job-id> — review last run outputpkill -9 + systemctl start (proven fix pattern)