The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(handoff): curl latest sha for repo
ethernetbe694719e94a
diff --git a/scripts/update-test/HANDOFF.md b/scripts/update-test/HANDOFF.mdindex 2e702130a1c..dad52e6bf06 100644--- a/scripts/update-test/HANDOFF.md+++ b/scripts/update-test/HANDOFF.md@@ -6,10 +6,20 @@ instructions:2. apply my updater override:macos/linux:- `curl -fsSL "https://raw.githubusercontent.com/REPO/main/scripts/update-test/hermes-update-rehearsal.sh?t=$(date +%s)" | bash -s -- pre`+ ```bash+ REPO_ID="NousResearch/hermes-agent"+ SHA=$(curl -fsSL -H "User-Agent: hermes-installer" "https://api.github.com/repos/$REPO_ID/commits/main" | grep -m1 '"sha"' | cut -d'"' -f4)+ if [[ ! "$SHA" =~ ^[0-9a-f]{40}$ ]]; then echo "Failed to resolve commit SHA" >&2; exit 1; fi+ curl -fsSL "https://raw.githubusercontent.com/$REPO_ID/$SHA/scripts/update-test/hermes-update-rehearsal.sh" | bash -s -- pre+ ```windows (open PowerShell with **Run as Administrator** — the backup takes a disk snapshot, which needs admin):- `& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/REPO/main/scripts/update-test/hermes-update-rehearsal.ps1" -Headers @{"Cache-Control"="no-cache"}))) pre`+ ```powershell+ $repo_id = "NousResearch/hermes-agent"+ $sha = (irm "https://api.github.com/repos/$repo_id/commits/main" -Headers @{ "User-Agent" = "ps-installer" }).sha+ $scriptUrl = "https://raw.githubusercontent.com/$repo_id/$sha/scripts/update-test/hermes-update-rehearsal.ps1"+ & ([scriptblock]::Create((irm $scriptUrl))) pre+ ```this backs up your entire hermes home and any desktop app settings. _from this point on, nothing you do in hermes will be preserved, until you restore your backup at the end._@@ -24,10 +34,20 @@ instructions:7. restore your backup:macos/linux:- `curl -fsSL "https://raw.githubusercontent.com/REPO/main/scripts/update-test/hermes-update-rehearsal.sh?t=$(date +%s)" | bash -s -- post --yes`+ ```bash+ REPO_ID="NousResearch/hermes-agent"+ SHA=$(curl -fsSL -H "User-Agent: hermes-installer" "https://api.github.com/repos/$REPO_ID/commits/main" | grep -m1 '"sha"' | cut -d'"' -f4)+ if [[ ! "$SHA" =~ ^[0-9a-f]{40}$ ]]; then echo "Failed to resolve commit SHA" >&2; exit 1; fi+ curl -fsSL "https://raw.githubusercontent.com/$REPO_ID/$SHA/scripts/update-test/hermes-update-rehearsal.sh" | bash -s -- post --yes+ ```windows (again as **Administrator**):- `& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/REPO/main/scripts/update-test/hermes-update-rehearsal.ps1" -Headers @{"Cache-Control"="no-cache"}))) post -Yes`+ ```powershell+ $repo_id = "NousResearch/hermes-agent"+ $sha = (irm "https://api.github.com/repos/$repo_id/commits/main" -Headers @{ "User-Agent" = "ps-installer" }).sha+ $scriptUrl = "https://raw.githubusercontent.com/$repo_id/$sha/scripts/update-test/hermes-update-rehearsal.ps1"+ & ([scriptblock]::Create((irm $scriptUrl))) post -Yes+ ```this puts hermes back to exactly how it was beforehand.@@ -36,12 +56,24 @@ instructions:macos/linux, in a terminal```bash-curl -fsSL https://raw.githubusercontent.com/REPO/main/scripts/install.sh | HERMES_REPO_URL=https://github.com/REPO.git bash+REPO_ID="NousResearch/hermes-agent"++SHA=$(curl -fsSL -H "User-Agent: hermes-installer" "https://api.github.com/repos/$REPO_ID/commits/main" | grep -m1 '"sha"' | cut -d'"' -f4)++if [[ ! "$SHA" =~ ^[0-9a-f]{40}$ ]]; then+ echo "Failed to resolve commit SHA for $REPO_ID" >&2+ exit 1+fi++curl -fsSL "https://raw.githubusercontent.com/$REPO_ID/$SHA/scripts/install.sh" | HERMES_REPO_URL="https://github.com/$REPO_ID.git" bash```windows, in powershell```powershell-$env:HERMES_REPO_URL = "https://github.com/REPO.git"-& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/REPO/main/scripts/install.ps1" -Headers @{"Cache-Control"="no-cache"}))) -HermesHome C:\bench\fresh\home -NonInteractive+$repo_id = "NousResearch/hermes-agent"+$sha = (irm "https://api.github.com/repos/$repo_id/commits/main" -Headers @{ "User-Agent" = "ps-installer" }).sha+$scriptUrl = "https://raw.githubusercontent.com/$repo_id/$sha/scripts/install.ps1"+$env:HERMES_REPO_URL = "https://github.com/$repo_id.git"+& ([scriptblock]::Create((irm $scriptUrl)))```