The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(scripts): self-activating shebang on maintainer entry points
ethernete3a53a937353
diff --git a/scripts/build_model_catalog.py b/scripts/build_model_catalog.pyindex 3491c63bb24..2f8ed642fd6 100755--- a/scripts/build_model_catalog.py+++ b/scripts/build_model_catalog.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Build the Hermes Model Catalog — a centralized JSON manifest of curated models.This script reads the in-repo hardcoded curated lists (``OPENROUTER_MODELS``,diff --git a/scripts/build_skills_index.py b/scripts/build_skills_index.pyold mode 100644new mode 100755index 5da399fa84a..8b07329a91f--- a/scripts/build_skills_index.py+++ b/scripts/build_skills_index.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Build the Hermes Skills Index — a centralized JSON catalog of all skills.This script crawls every skill source (skills.sh, GitHub taps, official,diff --git a/scripts/dump_desktop_slash_registry.py b/scripts/dump_desktop_slash_registry.pyindex 903ba7b103d..a692d4c704f 100755--- a/scripts/dump_desktop_slash_registry.py+++ b/scripts/dump_desktop_slash_registry.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Regenerate apps/desktop/src/lib/desktop-slash-registry.json from COMMAND_REGISTRY.Run after changing any ``desktop=`` value or alias in ``hermes_cli/commands.py``;diff --git a/scripts/gen-bootstrap-pins.py b/scripts/gen-bootstrap-pins.pyold mode 100644new mode 100755index edc7b40adea..7a0ed9836ba--- a/scripts/gen-bootstrap-pins.py+++ b/scripts/gen-bootstrap-pins.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Generate the bootstrap pin fragments inside the installers.The installers bootstrap uv (and, on Windows, git) BEFORE any checkoutdiff --git a/scripts/gen_gateway_contracts.py b/scripts/gen_gateway_contracts.pyold mode 100644new mode 100755index f2f32856adb..d95520d3f8e--- a/scripts/gen_gateway_contracts.py+++ b/scripts/gen_gateway_contracts.py@@ -1,3 +1,4 @@+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Render ``tui_gateway/contracts`` into TypeScript and OpenRPC.Python-only (the Python CI lane has no Node): Pydantic's ``model_json_schema()`` output is walkeddiff --git a/scripts/profile-tui.py b/scripts/profile-tui.pyindex 91a6e4d6ee5..f6f0ce41443 100755--- a/scripts/profile-tui.py+++ b/scripts/profile-tui.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Drive the Hermes TUI under HERMES_DEV_PERF and summarize the pipeline.Usage:diff --git a/scripts/release.py b/scripts/release.pyindex 51e7b1b743a..1898457e351 100755--- a/scripts/release.py+++ b/scripts/release.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Hermes Agent release entrypoint.Stable releases use the ``release``, ``publish``, and ``abandon`` subcommands.diff --git a/scripts/render-builds-table.py b/scripts/render-builds-table.pyold mode 100644new mode 100755index 110a90e67af..868c83cccfb--- a/scripts/render-builds-table.py+++ b/scripts/render-builds-table.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Render the release download tables into <!-- HERMES_BUILDS_TABLE -->, andthe same rows as standalone pages in the bucket.diff --git a/scripts/validate_plugin_catalog.py b/scripts/validate_plugin_catalog.pyold mode 100644new mode 100755index 262a418e7ef..d1bdbda5d91--- a/scripts/validate_plugin_catalog.py+++ b/scripts/validate_plugin_catalog.py@@ -1,4 +1,4 @@-#!/usr/bin/env python3+#!/usr/bin/env -S bash -c 'exec "$BASH" "$(dirname "$0")/_hermes-python" "$0" "$@"'"""Standalone structural validator for plugin-catalog entry files.Validates ``plugin-catalog/*.yaml`` catalog entries and