Update升級 Hermes Agent
Backup First升級前先備份 SOUL.md、MEMORY.md 和 skills/ 目錄等,以防意外丟失。
一、運行升級命令hermes update
升級前建議閱讀上游發佈說明,確認你的模型、網關和工具配置兼容新版本。
二、(可選)切到中文社區鏡像如果你在國內拉 GitHub 經常超時,可以把 Hermes Agent 倉庫的 origin 切到中文社區鏡像,GitHub 倉庫繼續保留為 upstream。
請幫我把 Hermes Agent 的 git 拉取源切換到中文社區鏡像,並避免 hermes update 誤觸發向鏡像推送。
倉庫通常位於 ~/.hermes/hermes-agent(Windows 下是 用戶目錄\.hermes\hermes-agent)。
請進入該目錄後執行:
把 origin 改為中文社區鏡像:https://cnb.cool/hermesagent-cn/hermes-agent-cn-mirror.git
不要把官方 GitHub 倉庫命名為 upstream,因為 hermes update 會把非官方 origin 當成 fork,並可能嘗試 push 回 origin,導致 CNB.cool 要求輸入用戶名密碼。
如果已經有 upstream remote,請刪除它:git remote remove upstream
如果希望保留官方 GitHub 地址作為備用,請命名為 github:https://github.com/NousResearch/hermes-agent.git
創建跳過 upstream 同步提示的標記文件:macOS/Linux 執行 touch ~/.hermes/.skip_upstream_prompt,Windows PowerShell 執行 New-Item -ItemType File -Force "$env:USERPROFILE\.hermes\.skip_upstream_prompt"
用 git remote -v 確認 origin 指向中文社區鏡像,github 指向官方 GitHub 備用地址,且不存在 upstream
用 git fetch origin 驗證鏡像能正常拉取
不要執行 git push,也不要添加名為 upstream 的 remote