The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(hermes_cli/subcommands): strip Phase-2 extraction boilerplate docstrings and banner comments
Tekniumd1bdab0a2a3a
diff --git a/hermes_cli/subcommands/acp.py b/hermes_cli/subcommands/acp.pyindex 528299666d6..5b8cb9adc3b 100644--- a/hermes_cli/subcommands/acp.py+++ b/hermes_cli/subcommands/acp.py@@ -1,8 +1,4 @@-"""``hermes acp`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes acp`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/auth.py b/hermes_cli/subcommands/auth.pyindex e81fcea8c10..25baccfc1e7 100644--- a/hermes_cli/subcommands/auth.py+++ b/hermes_cli/subcommands/auth.py@@ -1,8 +1,4 @@-"""``hermes auth`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes auth`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/backup.py b/hermes_cli/subcommands/backup.pyindex 745d2193303..9e3fb7ff0cd 100644--- a/hermes_cli/subcommands/backup.py+++ b/hermes_cli/subcommands/backup.py@@ -1,8 +1,4 @@-"""``hermes backup`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes backup`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_backup_parser(subparsers, *, cmd_backup: Callable) -> None:"""Attach the ``backup`` subcommand to ``subparsers``."""- # =========================================================================- # backup command- # =========================================================================backup_parser = subparsers.add_parser("backup",help="Back up Hermes home directory to a zip file",diff --git a/hermes_cli/subcommands/browser.py b/hermes_cli/subcommands/browser.pyindex c81e61ffcd3..fc4c881c4c9 100644--- a/hermes_cli/subcommands/browser.py+++ b/hermes_cli/subcommands/browser.py@@ -1,8 +1,4 @@-"""``hermes browser`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes browser`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/bundles.py b/hermes_cli/subcommands/bundles.pyindex a007cca2e7f..ccbb5377373 100644--- a/hermes_cli/subcommands/bundles.py+++ b/hermes_cli/subcommands/bundles.py@@ -1,8 +1,4 @@-"""``hermes bundles`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes bundles`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/checkpoints.py b/hermes_cli/subcommands/checkpoints.pyindex 08ee5d227f0..a8449de8611 100644--- a/hermes_cli/subcommands/checkpoints.py+++ b/hermes_cli/subcommands/checkpoints.py@@ -1,8 +1,4 @@-"""``hermes checkpoints`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes checkpoints`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/claw.py b/hermes_cli/subcommands/claw.pyindex 75cf5566edb..139b5e679d4 100644--- a/hermes_cli/subcommands/claw.py+++ b/hermes_cli/subcommands/claw.py@@ -1,8 +1,4 @@-"""``hermes claw`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes claw`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/completion.py b/hermes_cli/subcommands/completion.pyindex 48ae317d9d8..a5970abd257 100644--- a/hermes_cli/subcommands/completion.py+++ b/hermes_cli/subcommands/completion.py@@ -1,8 +1,4 @@-"""``hermes completion`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes completion`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/computer_use.py b/hermes_cli/subcommands/computer_use.pyindex 9f68806bfbf..156d48e1e6a 100644--- a/hermes_cli/subcommands/computer_use.py+++ b/hermes_cli/subcommands/computer_use.py@@ -1,8 +1,4 @@-"""``hermes computer-use`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes computer-use`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/config.py b/hermes_cli/subcommands/config.pyindex 8fe1297407f..48d08ec731b 100644--- a/hermes_cli/subcommands/config.py+++ b/hermes_cli/subcommands/config.py@@ -1,8 +1,4 @@-"""``hermes config`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes config`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_config_parser(subparsers, *, cmd_config: Callable) -> None:"""Attach the ``config`` subcommand to ``subparsers``."""- # =========================================================================- # config command- # =========================================================================config_parser = subparsers.add_parser("config",help="View and edit configuration",diff --git a/hermes_cli/subcommands/cron.py b/hermes_cli/subcommands/cron.pyindex 4501578b2ca..312613efa8f 100644--- a/hermes_cli/subcommands/cron.py+++ b/hermes_cli/subcommands/cron.py@@ -1,9 +1,4 @@-"""``hermes cron`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` — same arguments, same-``func=cmd_cron`` dispatch. The handler is injected so this module does not-import ``main`` (cycle avoidance).-"""+"""``hermes cron`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/curator.py b/hermes_cli/subcommands/curator.pyindex 161e1b4521f..50199411c91 100644--- a/hermes_cli/subcommands/curator.py+++ b/hermes_cli/subcommands/curator.py@@ -1,8 +1,4 @@-"""``hermes curator`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes curator`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/dashboard.py b/hermes_cli/subcommands/dashboard.pyindex 8b2e6cc4877..a3c882317a9 100644--- a/hermes_cli/subcommands/dashboard.py+++ b/hermes_cli/subcommands/dashboard.py@@ -3,9 +3,7 @@``dashboard`` is the browser web UI; ``serve`` is the same gateway, headless —what the desktop app and remote backends run. ``serve`` also skips the web UIbuild (``headless_backend=True``): pure JSON-RPC/WS clients never load the SPA.-Both share one handler (``cmd_dashboard`` → ``start_server``). Extracted from-``hermes_cli/main.py:main()`` (god-file Phase 2); handler injected to avoid-importing ``main``.+Both share one handler (``cmd_dashboard`` → ``start_server``)."""from __future__ import annotations@@ -149,9 +147,6 @@ def build_dashboard_parser("launches" the other — so the desktop app spawns ``serve``, never``dashboard``."""- # =========================================================================- # dashboard command — the browser web UI- # =========================================================================dashboard_parser = subparsers.add_parser("dashboard",help="Start the web UI dashboard",@@ -178,7 +173,6 @@ def build_dashboard_parser()dashboard_parser.set_defaults(func=cmd_dashboard)- # =========================================================================# serve command — the headless backend server## `serve` boots the exact same gateway as `dashboard` but never opens a@@ -186,7 +180,6 @@ def build_dashboard_parser(# backends) can launch a backend WITHOUT invoking `dashboard`: the desktop# app and the web dashboard are independent surfaces that merely share this# server, and neither should appear to launch the other.- # =========================================================================serve_parser = subparsers.add_parser("serve",help="Start the Hermes backend server (headless; powers the desktop app and remote backends)",diff --git a/hermes_cli/subcommands/debug.py b/hermes_cli/subcommands/debug.pyindex 65eb842ec80..5e797f52810 100644--- a/hermes_cli/subcommands/debug.py+++ b/hermes_cli/subcommands/debug.py@@ -1,8 +1,4 @@-"""``hermes debug`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes debug`` subcommand parser."""from __future__ import annotations@@ -12,9 +8,6 @@ from typing import Callabledef build_debug_parser(subparsers, *, cmd_debug: Callable) -> None:"""Attach the ``debug`` subcommand to ``subparsers``."""- # =========================================================================- # debug command- # =========================================================================debug_parser = subparsers.add_parser("debug",help="Debug tools — upload logs and system info for support",diff --git a/hermes_cli/subcommands/doctor.py b/hermes_cli/subcommands/doctor.pyindex 81a257192ac..30e77e0f0fe 100644--- a/hermes_cli/subcommands/doctor.py+++ b/hermes_cli/subcommands/doctor.py@@ -1,8 +1,4 @@-"""``hermes doctor`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes doctor`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_doctor_parser(subparsers, *, cmd_doctor: Callable) -> None:"""Attach the ``doctor`` subcommand to ``subparsers``."""- # =========================================================================- # doctor command- # =========================================================================doctor_parser = subparsers.add_parser("doctor",help="Check configuration and dependencies",diff --git a/hermes_cli/subcommands/dump.py b/hermes_cli/subcommands/dump.pyindex fdad4e5a663..a056a4b60bf 100644--- a/hermes_cli/subcommands/dump.py+++ b/hermes_cli/subcommands/dump.py@@ -1,8 +1,4 @@-"""``hermes dump`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes dump`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_dump_parser(subparsers, *, cmd_dump: Callable) -> None:"""Attach the ``dump`` subcommand to ``subparsers``."""- # =========================================================================- # dump command- # =========================================================================dump_parser = subparsers.add_parser("dump",help="Dump setup summary for support/debugging",diff --git a/hermes_cli/subcommands/egress.py b/hermes_cli/subcommands/egress.pyindex d7d765db5d9..f7d7ec2566c 100644--- a/hermes_cli/subcommands/egress.py+++ b/hermes_cli/subcommands/egress.py@@ -1,8 +1,4 @@-"""``hermes egress`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes egress`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/fallback.py b/hermes_cli/subcommands/fallback.pyindex 7e4a3f4c033..64b8de75009 100644--- a/hermes_cli/subcommands/fallback.py+++ b/hermes_cli/subcommands/fallback.py@@ -1,8 +1,4 @@-"""``hermes fallback`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes fallback`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/gateway.py b/hermes_cli/subcommands/gateway.pyindex d541b695549..eeb7e68dfd4 100644--- a/hermes_cli/subcommands/gateway.py+++ b/hermes_cli/subcommands/gateway.py@@ -1,10 +1,4 @@-"""``hermes gateway`` and ``hermes proxy`` subcommand parsers.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Both parsers are built together because they shared one inline block (the-``gateway`` section also defined ``proxy``). Handlers injected to avoid-importing ``main``.-"""+"""``hermes gateway`` and ``hermes proxy`` subcommand parsers."""from __future__ import annotations@@ -33,9 +27,6 @@ def build_gateway_parser(subparsers, *, cmd_gateway: Callable, cmd_proxy: Callable, cmd_gateway_enroll: Callable) -> None:"""Attach the ``gateway`` and ``proxy`` subcommands to ``subparsers``."""- # =========================================================================- # gateway command- # =========================================================================gateway_parser = subparsers.add_parser("gateway",help="Messaging gateway management",@@ -307,12 +298,10 @@ def build_gateway_parser()gateway_enroll.set_defaults(func=cmd_gateway_enroll)- # =========================================================================# proxy command — local OpenAI-compatible proxy that attaches the user's# OAuth-authenticated provider credentials to outbound requests. Lets# external apps (OpenViking, Karakeep, Open WebUI, ...) ride a logged-in# subscription without copy-pasting static API keys.- # =========================================================================proxy_parser = subparsers.add_parser("proxy",help="Local OpenAI-compatible proxy to OAuth providers",diff --git a/hermes_cli/subcommands/gui.py b/hermes_cli/subcommands/gui.pyindex d856137a3cd..7cfd3e5c17c 100644--- a/hermes_cli/subcommands/gui.py+++ b/hermes_cli/subcommands/gui.py@@ -1,8 +1,4 @@-"""``hermes gui`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes gui`` subcommand parser."""from __future__ import annotations@@ -11,7 +7,6 @@ from typing import Callabledef build_gui_parser(subparsers, *, cmd_gui: Callable) -> None:"""Attach the ``gui`` subcommand to ``subparsers``."""- # =========================================================================gui_parser = subparsers.add_parser("desktop",aliases=["gui"],diff --git a/hermes_cli/subcommands/hooks.py b/hermes_cli/subcommands/hooks.pyindex 2e71f2fb89f..20a8ba3a5e2 100644--- a/hermes_cli/subcommands/hooks.py+++ b/hermes_cli/subcommands/hooks.py@@ -1,8 +1,4 @@-"""``hermes hooks`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes hooks`` subcommand parser."""from __future__ import annotations@@ -11,7 +7,6 @@ from typing import Callabledef build_hooks_parser(subparsers, *, cmd_hooks: Callable) -> None:"""Attach the ``hooks`` subcommand to ``subparsers``."""- # =========================================================================hooks_parser = subparsers.add_parser("hooks",help="Inspect and manage shell-script hooks",diff --git a/hermes_cli/subcommands/import_cmd.py b/hermes_cli/subcommands/import_cmd.pyindex 36ed375d8d2..46649cf2f49 100644--- a/hermes_cli/subcommands/import_cmd.py+++ b/hermes_cli/subcommands/import_cmd.py@@ -1,8 +1,4 @@-"""``hermes import`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes import`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_import_cmd_parser(subparsers, *, cmd_import: Callable) -> None:"""Attach the ``import`` subcommand to ``subparsers``."""- # =========================================================================- # import command- # =========================================================================import_parser = subparsers.add_parser("import",help="Restore a Hermes backup from a zip file",diff --git a/hermes_cli/subcommands/insights.py b/hermes_cli/subcommands/insights.pyindex 42746e8030b..93e20d97c3b 100644--- a/hermes_cli/subcommands/insights.py+++ b/hermes_cli/subcommands/insights.py@@ -1,8 +1,4 @@-"""``hermes insights`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes insights`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/journey.py b/hermes_cli/subcommands/journey.pyindex 199264f42f4..8b56ffd6216 100644--- a/hermes_cli/subcommands/journey.py+++ b/hermes_cli/subcommands/journey.py@@ -1,8 +1,4 @@-"""``hermes journey`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes journey`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/login.py b/hermes_cli/subcommands/login.pyindex c5837e9aa35..0607008aad8 100644--- a/hermes_cli/subcommands/login.py+++ b/hermes_cli/subcommands/login.py@@ -1,8 +1,4 @@-"""``hermes login`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes login`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/logout.py b/hermes_cli/subcommands/logout.pyindex 292b327c0f7..29d806598b2 100644--- a/hermes_cli/subcommands/logout.py+++ b/hermes_cli/subcommands/logout.py@@ -1,8 +1,4 @@-"""``hermes logout`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes logout`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_logout_parser(subparsers, *, cmd_logout: Callable) -> None:"""Attach the ``logout`` subcommand to ``subparsers``."""- # =========================================================================- # logout command- # =========================================================================logout_parser = subparsers.add_parser("logout",help="Clear authentication for an inference provider",diff --git a/hermes_cli/subcommands/logs.py b/hermes_cli/subcommands/logs.pyindex 53964b022fc..a1fc0295872 100644--- a/hermes_cli/subcommands/logs.py+++ b/hermes_cli/subcommands/logs.py@@ -1,8 +1,4 @@-"""``hermes logs`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes logs`` subcommand parser."""from __future__ import annotations@@ -12,9 +8,6 @@ from typing import Callabledef build_logs_parser(subparsers, *, cmd_logs: Callable) -> None:"""Attach the ``logs`` subcommand to ``subparsers``."""- # =========================================================================- # logs command- # =========================================================================logs_parser = subparsers.add_parser("logs",help="View and filter Hermes log files",diff --git a/hermes_cli/subcommands/mcp.py b/hermes_cli/subcommands/mcp.pyindex 387a88e85ad..ca8a4a58c2e 100644--- a/hermes_cli/subcommands/mcp.py+++ b/hermes_cli/subcommands/mcp.py@@ -1,8 +1,4 @@-"""``hermes mcp`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes mcp`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/memory.py b/hermes_cli/subcommands/memory.pyindex 23fe0b85764..25dcf726ed9 100644--- a/hermes_cli/subcommands/memory.py+++ b/hermes_cli/subcommands/memory.py@@ -1,8 +1,4 @@-"""``hermes memory`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes memory`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/migrate.py b/hermes_cli/subcommands/migrate.pyindex 879412fe822..ac08ecc241c 100644--- a/hermes_cli/subcommands/migrate.py+++ b/hermes_cli/subcommands/migrate.py@@ -1,8 +1,4 @@-"""``hermes migrate`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes migrate`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/moa.py b/hermes_cli/subcommands/moa.pyindex a4de1169cec..77c82eeebe1 100644--- a/hermes_cli/subcommands/moa.py+++ b/hermes_cli/subcommands/moa.py@@ -1,8 +1,4 @@-"""``hermes moa`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes moa`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/model.py b/hermes_cli/subcommands/model.pyindex 11b9676f91a..d2d24c2c5d2 100644--- a/hermes_cli/subcommands/model.py+++ b/hermes_cli/subcommands/model.py@@ -1,8 +1,4 @@-"""``hermes model`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes model`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_model_parser(subparsers, *, cmd_model: Callable) -> None:"""Attach the ``model`` subcommand to ``subparsers``."""- # =========================================================================- # model command- # =========================================================================model_parser = subparsers.add_parser("model",help="Select default model and provider",diff --git a/hermes_cli/subcommands/pairing.py b/hermes_cli/subcommands/pairing.pyindex 0da4003c2a2..d9baae5cba0 100644--- a/hermes_cli/subcommands/pairing.py+++ b/hermes_cli/subcommands/pairing.py@@ -1,8 +1,4 @@-"""``hermes pairing`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes pairing`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/pets.py b/hermes_cli/subcommands/pets.pyindex ad2062a1ed7..a0261103212 100644--- a/hermes_cli/subcommands/pets.py+++ b/hermes_cli/subcommands/pets.py@@ -1,8 +1,4 @@-"""``hermes pets`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes pets`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/plugins.py b/hermes_cli/subcommands/plugins.pyindex 975770c2fd5..855b58d9a08 100644--- a/hermes_cli/subcommands/plugins.py+++ b/hermes_cli/subcommands/plugins.py@@ -1,8 +1,4 @@-"""``hermes plugins`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes plugins`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/profile.py b/hermes_cli/subcommands/profile.pyindex ee5e361a573..b224fafc27b 100644--- a/hermes_cli/subcommands/profile.py+++ b/hermes_cli/subcommands/profile.py@@ -1,8 +1,4 @@-"""``hermes profile`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes profile`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_profile_parser(subparsers, *, cmd_profile: Callable) -> None:"""Attach the ``profile`` subcommand to ``subparsers``."""- # =========================================================================- # profile command- # =========================================================================profile_parser = subparsers.add_parser("profile",help="Manage profiles — multiple isolated Hermes instances",diff --git a/hermes_cli/subcommands/prompt_size.py b/hermes_cli/subcommands/prompt_size.pyindex d79fcb30bcc..ae3c24b149d 100644--- a/hermes_cli/subcommands/prompt_size.py+++ b/hermes_cli/subcommands/prompt_size.py@@ -1,8 +1,4 @@-"""``hermes prompt-size`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes prompt-size`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_prompt_size_parser(subparsers, *, cmd_prompt_size: Callable) -> None:"""Attach the ``prompt-size`` subcommand to ``subparsers``."""- # =========================================================================- # prompt-size command- # =========================================================================prompt_size_parser = subparsers.add_parser("prompt-size",help="Show a byte breakdown of the system prompt + tool schemas",diff --git a/hermes_cli/subcommands/secrets.py b/hermes_cli/subcommands/secrets.pyindex def2fdba7df..bc78b0fd6cd 100644--- a/hermes_cli/subcommands/secrets.py+++ b/hermes_cli/subcommands/secrets.py@@ -1,8 +1,4 @@-"""``hermes secrets`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes secrets`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/security.py b/hermes_cli/subcommands/security.pyindex b763a6e62e8..9af73489c15 100644--- a/hermes_cli/subcommands/security.py+++ b/hermes_cli/subcommands/security.py@@ -1,8 +1,4 @@-"""``hermes security`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes security`` subcommand parser."""from __future__ import annotations@@ -11,7 +7,6 @@ from typing import Callabledef build_security_parser(subparsers, *, cmd_security: Callable) -> None:"""Attach the ``security`` subcommand to ``subparsers``."""- # =========================================================================security_parser = subparsers.add_parser("security",help="Supply-chain audit (OSV.dev) for venv, plugins, and MCP servers",diff --git a/hermes_cli/subcommands/sessions.py b/hermes_cli/subcommands/sessions.pyindex 1bf300ca51a..5da91f2fba2 100644--- a/hermes_cli/subcommands/sessions.py+++ b/hermes_cli/subcommands/sessions.py@@ -1,8 +1,4 @@-"""``hermes sessions`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes sessions`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/setup.py b/hermes_cli/subcommands/setup.pyindex fa0c0dc37c7..974f6f7761f 100644--- a/hermes_cli/subcommands/setup.py+++ b/hermes_cli/subcommands/setup.py@@ -1,8 +1,4 @@-"""``hermes setup`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes setup`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_setup_parser(subparsers, *, cmd_setup: Callable) -> None:"""Attach the ``setup`` subcommand to ``subparsers``."""- # =========================================================================- # setup command- # =========================================================================setup_parser = subparsers.add_parser("setup",help="Interactive setup wizard",diff --git a/hermes_cli/subcommands/skills.py b/hermes_cli/subcommands/skills.pyindex cfcc677f18c..0b27df083a3 100644--- a/hermes_cli/subcommands/skills.py+++ b/hermes_cli/subcommands/skills.py@@ -1,8 +1,4 @@-"""``hermes skills`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes skills`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/slack.py b/hermes_cli/subcommands/slack.pyindex 5eb424986e1..9fe34afc731 100644--- a/hermes_cli/subcommands/slack.py+++ b/hermes_cli/subcommands/slack.py@@ -1,8 +1,4 @@-"""``hermes slack`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes slack`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_slack_parser(subparsers, *, cmd_slack: Callable) -> None:"""Attach the ``slack`` subcommand to ``subparsers``."""- # =========================================================================- # slack command- # =========================================================================slack_parser = subparsers.add_parser("slack",help="Slack integration helpers (manifest generation, etc.)",diff --git a/hermes_cli/subcommands/status.py b/hermes_cli/subcommands/status.pyindex ad107a32a60..d79b274a00b 100644--- a/hermes_cli/subcommands/status.py+++ b/hermes_cli/subcommands/status.py@@ -1,8 +1,4 @@-"""``hermes status`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes status`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_status_parser(subparsers, *, cmd_status: Callable) -> None:"""Attach the ``status`` subcommand to ``subparsers``."""- # =========================================================================- # status command- # =========================================================================status_parser = subparsers.add_parser("status",help="Show status of all components",diff --git a/hermes_cli/subcommands/tools.py b/hermes_cli/subcommands/tools.pyindex 19b85db5f17..b926f5da457 100644--- a/hermes_cli/subcommands/tools.py+++ b/hermes_cli/subcommands/tools.py@@ -1,8 +1,4 @@-"""``hermes tools`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handler injected to avoid importing ``main``.-"""+"""``hermes tools`` subcommand parser."""from __future__ import annotationsdiff --git a/hermes_cli/subcommands/uninstall.py b/hermes_cli/subcommands/uninstall.pyindex f746a8906a6..cb4364802a0 100644--- a/hermes_cli/subcommands/uninstall.py+++ b/hermes_cli/subcommands/uninstall.py@@ -1,8 +1,4 @@-"""``hermes uninstall`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes uninstall`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_uninstall_parser(subparsers, *, cmd_uninstall: Callable) -> None:"""Attach the ``uninstall`` subcommand to ``subparsers``."""- # =========================================================================- # uninstall command- # =========================================================================uninstall_parser = subparsers.add_parser("uninstall",help="Uninstall Hermes Agent",diff --git a/hermes_cli/subcommands/update.py b/hermes_cli/subcommands/update.pyindex 58c37e1d8bc..81860359151 100644--- a/hermes_cli/subcommands/update.py+++ b/hermes_cli/subcommands/update.py@@ -1,8 +1,4 @@-"""``hermes update`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes update`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_update_parser(subparsers, *, cmd_update: Callable) -> None:"""Attach the ``update`` subcommand to ``subparsers``."""- # =========================================================================- # update command- # =========================================================================update_parser = subparsers.add_parser("update",help="Update Hermes Agent to the latest version",diff --git a/hermes_cli/subcommands/webhook.py b/hermes_cli/subcommands/webhook.pyindex 38085141b06..72efbb4d0bf 100644--- a/hermes_cli/subcommands/webhook.py+++ b/hermes_cli/subcommands/webhook.py@@ -1,8 +1,4 @@-"""``hermes webhook`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes webhook`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_webhook_parser(subparsers, *, cmd_webhook: Callable) -> None:"""Attach the ``webhook`` subcommand to ``subparsers``."""- # =========================================================================- # webhook command- # =========================================================================webhook_parser = subparsers.add_parser("webhook",help="Manage dynamic webhook subscriptions",diff --git a/hermes_cli/subcommands/whatsapp.py b/hermes_cli/subcommands/whatsapp.pyindex 9d093bc93c6..31656a8f3a9 100644--- a/hermes_cli/subcommands/whatsapp.py+++ b/hermes_cli/subcommands/whatsapp.py@@ -1,8 +1,4 @@-"""``hermes whatsapp`` subcommand parser.--Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).-Handler injected to avoid importing ``main``.-"""+"""``hermes whatsapp`` subcommand parser."""from __future__ import annotations@@ -11,9 +7,6 @@ from typing import Callabledef build_whatsapp_parser(subparsers, *, cmd_whatsapp: Callable) -> None:"""Attach the ``whatsapp`` subcommand to ``subparsers``."""- # =========================================================================- # whatsapp command- # =========================================================================whatsapp_parser = subparsers.add_parser("whatsapp",help="Set up WhatsApp integration",diff --git a/hermes_cli/subcommands/worktree.py b/hermes_cli/subcommands/worktree.pyindex f9feeafc5fb..0e73031451a 100644--- a/hermes_cli/subcommands/worktree.py+++ b/hermes_cli/subcommands/worktree.py@@ -1,8 +1,4 @@-"""``hermes worktree`` subcommand parser.--Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).-Handlers are injected or imported lazily so this module never imports ``main``.-"""+"""``hermes worktree`` subcommand parser."""from __future__ import annotations