diff --git a/packer/agents.json b/packer/agents.json index 9ab6bb61..08211546 100644 --- a/packer/agents.json +++ b/packer/agents.json @@ -33,7 +33,7 @@ "hermes": { "tier": "minimal", "install": [ - "curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash || [ -f ~/.local/bin/hermes ]" + "curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash -s -- --skip-setup || [ -f ~/.local/bin/hermes ]" ] }, "junie": { diff --git a/packer/scripts/capture-agent.sh b/packer/scripts/capture-agent.sh index 7f5498c2..7f4c2ee8 100644 --- a/packer/scripts/capture-agent.sh +++ b/packer/scripts/capture-agent.sh @@ -13,9 +13,9 @@ fi # Validate agent name against allowed list to prevent injection case "${AGENT_NAME}" in - openclaw|codex|kilocode|claude|opencode|hermes|junie) ;; + openclaw|codex|kilocode|claude|opencode|hermes|junie|cursor) ;; *) - printf 'Error: Invalid agent name: %s\nAllowed: openclaw, codex, kilocode, claude, opencode, hermes, junie\n' "${AGENT_NAME}" >&2 + printf 'Error: Invalid agent name: %s\nAllowed: openclaw, codex, kilocode, claude, opencode, hermes, junie, cursor\n' "${AGENT_NAME}" >&2 exit 1 ;; esac @@ -51,6 +51,12 @@ case "${AGENT_NAME}" in # Without this, the ~/.local/bin/hermes symlink is dangling after tarball extraction. echo "/root/.hermes/" >> "${PATHS_FILE}" ;; + cursor) + # Cursor installs to ~/.local/bin/agent (since 2026-03-25) with the + # extracted package under ~/.local/share/cursor-agent/. + echo "/root/.local/bin/" >> "${PATHS_FILE}" + echo "/root/.local/share/cursor-agent/" >> "${PATHS_FILE}" + ;; *) echo "Unknown agent: ${AGENT_NAME}" >&2 exit 1