The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(hermes_cli/subcommands): reflow argparse kwargs and drop redundant help=(...) parens (AST-verified)
Teknium1967a13bfabb
diff --git a/hermes_cli/subcommands/_shared.py b/hermes_cli/subcommands/_shared.pyindex 437d5799f4d..c9fffb94c4b 100644--- a/hermes_cli/subcommands/_shared.py+++ b/hermes_cli/subcommands/_shared.py@@ -19,9 +19,6 @@ def add_accept_hooks_flag(parser: argparse.ArgumentParser) -> None:position."""parser.add_argument(- "--accept-hooks",- action="store_true",- default=argparse.SUPPRESS,- help=(- "Auto-approve unseen shell hooks without a TTY prompt "- "(equivalent to HERMES_ACCEPT_HOOKS=1 / hooks_auto_accept: true)."))+ "--accept-hooks", action="store_true", default=argparse.SUPPRESS,+ help="Auto-approve unseen shell hooks without a TTY prompt "+ "(equivalent to HERMES_ACCEPT_HOOKS=1 / hooks_auto_accept: true).")diff --git a/hermes_cli/subcommands/acp.py b/hermes_cli/subcommands/acp.pyindex 8157063f826..c1859362fd1 100644--- a/hermes_cli/subcommands/acp.py+++ b/hermes_cli/subcommands/acp.py@@ -24,15 +24,11 @@ def build_acp_parser(subparsers, *, cmd_acp: Callable) -> None:"--setup", action="store_true",help="Run interactive Hermes provider/model setup for ACP terminal auth")acp_parser.add_argument(- "--setup-browser",- action="store_true",+ "--setup-browser", action="store_true",help="Install agent-browser + Playwright Chromium into ~/.hermes/node/ ""for browser tool support (idempotent).")acp_parser.add_argument(- "--yes",- "-y",- action="store_true",- dest="assume_yes",+ "--yes", "-y", action="store_true", dest="assume_yes",help="Accept all prompts (used by --setup-browser to skip the ""~400 MB Chromium download confirmation).")acp_parser.set_defaults(func=cmd_acp)diff --git a/hermes_cli/subcommands/approvals.py b/hermes_cli/subcommands/approvals.pyindex c095e7073e8..56e042bbd2f 100644--- a/hermes_cli/subcommands/approvals.py+++ b/hermes_cli/subcommands/approvals.py@@ -14,29 +14,23 @@ from typing import Callabledef build_approvals_parser(subparsers, *, cmd_approvals: Callable) -> None:"""Attach the ``approvals`` subcommand to ``subparsers``."""approvals_parser = subparsers.add_parser(- "approvals",- help="Approval-prompt tools (mine history into allowlist proposals)",- description=(- "Tools for the dangerous-command approval system. "+ "approvals", help="Approval-prompt tools (mine history into allowlist proposals)",+ description="Tools for the dangerous-command approval system. ""`hermes approvals suggest` mines past approval decisions from ""the session database and proposes command_allowlist entries so "- "repeatedly-approved commands stop prompting."))+ "repeatedly-approved commands stop prompting.")approvals_subparsers = approvals_parser.add_subparsers(dest="approvals_command", metavar="<subcommand>")suggest_parser = approvals_subparsers.add_parser(- "suggest",- help="Propose command_allowlist entries from past approvals",- description=(- "Scan the session database for dangerous-classified commands "+ "suggest", help="Propose command_allowlist entries from past approvals",+ description="Scan the session database for dangerous-classified commands ""that ran with user approval, rank the recurring patterns, and ""print a numbered allowlist proposal. Nothing is written unless ""--apply is given. Destructive classes (recursive delete, sudo, "- "disk writes, credential edits, ...) are never proposed."))+ "disk writes, credential edits, ...) are never proposed.")suggest_parser.add_argument(- "--apply",- dest="apply_indices",- metavar="N[,M...]",+ "--apply", dest="apply_indices", metavar="N[,M...]",help="Merge the numbered proposals (from a prior run) into ""command_allowlist in config.yaml")suggest_parser.add_argument(@@ -55,21 +49,17 @@ def build_approvals_parser(subparsers, *, cmd_approvals: Callable) -> None:suggest_parser.set_defaults(func=cmd_approvals)test_parser = approvals_subparsers.add_parser(- "test",- help="Dry-run the approval verdict for a command (never executes it)",- description=(- "Evaluate a command against the REAL runtime approval guards — "+ "test", help="Dry-run the approval verdict for a command (never executes it)",+ description="Evaluate a command against the REAL runtime approval guards — ""hardline blocklist, user approvals.deny rules, dangerous-pattern ""detection, allowlist, yolo/off bypass — and print the verdict, ""the matching rule, and the normalized-command trace, without ""executing the command, prompting anyone, or persisting anything. ""Exit codes: 0 allow, 2 ask-approval, 3 deny (hardline or user ""deny rule). Tip: use `--` before the command so its own flags "- "aren't parsed: hermes approvals test -- rm -rf /tmp/x"))+ "aren't parsed: hermes approvals test -- rm -rf /tmp/x")test_parser.add_argument(- "--env-type",- dest="env_type",- default="local",+ "--env-type", dest="env_type", default="local",help="Terminal backend type to evaluate against (default: local; ""isolated container backends like docker skip the guards)")test_parser.add_argument(diff --git a/hermes_cli/subcommands/backup.py b/hermes_cli/subcommands/backup.pyindex 11f2a94afef..5ec7ac27214 100644--- a/hermes_cli/subcommands/backup.py+++ b/hermes_cli/subcommands/backup.py@@ -8,8 +8,7 @@ from typing import Callabledef build_backup_parser(subparsers, *, cmd_backup: Callable) -> None:"""Attach the ``backup`` subcommand to ``subparsers``."""backup_parser = subparsers.add_parser(- "backup",- help="Back up Hermes home directory to a zip file",+ "backup", help="Back up Hermes home directory to a zip file",description="Create a zip archive of your entire Hermes configuration, ""skills, sessions, and data (excludes the hermes-agent codebase). ""Use --quick for a fast snapshot of just critical state files.")@@ -17,8 +16,7 @@ def build_backup_parser(subparsers, *, cmd_backup: Callable) -> None:"-o","--output", help="Output path for the zip file (default: ~/hermes-backup-<timestamp>.zip)")backup_parser.add_argument(- "-q",- "--quick", action="store_true",+ "-q", "--quick", action="store_true",help="Quick snapshot: only critical state files (config, state.db, .env, auth, cron)")backup_parser.add_argument("-l", "--label", help="Label for the snapshot (only used with --quick)")diff --git a/hermes_cli/subcommands/browser.py b/hermes_cli/subcommands/browser.pyindex a795db00e09..70b8ff4996c 100644--- a/hermes_cli/subcommands/browser.py+++ b/hermes_cli/subcommands/browser.py@@ -8,14 +8,12 @@ import sysdef build_browser_parser(subparsers) -> None:"""Attach the ``browser`` subcommand to ``subparsers``."""browser_parser = subparsers.add_parser(- "browser",- help="Real-profile browsing helpers (close a browser locking its profile)",- description=(- "Helpers for real-profile browsing (browser.use_real_profile). "+ "browser", help="Real-profile browsing helpers (close a browser locking its profile)",+ description="Helpers for real-profile browsing (browser.use_real_profile). ""close-profile terminates the browser process tree holding your ""default profile so Hermes can copy it — DESTRUCTIVE (unsaved tabs ""in that browser are lost). The agent runs this only after you "- "approve closing the browser."))+ "approve closing the browser.")browser_subparsers = browser_parser.add_subparsers(dest="browser_action")browser_close = browser_subparsers.add_parser("close-profile",diff --git a/hermes_cli/subcommands/bundles.py b/hermes_cli/subcommands/bundles.pyindex 18d5bc0f358..524540e3f8e 100644--- a/hermes_cli/subcommands/bundles.py+++ b/hermes_cli/subcommands/bundles.py@@ -6,12 +6,10 @@ from __future__ import annotationsdef build_bundles_parser(subparsers) -> None:"""Attach the ``bundles`` subcommand to ``subparsers``."""bundles_parser = subparsers.add_parser(- "bundles",- help="Create, list, and manage skill bundles (aliases for multiple skills)",- description=(- "Skill bundles let you load several skills under one slash "+ "bundles", help="Create, list, and manage skill bundles (aliases for multiple skills)",+ description="Skill bundles let you load several skills under one slash ""command. `/<bundle>` from the CLI or gateway loads every "- "referenced skill at once."))+ "referenced skill at once.")from hermes_cli.bundles import register_cli as _bundles_register, bundles_command_bundles_register(bundles_parser)bundles_parser.set_defaults(func=bundles_command)diff --git a/hermes_cli/subcommands/checkpoints.py b/hermes_cli/subcommands/checkpoints.pyindex 08b9fd54a94..b421d311ba7 100644--- a/hermes_cli/subcommands/checkpoints.py+++ b/hermes_cli/subcommands/checkpoints.py@@ -6,8 +6,7 @@ from __future__ import annotationsdef build_checkpoints_parser(subparsers) -> None:"""Attach the ``checkpoints`` subcommand to ``subparsers``."""checkpoints_parser = subparsers.add_parser(- "checkpoints",- help="Inspect / prune / clear ~/.hermes/checkpoints/",+ "checkpoints", help="Inspect / prune / clear ~/.hermes/checkpoints/",description="Manage the filesystem checkpoint store — the shadow git ""repo hermes uses to snapshot working directories before ""write_file/patch/terminal calls. Lets you see how much "diff --git a/hermes_cli/subcommands/claw.py b/hermes_cli/subcommands/claw.pyindex ab1e6f7cf5c..87f486c3503 100644--- a/hermes_cli/subcommands/claw.py+++ b/hermes_cli/subcommands/claw.py@@ -14,8 +14,7 @@ def build_claw_parser(subparsers, *, cmd_claw: Callable) -> None:# claw migrateclaw_migrate = claw_subparsers.add_parser(- "migrate",- help="Migrate from OpenClaw to Hermes",+ "migrate", help="Migrate from OpenClaw to Hermes",description="Import settings, memories, skills, and API keys from an OpenClaw installation. ""Always shows a preview before making changes.")claw_migrate.add_argument("--source", help="Path to OpenClaw directory (default: ~/.openclaw)")@@ -23,22 +22,18 @@ def build_claw_parser(subparsers, *, cmd_claw: Callable) -> None:"--dry-run", action="store_true",help="Preview only — stop after showing what would be migrated")claw_migrate.add_argument(- "--preset",- choices=["user-data", "full"],- default="full",+ "--preset", choices=["user-data", "full"], default="full",help="Migration preset (default: full). Neither preset imports secrets — ""pass --migrate-secrets to include API keys.")claw_migrate.add_argument("--overwrite", action="store_true",help="Overwrite existing files (default: refuse to apply when the plan has conflicts)")claw_migrate.add_argument(- "--migrate-secrets",- action="store_true",+ "--migrate-secrets", action="store_true",help="Include allowlisted secrets (TELEGRAM_BOT_TOKEN, API keys, etc.). ""Required even under --preset full.")claw_migrate.add_argument(- "--no-backup",- action="store_true",+ "--no-backup", action="store_true",help="Skip the pre-migration zip snapshot of ~/.hermes/ (by default a ""single restore-point archive is written to ~/.hermes/backups/ ""before apply; restorable with 'hermes import').")diff --git a/hermes_cli/subcommands/computer_use.py b/hermes_cli/subcommands/computer_use.pyindex 1d78dfb08f3..a5107bbb1b6 100644--- a/hermes_cli/subcommands/computer_use.py+++ b/hermes_cli/subcommands/computer_use.py@@ -8,10 +8,8 @@ import sysdef build_computer_use_parser(subparsers) -> None:"""Attach the ``computer-use`` subcommand to ``subparsers``."""computer_use_parser = subparsers.add_parser(- "computer-use",- help="Manage the Computer Use (cua-driver) backend (macOS/Windows/Linux)",- description=(- "Install or check the cua-driver binary used by the\n"+ "computer-use", help="Manage the Computer Use (cua-driver) backend (macOS/Windows/Linux)",+ description="Install or check the cua-driver binary used by the\n""`computer_use` toolset. Supported on macOS, Windows, and\n""Linux.\n\n""Use `hermes computer-use install` to fetch and run the\n"@@ -23,39 +21,31 @@ def build_computer_use_parser(subparsers) -> None:"Use `hermes computer-use doctor` to run cua-driver's\n""`health_report` MCP tool and surface its check matrix\n""(TCC, bundle identity, version, platform support, ...)\n"- "in human-readable form."))+ "in human-readable form.")computer_use_sub = computer_use_parser.add_subparsers(dest="computer_use_action")computer_use_install = computer_use_sub.add_parser("install", help="Install or repair the cua-driver binary (macOS/Windows/Linux)")computer_use_install.add_argument(- "--upgrade",- action="store_true",- help=(- "Re-run the upstream installer even if cua-driver is already on "+ "--upgrade", action="store_true",+ help="Re-run the upstream installer even if cua-driver is already on ""PATH. The upstream install.sh always pulls the latest release, "- "so this performs an in-place upgrade."))+ "so this performs an in-place upgrade.")computer_use_sub.add_parser("status", help="Print whether cua-driver is installed and on PATH")computer_use_doctor = computer_use_sub.add_parser(- "doctor",- help="Run cua-driver `health_report` and surface the check matrix",- description=(- "Drive cua-driver's stable `health_report` MCP tool and render\n"+ "doctor", help="Run cua-driver `health_report` and surface the check matrix",+ description="Drive cua-driver's stable `health_report` MCP tool and render\n""its check matrix (TCC permissions, bundle identity, version,\n""platform support, screenshot probe, …) as human-readable\n""output. cua-driver owns the health model; this command stays\n""thin so new checks added upstream surface here without code\n""changes. Exits 0 when overall=ok, 1 when degraded/failed, 2\n"- "when the binary is missing or unreachable."))+ "when the binary is missing or unreachable.")computer_use_doctor.add_argument(- "--include",- action="append",- default=[],- metavar="CHECK",- help=(- "Run only the listed checks. Repeat for multiple "+ "--include", action="append", default=[], metavar="CHECK",+ help="Run only the listed checks. Repeat for multiple ""(e.g. --include tcc_accessibility --include bundle_identity). "- "Unknown names are reported by cua-driver."))+ "Unknown names are reported by cua-driver.")computer_use_doctor.add_argument("--skip", action="append", default=[], metavar="CHECK",help="Skip the listed checks. Repeat for multiple. Wins over --include.")@@ -63,14 +53,12 @@ def build_computer_use_parser(subparsers) -> None:"--json", action="store_true",help="Emit the raw structured payload as JSON (same shape as `tools/call`).")computer_use_perms = computer_use_sub.add_parser(- "permissions",- help="Check or grant macOS Accessibility + Screen Recording (macOS)",- description=(- "Computer Use drives the Mac through cua-driver, whose TCC grants\n"+ "permissions", help="Check or grant macOS Accessibility + Screen Recording (macOS)",+ description="Computer Use drives the Mac through cua-driver, whose TCC grants\n""attach to cua-driver's own identity (com.trycua.driver) — not the\n""terminal or the Hermes app. `status` reports the driver's grant\n""state; `grant` launches CuaDriver via LaunchServices so the macOS\n"- "permission dialog is attributed to the process that does the work."))+ "permission dialog is attributed to the process that does the work.")computer_use_perms_sub = computer_use_perms.add_subparsers(dest="computer_use_perms_action")computer_use_perms_status = computer_use_perms_sub.add_parser("status", help="Report Accessibility + Screen Recording grant state (read-only)")@@ -100,10 +88,8 @@ def build_computer_use_parser(subparsers) -> None:try:from hermes_cli.tools_config import _cua_driver_envversion = subprocess.run(- [path, "--version"],- capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=5,- env=_cua_driver_env(),- ).stdout.strip()+ [path, "--version"], capture_output=True, text=True, encoding="utf-8",+ errors="replace", timeout=5, env=_cua_driver_env()).stdout.strip()except Exception:passfrom hermes_cli.tools_config import _cua_version_summarydiff --git a/hermes_cli/subcommands/config.py b/hermes_cli/subcommands/config.pyindex 025d1b93779..9ea16b5e89d 100644--- a/hermes_cli/subcommands/config.py+++ b/hermes_cli/subcommands/config.py@@ -29,8 +29,7 @@ def build_config_parser(subparsers, *, cmd_config: Callable) -> None:"key", nargs="?", help="Configuration key (e.g., model, terminal.backend)")config_set.add_argument("value", nargs="?", help="Value to set")config_set.add_argument(- "--force",- action="store_true",+ "--force", action="store_true",help="Skip the unknown-key notice printed after writing a key the ""running version doesn't recognize (the value is saved either way).")diff --git a/hermes_cli/subcommands/console.py b/hermes_cli/subcommands/console.pyindex 6db3b17bcea..00ebe2bba9f 100644--- a/hermes_cli/subcommands/console.py+++ b/hermes_cli/subcommands/console.py@@ -8,9 +8,7 @@ from typing import Callabledef build_console_parser(subparsers, *, cmd_console: Callable) -> None:"""Attach the safe Hermes Console REPL subcommand."""console_parser = subparsers.add_parser(- "console",- help="Open the safe Hermes command console",- description=(- "Open a curated Hermes command REPL. This is not a raw shell and "- "does not expose the full Hermes CLI."))+ "console", help="Open the safe Hermes command console",+ description="Open a curated Hermes command REPL. This is not a raw shell and "+ "does not expose the full Hermes CLI.")console_parser.set_defaults(func=cmd_console)diff --git a/hermes_cli/subcommands/cron.py b/hermes_cli/subcommands/cron.pyindex 85c83719425..8ddc3cd45df 100644--- a/hermes_cli/subcommands/cron.py+++ b/hermes_cli/subcommands/cron.py@@ -26,89 +26,69 @@ def build_cron_parser(subparsers, *, cmd_cron: Callable) -> None:cron_create.add_argument("--name", help="Optional human-friendly job name")cron_create.add_argument("--deliver",- help=(- "Delivery target: origin, local, telegram, discord, signal, "+ help="Delivery target: origin, local, telegram, discord, signal, ""platform:chat_id, or bot-chat[:profile] (inject output into a "- "local profile's canonical Bot Chat as a message the bot responds to)"))+ "local profile's canonical Bot Chat as a message the bot responds to)")cron_create.add_argument(- "--failure-deliver",- dest="failure_deliver",- help=(- "Override target for FAILURE notices only (same grammar as "+ "--failure-deliver", dest="failure_deliver",+ help="Override target for FAILURE notices only (same grammar as ""--deliver). 'local' suppresses failure notices entirely; run ""state stays visible in `hermes cron list`. Omit = failures "- "follow --deliver."))+ "follow --deliver.")cron_create.add_argument("--repeat", type=int, help="Optional repeat count")cron_create.add_argument("--skill", dest="skills", action="append",help="Attach a skill. Repeat to add multiple skills.")cron_create.add_argument("--script",- help=(- "Path to a script under ~/.hermes/scripts/. Default mode: "+ help="Path to a script under ~/.hermes/scripts/. Default mode: ""script stdout is injected into the agent's prompt each run. ""With --no-agent: the script IS the job and its stdout is ""delivered verbatim. .sh/.bash files run via bash, everything "- "else via Python."))+ "else via Python.")cron_create.add_argument(- "--no-agent",- dest="no_agent",- action="store_true",- default=False,- help=(- "Skip the LLM entirely — run --script on schedule and deliver "+ "--no-agent", dest="no_agent", action="store_true", default=False,+ help="Skip the LLM entirely — run --script on schedule and deliver ""its stdout directly. Empty stdout = silent. Classic watchdog "- "pattern (memory alerts, disk alerts, CI pings)."))+ "pattern (memory alerts, disk alerts, CI pings).")cron_create.add_argument(- "--monitor-script",- dest="monitor_script",- help=(- "Monitor mode: path to a cheap source script under "+ "--monitor-script", dest="monitor_script",+ help="Monitor mode: path to a cheap source script under ""~/.hermes/scripts/ that runs each tick BEFORE the agent. ""Unchanged output (exact-bytes hash) suppresses the agent run ""entirely; changed output injects a MONITOR CHANGE DETECTED ""diff into the prompt. Script output must be stable (no ""timestamps). Mutually exclusive with --monitor-url; "- "incompatible with --no-agent."))+ "incompatible with --no-agent.")cron_create.add_argument(- "--monitor-url",- dest="monitor_url",- help=(- "Monitor mode: http(s) URL fetched with a bounded GET each tick "+ "--monitor-url", dest="monitor_url",+ help="Monitor mode: http(s) URL fetched with a bounded GET each tick ""instead of a script. Same hash-suppression semantics as "- "--monitor-script."))+ "--monitor-script.")cron_create.add_argument("--workdir",help="Absolute path for the job to run from. Injects AGENTS.md / CLAUDE.md / .cursorrules from that directory and uses it as the cwd for terminal/file/code_exec tools. Omit to preserve old behaviour (no project context files).",)cron_create.add_argument("--model",- help=(- "Pin this job to a specific inference model (user-owned; the "+ help="Pin this job to a specific inference model (user-owned; the ""agent's cronjob tool cannot set this). Omit to follow "- "cron.model / model.default from config.yaml."))+ "cron.model / model.default from config.yaml.")cron_create.add_argument("--provider", dest="model_provider",help="Inference provider paired with --model (e.g. 'openrouter', 'nous').")cron_create.add_argument(- "--reasoning-effort",- dest="reasoning_effort",- help=(- "Pin this job's reasoning (thinking) effort: none, minimal, low, "+ "--reasoning-effort", dest="reasoning_effort",+ help="Pin this job's reasoning (thinking) effort: none, minimal, low, ""medium, high, xhigh, max, or ultra. Overrides agent.reasoning_effort ""and agent.reasoning_overrides for this job; unsupported levels are "- "clamped by the provider at request time. Omit to follow config."))+ "clamped by the provider at request time. Omit to follow config.")cron_create.add_argument(- "--continuity",- dest="continuity",- action="store_const",- const=True,- default=None,- help=(- "Each run wakes up with the job's own previous output injected "+ "--continuity", dest="continuity", action="store_const", const=True, default=None,+ help="Each run wakes up with the job's own previous output injected ""into its prompt, so it can dedupe against what was already ""reported and continue where the last run left off (scouts, "- "monitors, incremental digests). First run is unchanged."))+ "monitors, incremental digests). First run is unchanged.")# cron editcron_edit = cron_subparsers.add_parser("edit", help="Edit an existing scheduled job")@@ -118,11 +98,9 @@ def build_cron_parser(subparsers, *, cmd_cron: Callable) -> None:cron_edit.add_argument("--name", help="New job name")cron_edit.add_argument("--deliver", help="New delivery target")cron_edit.add_argument(- "--failure-deliver",- dest="failure_deliver",- help=(- "Override target for failure notices (same grammar as --deliver; "- "'local' suppresses; '' clears the override)"))+ "--failure-deliver", dest="failure_deliver",+ help="Override target for failure notices (same grammar as --deliver; "+ "'local' suppresses; '' clears the override)")cron_edit.add_argument("--repeat", type=int, help="New repeat count")cron_edit.add_argument("--skill", dest="skills", action="append",@@ -137,46 +115,29 @@ def build_cron_parser(subparsers, *, cmd_cron: Callable) -> None:"--clear-skills", action="store_true", help="Remove all attached skills from the job")cron_edit.add_argument("--script",- help=(- "Path to a script under ~/.hermes/scripts/. Pass empty string to clear. "+ help="Path to a script under ~/.hermes/scripts/. Pass empty string to clear. ""With --no-agent the script IS the job; otherwise its stdout is "- "injected into the agent's prompt each run."))+ "injected into the agent's prompt each run.")cron_edit.add_argument(- "--no-agent",- dest="no_agent",- action="store_const",- const=True,- default=None,- help=(- "Enable no-agent mode on this job (requires --script or an "- "existing script on the job)."))+ "--no-agent", dest="no_agent", action="store_const", const=True, default=None,+ help="Enable no-agent mode on this job (requires --script or an "+ "existing script on the job).")cron_edit.add_argument("--agent", dest="no_agent", action="store_const", const=False,help="Disable no-agent mode on this job (reverts to LLM-driven execution).")cron_edit.add_argument(- "--continuity",- dest="continuity",- action="store_const",- const=True,- default=None,- help=(- "Turn on run-to-run continuity: each run sees the job's own "- "previous output (dedupe, continue where it left off)."))+ "--continuity", dest="continuity", action="store_const", const=True, default=None,+ help="Turn on run-to-run continuity: each run sees the job's own "+ "previous output (dedupe, continue where it left off).")cron_edit.add_argument(- "--no-continuity",- dest="continuity",- action="store_const",- const=False,+ "--no-continuity", dest="continuity", action="store_const", const=False,help=("Turn off run-to-run continuity (other context_from job refs are preserved)."))cron_edit.add_argument(- "--monitor-script",- dest="monitor_script",- help=(- "Set/replace the monitor source script (see `hermes cron create "- "--monitor-script`). Pass empty string to clear."))+ "--monitor-script", dest="monitor_script",+ help="Set/replace the monitor source script (see `hermes cron create "+ "--monitor-script`). Pass empty string to clear.")cron_edit.add_argument(- "--monitor-url",- dest="monitor_url",+ "--monitor-url", dest="monitor_url",help=("Set/replace the monitor source URL. Pass empty string to clear."))cron_edit.add_argument("--workdir",@@ -184,20 +145,17 @@ def build_cron_parser(subparsers, *, cmd_cron: Callable) -> None:)cron_edit.add_argument("--model",- help=(- "Pin this job to a specific inference model (user-owned; the "+ help="Pin this job to a specific inference model (user-owned; the ""agent's cronjob tool cannot set this). Pass empty string to "- "clear the pin and follow cron.model / model.default."))+ "clear the pin and follow cron.model / model.default.")cron_edit.add_argument("--provider", dest="model_provider",help="Inference provider paired with --model. Pass empty string to clear.")cron_edit.add_argument(- "--reasoning-effort",- dest="reasoning_effort",- help=(- "Pin this job's reasoning (thinking) effort: none, minimal, low, "+ "--reasoning-effort", dest="reasoning_effort",+ help="Pin this job's reasoning (thinking) effort: none, minimal, low, ""medium, high, xhigh, max, or ultra. Pass empty string to clear "- "the pin and follow config resolution."))+ "the pin and follow config resolution.")# lifecycle actionscron_pause = cron_subparsers.add_parser("pause", help="Pause a scheduled job")diff --git a/hermes_cli/subcommands/curator.py b/hermes_cli/subcommands/curator.pyindex 90315b33991..ed10b7ccf8f 100644--- a/hermes_cli/subcommands/curator.py+++ b/hermes_cli/subcommands/curator.py@@ -8,14 +8,12 @@ import loggingdef build_curator_parser(subparsers) -> None:"""Attach the ``curator`` subcommand to ``subparsers``."""curator_parser = subparsers.add_parser(- "curator",- help="Background skill maintenance (curator) — status, run, pause, pin",- description=(- "The curator is an auxiliary-model background task that "+ "curator", help="Background skill maintenance (curator) — status, run, pause, pin",+ description="The curator is an auxiliary-model background task that ""periodically reviews agent-created skills, prunes stale ones, ""consolidates overlaps, and archives obsolete skills. ""Bundled and hub-installed skills are never touched. "- "Archives are recoverable; auto-deletion never happens."))+ "Archives are recoverable; auto-deletion never happens.")try:from hermes_cli.curator import register_cli as _register_curator_clidiff --git a/hermes_cli/subcommands/dashboard.py b/hermes_cli/subcommands/dashboard.pyindex 89a3c8c4a88..2bd45239673 100644--- a/hermes_cli/subcommands/dashboard.py+++ b/hermes_cli/subcommands/dashboard.py@@ -25,28 +25,22 @@ def _add_server_runtime_args(parser) -> None:"--port", type=int, default=9119, help="Port (default 9119, 0 for auto-assign by OS)")parser.add_argument("--host", default="127.0.0.1", help="Host (default 127.0.0.1)")parser.add_argument(- "--insecure",- action="store_true",- help=(- "DEPRECATED / NO-OP. Formerly bypassed auth on a non-loopback "+ "--insecure", action="store_true",+ help="DEPRECATED / NO-OP. Formerly bypassed auth on a non-loopback ""bind. As of the June 2026 hardening it no longer disables ""authentication — a public bind always requires an auth provider "- "(password or OAuth). Bind 127.0.0.1 + tunnel to keep it local."))+ "(password or OAuth). Bind 127.0.0.1 + tunnel to keep it local.")parser.add_argument(- "--skip-build",- action="store_true",- help=(- "Skip the web UI build step and serve the existing dist directly. "+ "--skip-build", action="store_true",+ help="Skip the web UI build step and serve the existing dist directly. ""Useful for non-interactive contexts (Windows Scheduled Tasks, CI) "- "where npm may not be available. Pre-build with: cd web && npm run build"))+ "where npm may not be available. Pre-build with: cd web && npm run build")parser.add_argument(- "--isolated",- action="store_true",- help=(- "When launched from a named profile, run a dedicated server scoped "+ "--isolated", action="store_true",+ help="When launched from a named profile, run a dedicated server scoped ""to that profile instead of routing to the machine-level server. ""Default behavior is unified: profile launches attach to (or start) "- "ONE machine-level server and preselect the profile."))+ "ONE machine-level server and preselect the profile.")# Internal flag set by the unified-launch re-exec (cmd_dashboard) to# preselect the launching profile in the SPA switcher. Hidden from --help.parser.add_argument("--open-profile", dest="open_profile", default="", help=argparse.SUPPRESS)@@ -88,12 +82,10 @@ def build_serve_parser("""Build the standalone parser used by the lean ``serve`` dispatch path."""parser = argparse.ArgumentParser(prog="hermes serve",- description=(- "Run the Hermes backend server - the JSON-RPC/WebSocket gateway the "+ description="Run the Hermes backend server - the JSON-RPC/WebSocket gateway the ""desktop app and remote clients connect to. Headless: it never opens "- "a browser UI."),- add_help=add_help,- exit_on_error=exit_on_error)+ "a browser UI.",+ add_help=add_help, exit_on_error=exit_on_error)_configure_serve_parser(parser, cmd_dashboard=cmd_dashboard)return parser@@ -138,10 +130,9 @@ def build_dashboard_parser(serve_parser = subparsers.add_parser("serve",help="Start the Hermes backend server (headless; powers the desktop app and remote backends)",- description=(- "Run the Hermes backend server — the JSON-RPC/WebSocket gateway the "+ description="Run the Hermes backend server — the JSON-RPC/WebSocket gateway the ""desktop app and remote clients connect to. Headless: it never opens "- "a browser UI."))+ "a browser UI.")_configure_serve_parser(serve_parser, cmd_dashboard=cmd_dashboard)# `hermes dashboard register` — register a self-hosted dashboard OAuth@@ -152,28 +143,21 @@ def build_dashboard_parser(dashboard_register_parser = dashboard_subparsers.add_parser("register",help="Register a self-hosted dashboard with Nous Portal (writes the OAuth client ID to .env)",- description=(- "Register this install as a self-hosted dashboard with your Nous "+ description="Register this install as a self-hosted dashboard with your Nous ""Portal account. Creates an OAuth client, writes ""HERMES_DASHBOARD_OAUTH_CLIENT_ID into ~/.hermes/.env, and prints "- "how to engage the login gate. Requires being logged in (hermes setup)."))+ "how to engage the login gate. Requires being logged in (hermes setup).")dashboard_register_parser.add_argument("--name", default=None,help="Human-readable label for the dashboard (default: an auto-generated name)")dashboard_register_parser.add_argument(- "--redirect-uri",- dest="redirect_uri",- default=None,- help=(- "Optional public HTTPS OAuth redirect URI for the dashboard, e.g. "- "https://hermes.example.com/auth/callback. Omit for localhost-only use."))+ "--redirect-uri", dest="redirect_uri", default=None,+ help="Optional public HTTPS OAuth redirect URI for the dashboard, e.g. "+ "https://hermes.example.com/auth/callback. Omit for localhost-only use.")dashboard_register_parser.add_argument(- "--portal-url",- dest="portal_url",- default=None,- help=(- "Override the Nous Portal base URL for registration (default: the "+ "--portal-url", dest="portal_url", default=None,+ help="Override the Nous Portal base URL for registration (default: the ""portal you logged into). The access token must be valid at this ""portal. Also settable via HERMES_DASHBOARD_PORTAL_URL. Mainly for "- "testing against a staging/preview portal."))+ "testing against a staging/preview portal.")dashboard_register_parser.set_defaults(func=cmd_dashboard_register)diff --git a/hermes_cli/subcommands/debug.py b/hermes_cli/subcommands/debug.pyindex 463e06b39d8..44641e70521 100644--- a/hermes_cli/subcommands/debug.py+++ b/hermes_cli/subcommands/debug.py@@ -9,8 +9,7 @@ from typing import Callabledef build_debug_parser(subparsers, *, cmd_debug: Callable) -> None:"""Attach the ``debug`` subcommand to ``subparsers``."""debug_parser = subparsers.add_parser(- "debug",- help="Debug tools — upload logs and system info for support",+ "debug", help="Debug tools — upload logs and system info for support",description="Debug utilities for Hermes Agent. Use 'hermes debug share' to ""upload a debug report (system info + recent logs) to a paste ""service and get a shareable URL.",@@ -25,8 +24,7 @@ Examples:hermes debug share --no-redact Disable upload-time secret redactionhermes debug share --nous Upload to Nous-internal storage (private)hermes debug delete <url> Delete a previously uploaded paste-""",- )+""")debug_sub = debug_parser.add_subparsers(dest="debug_command")share_parser = debug_sub.add_parser("share", help="Upload debug report to a paste service and print a shareable URL")@@ -38,30 +36,23 @@ Examples:share_parser.add_argument("--local", action="store_true", help="Print the report locally instead of uploading")share_parser.add_argument(- "-y",- "--yes",- action="store_true",- help=(- "Skip the confirmation prompt and upload immediately. Required "+ "-y", "--yes", action="store_true",+ help="Skip the confirmation prompt and upload immediately. Required ""in non-interactive contexts (scripts/CI); without it, and with "- "no TTY on stdin, the command refuses rather than upload silently."))+ "no TTY on stdin, the command refuses rather than upload silently.")share_parser.add_argument(- "--no-redact",- action="store_true",- help=(- "Disable upload-time secret redaction (default: redact). Logs "+ "--no-redact", action="store_true",+ help="Disable upload-time secret redaction (default: redact). Logs ""are normally run through agent.redact.redact_sensitive_text ""with force=True before upload so credentials are not leaked "- "into the public paste service."))+ "into the public paste service.")share_parser.add_argument(- "--nous",- action="store_true",- help=(- "Upload the debug bundle to Nous-internal storage (AWS S3) instead "+ "--nous", action="store_true",+ help="Upload the debug bundle to Nous-internal storage (AWS S3) instead ""of a public paste service. The bundle is private — viewable only ""by Nous staff (and allowlisted Discord mods) via a Google-login-""gated viewer — and auto-deletes after 14 days. Still force-redacts "- "secrets unless --no-redact is also passed."))+ "secrets unless --no-redact is also passed.")delete_parser = debug_sub.add_parser("delete", help="Delete a paste uploaded by 'hermes debug share'")delete_parser.add_argument(diff --git a/hermes_cli/subcommands/doctor.py b/hermes_cli/subcommands/doctor.pyindex f3598e314c7..17fc1db8ee7 100644--- a/hermes_cli/subcommands/doctor.py+++ b/hermes_cli/subcommands/doctor.py@@ -13,18 +13,13 @@ def build_doctor_parser(subparsers, *, cmd_doctor: Callable) -> None:doctor_parser.add_argument("--fix", action="store_true", help="Attempt to fix issues automatically")doctor_parser.add_argument(- "--live",- action="store_true",- help=(- "Opt-in: run one bounded, read-only real-call health probe per "+ "--live", action="store_true",+ help="Opt-in: run one bounded, read-only real-call health probe per ""configured tool backend (Firecrawl/FAL/browser/MCP/TTS/STT) "- "after the static checks. Makes real network calls."))+ "after the static checks. Makes real network calls.")doctor_parser.add_argument(- "--ack",- metavar="ADVISORY_ID",- default=None,- help=(- "Acknowledge a security advisory by ID and exit. After ack, the "+ "--ack", metavar="ADVISORY_ID", default=None,+ help="Acknowledge a security advisory by ID and exit. After ack, the ""advisory will no longer trigger startup banners. Run `hermes "- "doctor` first to see active advisories and their IDs."))+ "doctor` first to see active advisories and their IDs.")doctor_parser.set_defaults(func=cmd_doctor)diff --git a/hermes_cli/subcommands/dump.py b/hermes_cli/subcommands/dump.pyindex a84bc15338c..8920dd9a2f7 100644--- a/hermes_cli/subcommands/dump.py+++ b/hermes_cli/subcommands/dump.py@@ -8,8 +8,7 @@ from typing import Callabledef build_dump_parser(subparsers, *, cmd_dump: Callable) -> None:"""Attach the ``dump`` subcommand to ``subparsers``."""dump_parser = subparsers.add_parser(- "dump",- help="Dump setup summary for support/debugging",+ "dump", help="Dump setup summary for support/debugging",description="Output a compact, plain-text summary of your Hermes setup ""that can be copy-pasted into Discord/GitHub for support context")dump_parser.add_argument(diff --git a/hermes_cli/subcommands/egress.py b/hermes_cli/subcommands/egress.pyindex 8a601ba9bda..4958bb2ddce 100644--- a/hermes_cli/subcommands/egress.py+++ b/hermes_cli/subcommands/egress.py@@ -9,13 +9,11 @@ def build_egress_parser(subparsers) -> None:# `hermes proxy` (defined elsewhere in this file) is a separate INBOUND# OAuth-aggregator reverse proxy. Different direction, different purpose.egress_parser = subparsers.add_parser(- "egress",- help="Manage the iron-proxy egress credential-injection firewall",- description=(- "Manage iron-proxy, the optional TLS-intercepting egress firewall "+ "egress", help="Manage the iron-proxy egress credential-injection firewall",+ description="Manage iron-proxy, the optional TLS-intercepting egress firewall ""that swaps proxy tokens for real API credentials before outbound ""requests leave a sandbox. Disabled by default. See: "- "https://hermes-agent.nousresearch.com/docs/user-guide/egress/iron-proxy"))+ "https://hermes-agent.nousresearch.com/docs/user-guide/egress/iron-proxy")from hermes_cli import proxy_cli as _proxy_cli_proxy_cli.register_cli(egress_parser)diff --git a/hermes_cli/subcommands/fallback.py b/hermes_cli/subcommands/fallback.pyindex 5b6dfd1acbc..3f248f3fb00 100644--- a/hermes_cli/subcommands/fallback.py+++ b/hermes_cli/subcommands/fallback.py@@ -8,13 +8,11 @@ def build_fallback_parser(subparsers) -> None:from hermes_cli.fallback_cmd import cmd_fallbackfallback_parser = subparsers.add_parser(- "fallback",- help="Manage fallback providers (tried when the primary model fails)",- description=(- "Manage the fallback provider chain. Fallback providers are tried "+ "fallback", help="Manage fallback providers (tried when the primary model fails)",+ description="Manage the fallback provider chain. Fallback providers are tried ""in order when the primary model fails with rate-limit, overload, or ""connection errors. See: "- "https://hermes-agent.nousresearch.com/docs/user-guide/features/fallback-providers"))+ "https://hermes-agent.nousresearch.com/docs/user-guide/features/fallback-providers")fallback_subparsers = fallback_parser.add_subparsers(dest="fallback_command")fallback_subparsers.add_parser("list", aliases=["ls"], help="Show the current fallback chain (default when no subcommand)")diff --git a/hermes_cli/subcommands/gateway.py b/hermes_cli/subcommands/gateway.pyindex 8c9d2996b53..c00d1ca0156 100644--- a/hermes_cli/subcommands/gateway.py+++ b/hermes_cli/subcommands/gateway.py@@ -32,8 +32,7 @@ def build_gateway_parser(gateway_run = gateway_subparsers.add_parser("run", help="Run gateway in foreground (recommended for WSL, Docker, Termux)")gateway_run.add_argument(- "-v",- "--verbose", action="count", default=0,+ "-v", "--verbose", action="count", default=0,help="Increase stderr log verbosity (-v=INFO, -vv=DEBUG)")gateway_run.add_argument("-q", "--quiet", action="store_true", help="Suppress all stderr log output")@@ -41,32 +40,26 @@ def build_gateway_parser("--replace", action="store_true",help="Replace any existing gateway instance (useful for systemd)")gateway_run.add_argument(- "--force",- action="store_true",- help=(- "Start a foreground gateway even when a systemd/launchd/s6 service "+ "--force", action="store_true",+ help="Start a foreground gateway even when a systemd/launchd/s6 service ""already supervises this profile. Without --force, the command ""refuses because a second dispatcher escapes the service and can "- "corrupt shared gateway state."))+ "corrupt shared gateway state.")gateway_run.add_argument(- "--no-supervise",- action="store_true",- help=(- "Inside the s6-overlay Docker image, normally `gateway run` is "+ "--no-supervise", action="store_true",+ help="Inside the s6-overlay Docker image, normally `gateway run` is ""automatically redirected to the supervised s6 service (so the ""gateway gets auto-restart on crash, plus a supervised dashboard ""if HERMES_DASHBOARD is set). Pass --no-supervise to opt out and ""get the historical pre-s6 foreground behavior: the gateway is ""the container's main process and the container exits with the "- "gateway's exit code. No effect outside an s6 container."))+ "gateway's exit code. No effect outside an s6 container.")gateway_run.add_argument(- "--external-supervisor",- action="store_true",- help=(- "Declare that an external process manager owns this foreground "+ "--external-supervisor", action="store_true",+ help="Declare that an external process manager owns this foreground ""gateway. In-chat restarts and updates exit back to that manager ""instead of spawning a detached replacement. Use this when a "- "launchd/systemd wrapper strips its native environment markers."))+ "launchd/systemd wrapper strips its native environment markers.")add_accept_hooks_flag(gateway_run)add_accept_hooks_flag(gateway_parser)@@ -100,8 +93,7 @@ def build_gateway_parser(gateway_status = gateway_subparsers.add_parser("status", help="Show gateway status")gateway_status.add_argument("--deep", action="store_true", help="Deep status check")gateway_status.add_argument(- "-l",- "--full", action="store_true",+ "-l", "--full", action="store_true",help="Show full, untruncated service/log output where supported")gateway_status.add_argument("--system", action="store_true", help="Target the Linux system-level gateway service")@@ -145,19 +137,16 @@ def build_gateway_parser(# gateway migrate-legacygateway_migrate_legacy = gateway_subparsers.add_parser(- "migrate-legacy",- help="Remove legacy hermes.service units from pre-rename installs",- description=(- "Stop, disable, and remove legacy Hermes gateway unit files "+ "migrate-legacy", help="Remove legacy hermes.service units from pre-rename installs",+ description="Stop, disable, and remove legacy Hermes gateway unit files ""(e.g. hermes.service) left over from older installs. Profile ""units (hermes-gateway-<profile>.service) and unrelated "- "third-party services are never touched."))+ "third-party services are never touched.")gateway_migrate_legacy.add_argument("--dry-run", dest="dry_run", action="store_true",help="List what would be removed without doing it")gateway_migrate_legacy.add_argument(- "-y",- "--yes", dest="yes", action="store_true", help="Skip the confirmation prompt")+ "-y", "--yes", dest="yes", action="store_true", help="Skip the confirmation prompt")# gateway enroll — enroll a self-hosted gateway with a relay connector# (connector⇄gateway auth). Redeems a single-use enrollment token for the@@ -167,45 +156,33 @@ def build_gateway_parser(gateway_enroll = gateway_subparsers.add_parser("enroll",help="Enroll this gateway with a relay connector (writes relay auth creds to .env)",- description=(- "Redeem a single-use enrollment token with a relay connector. "+ description="Redeem a single-use enrollment token with a relay connector. ""Authenticates as your Nous Portal account (the connector derives the ""authoritative tenant from it), mints this gateway's per-gateway secret ""and per-tenant delivery key, and writes GATEWAY_RELAY_ID / ""GATEWAY_RELAY_SECRET / GATEWAY_RELAY_DELIVERY_KEY into ~/.hermes/.env. "- "Requires being logged in (hermes setup). Not available in managed installs."))+ "Requires being logged in (hermes setup). Not available in managed installs.")gateway_enroll.add_argument(- "--token",- default=None,- help=(- "The single-use enrollment token from the connector (delivered with "- "your gateway config). Also settable via GATEWAY_RELAY_ENROLL_TOKEN."))+ "--token", default=None,+ help="The single-use enrollment token from the connector (delivered with "+ "your gateway config). Also settable via GATEWAY_RELAY_ENROLL_TOKEN.")gateway_enroll.add_argument(- "--connector-url",- dest="connector_url",- default=None,- help=(- "The connector base/relay URL, e.g. wss://connector.example.com/relay "+ "--connector-url", dest="connector_url", default=None,+ help="The connector base/relay URL, e.g. wss://connector.example.com/relay ""or https://connector.example.com. Also settable via GATEWAY_RELAY_URL "- "/ gateway.relay_url in config.yaml."))+ "/ gateway.relay_url in config.yaml.")gateway_enroll.add_argument(- "--gateway-id",- dest="gateway_id",- default=None,- help=(- "A stable id for this gateway instance (kill-switch granularity). "- "Defaults to gw-<hostname>."))+ "--gateway-id", dest="gateway_id", default=None,+ help="A stable id for this gateway instance (kill-switch granularity). "+ "Defaults to gw-<hostname>.")gateway_enroll.add_argument(- "--wake-url",- dest="wake_url",- default=None,- help=(- "Phase 5 §5.2 wake URL: a reachable URL the connector pokes "+ "--wake-url", dest="wake_url", default=None,+ help="Phase 5 §5.2 wake URL: a reachable URL the connector pokes ""(payload-free GET) to wake this gateway when buffered work arrives ""while it's idle/suspended, so it reconnects and drains. Persisted as ""GATEWAY_RELAY_WAKE_URL in ~/.hermes/.env and forwarded at provision. ""Optional — without it the gateway still drains whenever it next "- "reconnects on its own."))+ "reconnects on its own.")gateway_enroll.set_defaults(func=cmd_gateway_enroll)# proxy command — local OpenAI-compatible proxy that attaches the user's@@ -213,13 +190,11 @@ def build_gateway_parser(# 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",- description=(- "Run a local HTTP server that forwards OpenAI-compatible requests "+ "proxy", help="Local OpenAI-compatible proxy to OAuth providers",+ description="Run a local HTTP server that forwards OpenAI-compatible requests ""to an OAuth-authenticated provider (e.g. Nous Portal). External ""apps can point at the proxy with any bearer token; the proxy "- "attaches your real credentials."))+ "attaches your real credentials.")proxy_subparsers = proxy_parser.add_subparsers(dest="proxy_command")proxy_start = proxy_subparsers.add_parser("start", help="Run the proxy in the foreground")diff --git a/hermes_cli/subcommands/gui.py b/hermes_cli/subcommands/gui.pyindex 651e100464a..2a789694fbc 100644--- a/hermes_cli/subcommands/gui.py+++ b/hermes_cli/subcommands/gui.py@@ -8,13 +8,10 @@ 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"],- help="Build and launch the native desktop app",- description=(- "Launch the Hermes Electron desktop app. By default this installs "+ "desktop", aliases=["gui"], help="Build and launch the native desktop app",+ description="Launch the Hermes Electron desktop app. By default this installs ""workspace Node dependencies, builds the current OS's unpacked "- "Electron app, then launches that packaged artifact."))+ "Electron app, then launches that packaged artifact.")gui_parser.add_argument("--source", action="store_true",help="Launch via `electron .` against apps/desktop/dist instead of the packaged app")@@ -44,15 +41,13 @@ def build_gui_parser(subparsers, *, cmd_gui: Callable) -> None:"--force-build", action="store_true",help="Force a full rebuild even if the content stamp matches")gui_parser.add_argument(- "--setup-tcc-identity",- action="store_true",- help=(- "macOS only: create/import a self-signed code-signing certificate "+ "--setup-tcc-identity", action="store_true",+ help="macOS only: create/import a self-signed code-signing certificate ""in the login keychain and point desktop.macos_signing_identity at ""it, then re-sign the packaged app. Makes macOS TCC grants (Full ""Disk Access, Accessibility, Files and Folders, microphone) survive ""rebuilds with a certificate-anchored identity. Idempotent — safe "- "to re-run after updates."))+ "to re-run after updates.")gui_parser.add_argument("--identity", default="Hermes Local Signing",help="Certificate name to create/use for --setup-tcc-identity (default: Hermes Local Signing)",diff --git a/hermes_cli/subcommands/hooks.py b/hermes_cli/subcommands/hooks.pyindex 397cf6fbd0e..cc3afd9237f 100644--- a/hermes_cli/subcommands/hooks.py+++ b/hermes_cli/subcommands/hooks.py@@ -8,12 +8,10 @@ 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",- description=(- "Inspect shell-script hooks declared in ~/.hermes/config.yaml, "+ "hooks", help="Inspect and manage shell-script hooks",+ description="Inspect shell-script hooks declared in ~/.hermes/config.yaml, ""test them against synthetic payloads, and manage the first-use "- "consent allowlist at ~/.hermes/shell-hooks-allowlist.json."))+ "consent allowlist at ~/.hermes/shell-hooks-allowlist.json.")hooks_subparsers = hooks_parser.add_subparsers(dest="hooks_action")hooks_subparsers.add_parser(@@ -25,19 +23,13 @@ def build_hooks_parser(subparsers, *, cmd_hooks: Callable) -> None:_hk_test.add_argument("event", help="Hook event name (e.g. pre_tool_call, pre_llm_call, subagent_stop)")_hk_test.add_argument(- "--for-tool",- dest="for_tool",- default=None,- help=(- "Only fire hooks whose matcher matches this tool name "- "(used for pre_tool_call / post_tool_call)"))+ "--for-tool", dest="for_tool", default=None,+ help="Only fire hooks whose matcher matches this tool name "+ "(used for pre_tool_call / post_tool_call)")_hk_test.add_argument(- "--payload-file",- dest="payload_file",- default=None,- help=(- "Path to a JSON file whose contents are merged into the "- "synthetic payload before execution"))+ "--payload-file", dest="payload_file", default=None,+ help="Path to a JSON file whose contents are merged into the "+ "synthetic payload before execution")_hk_revoke = hooks_subparsers.add_parser("revoke", aliases=["remove", "rm"],@@ -47,8 +39,7 @@ def build_hooks_parser(subparsers, *, cmd_hooks: Callable) -> None:hooks_subparsers.add_parser("doctor",- help=(- "Check each configured hook: exec bit, allowlist, mtime drift, "- "JSON validity, and synthetic run timing"))+ help="Check each configured hook: exec bit, allowlist, mtime drift, "+ "JSON validity, and synthetic run timing")hooks_parser.set_defaults(func=cmd_hooks)diff --git a/hermes_cli/subcommands/import_agent.py b/hermes_cli/subcommands/import_agent.pyindex 52fe6652695..efc51abe8ce 100644--- a/hermes_cli/subcommands/import_agent.py+++ b/hermes_cli/subcommands/import_agent.py@@ -13,14 +13,12 @@ from typing import Callabledef build_import_agent_parser(subparsers, *, cmd_import_agent: Callable) -> None:"""Attach the ``import-agent`` subcommand to ``subparsers``."""parser = subparsers.add_parser(- "import-agent",- help="Import a Claude Code or Codex CLI setup into Hermes",- description=(- "One-command import of another coding agent's setup into Hermes. "+ "import-agent", help="Import a Claude Code or Codex CLI setup into Hermes",+ description="One-command import of another coding agent's setup into Hermes. ""Maps CLAUDE.md/AGENTS.md instructions, permission allowlists, MCP ""servers, skills, and memories into their Hermes equivalents. ""Always shows a preview before making changes. API keys and "- "credentials are never imported — run 'hermes setup' for those."))+ "credentials are never imported — run 'hermes setup' for those.")parser.add_argument("agent", nargs="?", choices=["claude-code", "codex"],help="Which agent to import from (default: auto-detect ~/.claude or ~/.codex)")diff --git a/hermes_cli/subcommands/import_cmd.py b/hermes_cli/subcommands/import_cmd.pyindex ff609cd17c6..562727c78cd 100644--- a/hermes_cli/subcommands/import_cmd.py+++ b/hermes_cli/subcommands/import_cmd.py@@ -8,13 +8,11 @@ from typing import Callabledef build_import_cmd_parser(subparsers, *, cmd_import: Callable) -> None:"""Attach the ``import`` subcommand to ``subparsers``."""import_parser = subparsers.add_parser(- "import",- help="Restore a Hermes backup from a zip file",+ "import", help="Restore a Hermes backup from a zip file",description="Extract a previously created Hermes backup into your ""Hermes home directory, restoring configuration, skills, ""sessions, and data")import_parser.add_argument("zipfile", help="Path to the backup zip file")import_parser.add_argument(- "--force",- "-f", action="store_true", help="Overwrite existing files without confirmation")+ "--force", "-f", action="store_true", help="Overwrite existing files without confirmation")import_parser.set_defaults(func=cmd_import)diff --git a/hermes_cli/subcommands/journey.py b/hermes_cli/subcommands/journey.pyindex b60cba964b0..16de72f53e8 100644--- a/hermes_cli/subcommands/journey.py+++ b/hermes_cli/subcommands/journey.py@@ -8,14 +8,12 @@ import loggingdef build_journey_parser(subparsers) -> None:"""Attach the ``journey`` subcommand to ``subparsers``."""journey_parser = subparsers.add_parser(- "journey",- aliases=["learning", "memory-graph"],+ "journey", aliases=["learning", "memory-graph"],help="Timeline of learned skills + memories over time",- description=(- "A terminal rendition of the desktop Star Map / Memory Graph: a "+ description="A terminal rendition of the desktop Star Map / Memory Graph: a ""timeline bar chart of learned skills and memories over time ""(oldest at top, newest at bottom) plus a playable constellation "- "scrubber. Mirrors the TUI `/journey` overlay and the desktop panel."))+ "scrubber. Mirrors the TUI `/journey` overlay and the desktop panel.")try:from hermes_cli.journey import register_cli as _register_journey_clidiff --git a/hermes_cli/subcommands/login.py b/hermes_cli/subcommands/login.pyindex 54ea04a62ff..03d8df0584d 100644--- a/hermes_cli/subcommands/login.py+++ b/hermes_cli/subcommands/login.py@@ -27,9 +27,8 @@ def build_login_parser(subparsers, *, cmd_login: Callable) -> None:"""login_parser = subparsers.add_parser("login",- description=(- "Deprecated. Use `hermes auth` to manage credentials, "- "`hermes model` to select a provider, or `hermes setup` for full setup."))+ description="Deprecated. Use `hermes auth` to manage credentials, "+ "`hermes model` to select a provider, or `hermes setup` for full setup.")# No ``choices=`` on purpose — the handler is a deprecation notice that# ignores the value, and a restrictive list would reject providers the user# legitimately wants (e.g. ``anthropic``) with an argparse error before thediff --git a/hermes_cli/subcommands/logs.py b/hermes_cli/subcommands/logs.pyindex d1113ac3ec4..a5b6d9a0d41 100644--- a/hermes_cli/subcommands/logs.py+++ b/hermes_cli/subcommands/logs.py@@ -9,8 +9,7 @@ from typing import Callabledef build_logs_parser(subparsers, *, cmd_logs: Callable) -> None:"""Attach the ``logs`` subcommand to ``subparsers``."""logs_parser = subparsers.add_parser(- "logs",- help="View and filter Hermes log files",+ "logs", help="View and filter Hermes log files",description="View, tail, and filter agent.log / errors.log / gateway.log / gui.log / desktop.log",formatter_class=argparse.RawDescriptionHelpFormatter,epilog="""\@@ -27,18 +26,15 @@ Examples:hermes logs --since 1h Lines from the last hourhermes logs --since 30m -f Follow, starting from 30 min agohermes logs list List available log files with sizes-""",- )+""")logs_parser.add_argument("log_name", nargs="?", default="agent",help="Log to view: agent (default), errors, gateway, gui, or 'list' to show available files",)logs_parser.add_argument(- "-n",- "--lines", type=int, default=50, help="Number of lines to show (default: 50)")+ "-n", "--lines", type=int, default=50, help="Number of lines to show (default: 50)")logs_parser.add_argument(- "-f",- "--follow", action="store_true", help="Follow the log in real time (like tail -f)")+ "-f", "--follow", action="store_true", help="Follow the log in real time (like tail -f)")logs_parser.add_argument("--level", metavar="LEVEL", help="Minimum log level to show (DEBUG, INFO, WARNING, ERROR)")logs_parser.add_argument(diff --git a/hermes_cli/subcommands/mcp.py b/hermes_cli/subcommands/mcp.pyindex 90fb6fc4f3a..92cb5eda0cb 100644--- a/hermes_cli/subcommands/mcp.py+++ b/hermes_cli/subcommands/mcp.py@@ -11,20 +11,17 @@ from hermes_cli.subcommands._shared import add_accept_hooks_flagdef build_mcp_parser(subparsers, *, cmd_mcp: Callable) -> None:"""Attach the ``mcp`` subcommand to ``subparsers``."""mcp_parser = subparsers.add_parser(- "mcp",- help="Manage MCP servers and run Hermes as an MCP server",- description=(- "Manage MCP server connections and run Hermes as an MCP server.\n\n"+ "mcp", help="Manage MCP servers and run Hermes as an MCP server",+ description="Manage MCP server connections and run Hermes as an MCP server.\n\n""MCP servers provide additional tools via the Model Context Protocol.\n""Use 'hermes mcp add' to connect to a new server, or\n"- "'hermes mcp serve' to expose Hermes conversations over MCP."))+ "'hermes mcp serve' to expose Hermes conversations over MCP.")mcp_sub = mcp_parser.add_subparsers(dest="mcp_action")mcp_serve_p = mcp_sub.add_parser("serve", help="Run Hermes as an MCP server (expose conversations to other agents)")mcp_serve_p.add_argument(- "-v",- "--verbose", action="store_true", help="Enable verbose logging on stderr")+ "-v", "--verbose", action="store_true", help="Enable verbose logging on stderr")add_accept_hooks_flag(mcp_serve_p)mcp_add_p = mcp_sub.add_parser("add", help="Add an MCP server (discovery-first install)")diff --git a/hermes_cli/subcommands/memory.py b/hermes_cli/subcommands/memory.pyindex 22dd168de7f..0f51fcb13ed 100644--- a/hermes_cli/subcommands/memory.py+++ b/hermes_cli/subcommands/memory.py@@ -8,14 +8,12 @@ from typing import Callabledef build_memory_parser(subparsers, *, cmd_memory: Callable) -> None:"""Attach the ``memory`` subcommand to ``subparsers``."""memory_parser = subparsers.add_parser(- "memory",- help="Configure external memory provider",- description=(- "Set up and manage external memory provider plugins.\n\n"+ "memory", help="Configure external memory provider",+ description="Set up and manage external memory provider plugins.\n\n""Available providers: honcho, openviking, mem0, hindsight,\n""holographic, retaindb, byterover.\n\n""Only one external provider can be active at a time.\n"- "Built-in memory (MEMORY.md/USER.md) is always active."))+ "Built-in memory (MEMORY.md/USER.md) is always active.")memory_sub = memory_parser.add_subparsers(dest="memory_command")_setup_parser = memory_sub.add_parser("setup", help="Interactive provider selection and configuration")diff --git a/hermes_cli/subcommands/migrate.py b/hermes_cli/subcommands/migrate.pyindex cc89c95f6f2..432cda08cbb 100644--- a/hermes_cli/subcommands/migrate.py+++ b/hermes_cli/subcommands/migrate.py@@ -8,21 +8,17 @@ def build_migrate_parser(subparsers) -> None:from hermes_cli.migrate import cmd_migrate, cmd_migrate_xaimigrate_parser = subparsers.add_parser(- "migrate",- help="Migrate configuration for retired models or deprecated settings",- description=(- "Diagnose and (optionally) rewrite the active config.yaml to "- "replace references to retired models or deprecated settings."))+ "migrate", help="Migrate configuration for retired models or deprecated settings",+ description="Diagnose and (optionally) rewrite the active config.yaml to "+ "replace references to retired models or deprecated settings.")migrate_subparsers = migrate_parser.add_subparsers(dest="migrate_type")migrate_xai = migrate_subparsers.add_parser(- "xai",- help="Migrate xAI models scheduled for retirement on May 15, 2026",- description=(- "Scan config.yaml for references to xAI models retiring on "+ "xai", help="Migrate xAI models scheduled for retirement on May 15, 2026",+ description="Scan config.yaml for references to xAI models retiring on ""May 15, 2026 and, with --apply, rewrite them in-place to the ""official replacements per the xAI migration guide. The original "- "config.yaml is backed up before any rewrite."))+ "config.yaml is backed up before any rewrite.")migrate_xai.add_argument("--apply", action="store_true",help="Rewrite config.yaml in-place (default: dry-run, no writes)")diff --git a/hermes_cli/subcommands/monitoring.py b/hermes_cli/subcommands/monitoring.pyindex 7e9042aa551..d42b55f6da0 100644--- a/hermes_cli/subcommands/monitoring.py+++ b/hermes_cli/subcommands/monitoring.py@@ -16,14 +16,12 @@ from typing import Callabledef build_monitoring_parser(subparsers, *, cmd_monitoring: Callable) -> None:"""Attach the ``monitoring`` subcommand (with actions) to ``subparsers``."""p = subparsers.add_parser(- "monitoring",- help="Inspect gateway monitoring (health & diagnostics export)",- description=(- "Gateway monitoring: service health metrics plus redacted "+ "monitoring", help="Inspect gateway monitoring (health & diagnostics export)",+ description="Gateway monitoring: service health metrics plus redacted ""diagnostics, exported over OTLP to an operator-configured ""endpoint. Content-free by construction — no prompts, messages, ""tool args/results, or usage analytics. Configure under "- "monitoring.* in config.yaml."))+ "monitoring.* in config.yaml.")sub = p.add_subparsers(dest="monitoring_action")sub.add_parser("status", help="Show monitoring settings, export state, and redaction posture")diff --git a/hermes_cli/subcommands/pause.py b/hermes_cli/subcommands/pause.pyindex 261e3bef1bc..e32fca59fc5 100644--- a/hermes_cli/subcommands/pause.py+++ b/hermes_cli/subcommands/pause.py@@ -46,12 +46,10 @@ def cmd_resume(args: argparse.Namespace) -> int:def build_pause_parser(subparsers) -> None:"""Attach the ``pause`` and ``resume`` subcommands to ``subparsers``."""pause_parser = subparsers.add_parser(- "pause",- help="Emergency stop: pause cron/kanban dispatch and new gateway turns",- description=(- "Engage the global emergency stop. Halts NEW work only — cron "+ "pause", help="Emergency stop: pause cron/kanban dispatch and new gateway turns",+ description="Engage the global emergency stop. Halts NEW work only — cron ""dispatch, kanban dispatch, and new gateway turns — until "- "`hermes resume`. In-flight work is never killed."))+ "`hermes resume`. In-flight work is never killed.")pause_parser.add_argument("--reason", default=None, help="Optional reason stored in the sentinel and shown to users")pause_parser.set_defaults(func=cmd_pause)diff --git a/hermes_cli/subcommands/peer.py b/hermes_cli/subcommands/peer.pyindex 42eb0cafac7..a4249230bcd 100644--- a/hermes_cli/subcommands/peer.py+++ b/hermes_cli/subcommands/peer.py@@ -89,8 +89,7 @@ def _request(from hermes_cli.urllib_security import open_credentialed_urldata = json.dumps(body).encode("utf-8") if body is not None else Nonerequest_headers = {- "Authorization": f"Bearer {key}",- "Content-Type": "application/json",+ "Authorization": f"Bearer {key}", "Content-Type": "application/json","User-Agent": "hermes-peer-dm"}if headers:request_headers.update(headers)@@ -155,8 +154,7 @@ def _ensure_bot_chat(base: str, key: str) -> str:f"Peer already has a '{BOT_CHAT_TITLE}' session but it is hidden and the "f"peer's gateway is too old to expose hidden sessions to this lookup "f"(HTTP 400: {detail}). Update the peer's hermes-agent, or unhide the "- f"session there: PATCH /api/sessions/<id> {{\"hidden\": false}}."- ) from exc+ f"session there: PATCH /api/sessions/<id> {{\"hidden\": false}}.") from excraise# Real api_server wraps the row: {"object": "hermes.session", "session": {...}}.session = created.get("session") if isinstance(created.get("session"), dict) else created@@ -297,8 +295,7 @@ def cmd_peer(args) -> int:result = _request(f"{base}/v1/runs/{urllib.parse.quote(run_id, safe='')}"+ ("/stop" if action == "stop" else ""),- key,- method="POST" if action == "stop" else "GET",+ key, method="POST" if action == "stop" else "GET",body={} if action == "stop" else None)except urllib.error.HTTPError as exc:print(@@ -362,12 +359,8 @@ def cmd_peer(args) -> int:print(f"Peer '{peer_name}' did not return a run ID.", file=sys.stderr)return 1payload = {- "peer": peer_name,- "profile": profile,- "session_id": session_id,- "run_id": run_id,- "status": result.get("status") or "started",- "idempotency_key": idempotency_key,+ "peer": peer_name, "profile": profile, "session_id": session_id, "run_id": run_id,+ "status": result.get("status") or "started", "idempotency_key": idempotency_key,"replayed": bool(result.get("replayed", False))}if getattr(args, "json", False):print(json.dumps(payload))@@ -410,15 +403,13 @@ def cmd_peer(args) -> int:def build_peer_parser(subparsers) -> None:"""Attach the ``peer`` subcommand to ``subparsers``."""parser = subparsers.add_parser(- "peer",- help="Bot-to-bot DMs across machines (peer Hermes gateways)",- description=(- "Register other Hermes gateways as peers and message their agents. "+ "peer", help="Bot-to-bot DMs across machines (peer Hermes gateways)",+ description="Register other Hermes gateways as peers and message their agents. ""'hermes peer dm <peer>[/<agent>] \"...\"' delivers into the remote ""agent's canonical Bot Chat over the peer's API server and prints ""the reply — the cross-machine twin of 'hermes -p <bot> chat'. ""The peer must run the api_server platform; its API_SERVER_KEY is "- "stored locally as a credential in ~/.hermes/.env."),+ "stored locally as a credential in ~/.hermes/.env.",epilog=("Examples:\n"" hermes peer add spark --url http://spark.lan:8377 --key <API_SERVER_KEY>\n"diff --git a/hermes_cli/subcommands/pets.py b/hermes_cli/subcommands/pets.pyindex 43e36e58470..4518a27ccf3 100644--- a/hermes_cli/subcommands/pets.py+++ b/hermes_cli/subcommands/pets.py@@ -8,13 +8,11 @@ import loggingdef build_pets_parser(subparsers) -> None:"""Attach the ``pets`` subcommand to ``subparsers``."""pets_parser = subparsers.add_parser(- "pets",- help="Browse, install, and select petdex animated pets",- description=(- "Petdex (https://github.com/crafter-station/petdex) is a public "+ "pets", help="Browse, install, and select petdex animated pets",+ description="Petdex (https://github.com/crafter-station/petdex) is a public ""gallery of animated sprite pets for coding agents. Install one ""and Hermes shows it reacting to agent activity across the CLI, "- "TUI, and desktop app."))+ "TUI, and desktop app.")try:from hermes_cli.pets import register_cli as _register_pets_clidiff --git a/hermes_cli/subcommands/plugins.py b/hermes_cli/subcommands/plugins.pyindex e8c6c14c586..bb887bae74b 100644--- a/hermes_cli/subcommands/plugins.py+++ b/hermes_cli/subcommands/plugins.py@@ -8,24 +8,20 @@ from typing import Callabledef build_plugins_parser(subparsers, *, cmd_plugins: Callable) -> None:"""Attach the ``plugins`` subcommand to ``subparsers``."""plugins_parser = subparsers.add_parser(- "plugins",- help="Manage and validate plugins",- description=(- "Install, update, remove, list, or validate native Hermes plugins "- "and portable Agent Plugins v1 packages. Portable packages install disabled."))+ "plugins", help="Manage and validate plugins",+ description="Install, update, remove, list, or validate native Hermes plugins "+ "and portable Agent Plugins v1 packages. Portable packages install disabled.")plugins_subparsers = plugins_parser.add_subparsers(dest="plugins_action")plugins_install = plugins_subparsers.add_parser("install", help="Install a plugin from a Git URL, owner/repo, or index name")plugins_install.add_argument("identifier",- help=(- "Git URL, owner/repo shorthand (e.g. anpicasso/hermes-plugin-chrome-profiles), "+ help="Git URL, owner/repo shorthand (e.g. anpicasso/hermes-plugin-chrome-profiles), ""or a bare plugin name resolved through the community index "- "(see `hermes plugins search`)"))+ "(see `hermes plugins search`)")plugins_install.add_argument(- "--force",- "-f", action="store_true", help="Remove existing plugin and reinstall")+ "--force", "-f", action="store_true", help="Remove existing plugin and reinstall")plugins_install.add_argument("--ref", metavar="COMMIT_SHA",help="Install exactly one immutable 40-character Git commit SHA")@@ -41,9 +37,7 @@ def build_plugins_parser(subparsers, *, cmd_plugins: Callable) -> None:plugins_search = plugins_subparsers.add_parser("search", help="Search the community plugin index")plugins_search.add_argument(- "term",- nargs="?",- default="",+ "term", nargs="?", default="",help="Search term matched fuzzily against name, description, and tags ""(omit to browse the full index)")plugins_search.add_argument("--json", action="store_true", help="Print machine-readable JSON")@@ -77,8 +71,7 @@ def build_plugins_parser(subparsers, *, cmd_plugins: Callable) -> None:plugins_enable.add_argument("name", help="Plugin name to enable")_enable_override_group = plugins_enable.add_mutually_exclusive_group()_enable_override_group.add_argument(- "--allow-tool-override",- action="store_true",+ "--allow-tool-override", action="store_true",help="Grant this plugin permission to replace built-in tools ""(e.g. shell_exec, write_file). Skips the confirmation prompt.")_enable_override_group.add_argument(@@ -90,12 +83,10 @@ def build_plugins_parser(subparsers, *, cmd_plugins: Callable) -> None:plugins_disable.add_argument("name", help="Plugin name to disable")plugins_capabilities = plugins_subparsers.add_parser(- "capabilities",- help="Show declared vs granted capabilities per plugin",- description=(- "Show each plugin's declared capabilities (from plugin.yaml) "+ "capabilities", help="Show declared vs granted capabilities per plugin",+ description="Show each plugin's declared capabilities (from plugin.yaml) ""against what the user has granted. Capabilities are a consent "- "and audit layer over host API surfaces — NOT a sandbox."))+ "and audit layer over host API surfaces — NOT a sandbox.")plugins_capabilities.add_argument("name", nargs="?", default=None,help="Plugin id to inspect (omit to list all plugins with capabilities)")@@ -109,21 +100,18 @@ def build_plugins_parser(subparsers, *, cmd_plugins: Callable) -> None:"--ci", action="store_true", help="Exit non-zero when validation reports an error")plugins_pack = plugins_subparsers.add_parser(- "pack",- help="Declarative, shareable plugin sets (hermes-pack.yaml)",- description=(- "Install, export, or inspect plugin packs — a single YAML file "+ "pack", help="Declarative, shareable plugin sets (hermes-pack.yaml)",+ description="Install, export, or inspect plugin packs — a single YAML file ""pinning a set of plugins to exact commit SHAs, with optional ""non-secret config seeds. Installing a pack fans out to ordinary "- "pinned installs; capability consent stays per-plugin."))+ "pinned installs; capability consent stays per-plugin.")pack_subparsers = plugins_pack.add_subparsers(dest="pack_action")pack_install = pack_subparsers.add_parser("install", help="Review and install a pack from a file path or https URL")pack_install.add_argument("source", help="Path to a hermes-pack.yaml file, or an https:// URL")pack_install.add_argument(- "--force",- "-f", action="store_true", help="Reinstall plugins that already exist")+ "--force", "-f", action="store_true", help="Reinstall plugins that already exist")pack_export = pack_subparsers.add_parser("export", help="Emit a pack YAML for the current install on stdout")diff --git a/hermes_cli/subcommands/profile.py b/hermes_cli/subcommands/profile.pyindex fc93fc63271..35fbc4b4ec8 100644--- a/hermes_cli/subcommands/profile.py+++ b/hermes_cli/subcommands/profile.py@@ -33,8 +33,7 @@ def build_profile_parser(subparsers, *, cmd_profile: Callable) -> None:help="Create an empty profile with no bundled skills (opts out of `hermes update` skill sync)",)profile_create.add_argument(- "--description",- default=None,+ "--description", default=None,help="One- or two-sentence description of what this profile is good at. ""Used by the kanban decomposer to route tasks based on role instead ""of profile name alone. Skip and add later via `hermes profile describe`.")@@ -52,13 +51,11 @@ def build_profile_parser(subparsers, *, cmd_profile: Callable) -> None:"--text", default=None,help="Set description to this exact text (overwrites any existing description)")profile_describe.add_argument(- "--auto",- action="store_true",+ "--auto", action="store_true",help="Auto-generate description via the auxiliary LLM ""(uses auxiliary.profile_describer)")profile_describe.add_argument(- "--overwrite",- action="store_true",+ "--overwrite", action="store_true",help="With --auto, replace user-authored descriptions too (default: only ""fill in missing or previously-auto descriptions)")profile_describe.add_argument(@@ -97,12 +94,10 @@ def build_profile_parser(subparsers, *, cmd_profile: Callable) -> None:# ---------- Distribution subcommands (issue #20456) ----------profile_install = profile_subparsers.add_parser(- "install",- help="Install a profile distribution from a git URL or local directory",- description=(- "Install a Hermes profile distribution. SOURCE can be a git URL "+ "install", help="Install a profile distribution from a git URL or local directory",+ description="Install a Hermes profile distribution. SOURCE can be a git URL ""(github.com/user/repo, https://..., git@...) or a local "- "directory containing distribution.yaml at its root."))+ "directory containing distribution.yaml at its root.")profile_install.add_argument("source", help="Distribution source (git URL or local directory)")profile_install.add_argument("--name", dest="install_name", metavar="NAME",@@ -117,13 +112,11 @@ def build_profile_parser(subparsers, *, cmd_profile: Callable) -> None:"-y", "--yes", action="store_true", help="Skip manifest preview confirmation")profile_update = profile_subparsers.add_parser(- "update",- help="Re-pull a distribution and apply updates (user data preserved)",- description=(- "Fetch the distribution from its recorded source and overwrite "+ "update", help="Re-pull a distribution and apply updates (user data preserved)",+ description="Fetch the distribution from its recorded source and overwrite ""distribution-owned files (SOUL.md, skills/, cron/, mcp.json). ""User data (memories, sessions, auth, .env) is never touched. "- "config.yaml is preserved unless --force-config is passed."))+ "config.yaml is preserved unless --force-config is passed.")profile_update.add_argument("profile_name", help="Profile to update")profile_update.add_argument("--force-config", action="store_true",diff --git a/hermes_cli/subcommands/prompt_size.py b/hermes_cli/subcommands/prompt_size.pyindex 299d27eb6d8..8cdc34025f1 100644--- a/hermes_cli/subcommands/prompt_size.py+++ b/hermes_cli/subcommands/prompt_size.py@@ -8,12 +8,10 @@ from typing import Callabledef build_prompt_size_parser(subparsers, *, cmd_prompt_size: Callable) -> None:"""Attach the ``prompt-size`` subcommand to ``subparsers``."""prompt_size_parser = subparsers.add_parser(- "prompt-size",- help="Show a byte breakdown of the system prompt + tool schemas",- description=(- "Report the fixed prompt budget for a fresh session: system "+ "prompt-size", help="Show a byte breakdown of the system prompt + tool schemas",+ description="Report the fixed prompt budget for a fresh session: system ""prompt total, skills index, memory, user profile, and tool-schema "- "JSON. Runs offline (no API call)."))+ "JSON. Runs offline (no API call).")prompt_size_parser.add_argument("--platform", default="cli",help="Platform to simulate (cli, telegram, discord, ...). Default: cli")diff --git a/hermes_cli/subcommands/secrets.py b/hermes_cli/subcommands/secrets.pyindex 18562f3617a..81cdb3f8213 100644--- a/hermes_cli/subcommands/secrets.py+++ b/hermes_cli/subcommands/secrets.py@@ -6,13 +6,11 @@ from __future__ import annotationsdef build_secrets_parser(subparsers) -> None:"""Attach the ``secrets`` subcommand to ``subparsers``."""secrets_parser = subparsers.add_parser(- "secrets",- help="Manage external secret sources (Bitwarden, 1Password)",- description=(- "Pull API keys from an external secret manager at process startup "+ "secrets", help="Manage external secret sources (Bitwarden, 1Password)",+ description="Pull API keys from an external secret manager at process startup ""instead of storing them in ~/.hermes/.env. Supports Bitwarden ""Secrets Manager and 1Password. See: "- "https://hermes-agent.nousresearch.com/docs/user-guide/secrets/"))+ "https://hermes-agent.nousresearch.com/docs/user-guide/secrets/")secrets_subparsers = secrets_parser.add_subparsers(dest="secrets_command")secrets_bw = secrets_subparsers.add_parser(diff --git a/hermes_cli/subcommands/security.py b/hermes_cli/subcommands/security.pyindex cdc1e9ce8c3..74f561e612d 100644--- a/hermes_cli/subcommands/security.py+++ b/hermes_cli/subcommands/security.py@@ -8,13 +8,11 @@ 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",- description=(- "On-demand vulnerability scan against OSV.dev. Covers the Hermes "+ "security", help="Supply-chain audit (OSV.dev) for venv, plugins, and MCP servers",+ description="On-demand vulnerability scan against OSV.dev. Covers the Hermes ""venv (installed PyPI dists), Python deps declared by plugins under ""~/.hermes/plugins/, and pinned npx/uvx MCP servers in config.yaml. "- "Does NOT scan globally-installed packages or editor/browser extensions."))+ "Does NOT scan globally-installed packages or editor/browser extensions.")security_subparsers = security_parser.add_subparsers(dest="security_command", metavar="<subcommand>")diff --git a/hermes_cli/subcommands/sessions.py b/hermes_cli/subcommands/sessions.pyindex 02cd516e188..ff6b8aeae34 100644--- a/hermes_cli/subcommands/sessions.py+++ b/hermes_cli/subcommands/sessions.py@@ -17,26 +17,22 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:sessions_list.add_argument("--source", help="Filter by source (cli, telegram, discord, etc.)")sessions_list.add_argument("--limit", type=int, default=20, help="Max sessions to show")sessions_list.add_argument(- "--workspace",- metavar="NEEDLE",+ "--workspace", metavar="NEEDLE",help="Only sessions in one workspace: a git repo root or project dir ""(matched by path substring or basename).")def _add_session_filter_args(p, default_older_help):p.add_argument("--older-than", metavar="AGE", help=default_older_help)p.add_argument(- "--newer-than",- metavar="AGE",+ "--newer-than", metavar="AGE",help="Only match sessions active within the last AGE ""(e.g. '5h', '2d') or after an ISO timestamp")p.add_argument(- "--before",- metavar="TIME",+ "--before", metavar="TIME",help="Only match sessions started before TIME ""(duration ago like '5h', or ISO timestamp like '2026-07-05 14:30')")p.add_argument(- "--after",- metavar="TIME",+ "--after", metavar="TIME",help="Only match sessions started at/after TIME ""(duration ago like '5h', or ISO timestamp)")p.add_argument("--source", help="Only match sessions from this source")@@ -84,37 +80,27 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:sessions_export = sessions_subparsers.add_parser("export", help="Export sessions to JSONL, Markdown, or QMD")sessions_export.add_argument(- "output",- nargs="?",- help=(- "Output path. JSONL: file path (use - for stdout, required). "- "md/qmd: output directory (default: <hermes home>/session-exports)"))+ "output", nargs="?",+ help="Output path. JSONL: file path (use - for stdout, required). "+ "md/qmd: output directory (default: <hermes home>/session-exports)")sessions_export.add_argument(- "--format",- choices=["jsonl", "md", "qmd", "html", "trace"],- default="jsonl",- help=(- "Export format (default: jsonl). 'trace' emits Claude Code JSONL "- "for the Hugging Face Agent Trace Viewer"))+ "--format", choices=["jsonl", "md", "qmd", "html", "trace"], default="jsonl",+ help="Export format (default: jsonl). 'trace' emits Claude Code JSONL "+ "for the Hugging Face Agent Trace Viewer")sessions_export.add_argument(- "--upload",- action="store_true",- help=(- "trace only: upload to your Hugging Face traces dataset instead "- "of writing a local file (needs HF_TOKEN)"))+ "--upload", action="store_true",+ help="trace only: upload to your Hugging Face traces dataset instead "+ "of writing a local file (needs HF_TOKEN)")sessions_export.add_argument("--public", action="store_true",help="trace --upload only: create/update a public dataset instead of private")sessions_export.add_argument(- "--no-redact",- action="store_true",+ "--no-redact", action="store_true",help=("trace only: skip the forced secret redaction; only use after manual review"))sessions_export.add_argument(- "--only",- choices=["user-prompts"],- help=(- "Export only a filtered view (user-prompts: one prompt record "- "per line for jsonl, headed sections for md)"))+ "--only", choices=["user-prompts"],+ help="Export only a filtered view (user-prompts: one prompt record "+ "per line for jsonl, headed sections for md)")sessions_export.add_argument("--session-id", help="Session ID or unique prefix to export")_add_session_filter_args(sessions_export, "Only export sessions older than AGE (duration like '5h'/'2d', "@@ -148,13 +134,11 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:"--include-pinned", action="store_true",help="Also delete pinned sessions (excluded by default — pin is a keep flag)")sessions_prune.add_argument(- "--never-active",- action="store_true",- help=(- "Instead of ended sessions, delete keyed gateway rows that were "+ "--never-active", action="store_true",+ help="Instead of ended sessions, delete keyed gateway rows that were ""opened and never used (no messages, tokens, tool calls or title) ""and are older than AGE (default 30 days). Ordinary prune can "- "never reach these — it only ever selects ended sessions"))+ "never reach these — it only ever selects ended sessions")sessions_archive = sessions_subparsers.add_parser("archive", help="Bulk-archive (soft-hide) sessions matching filters — no deletion")@@ -168,15 +152,14 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:sessions_clean_markers = sessions_subparsers.add_parser("clean-markers",help="Permanently clear stale tool-call marker content left by sessions from before #78148",- description=(- "Before the #78148 fix, a local tool-call template could persist a "+ description="Before the #78148 fix, a local tool-call template could persist a ""bare bracketed marker (e.g. \"[memory]\") as an assistant turn's ""content instead of real text. This is already repaired in memory ""on every session load, so running this is optional — it rewrites ""the affected rows once, in place, so long-lived sessions stop ""re-scanning/re-repairing the same rows on every resume. Only the ""content column is touched; tool_calls and every other column on "- "the row are left untouched."))+ "the row are left untouched.")sessions_clean_markers.add_argument("--dry-run", action="store_true", default=False,help="Report the affected row count without writing")@@ -187,15 +170,14 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:sessions_optimize_storage = sessions_subparsers.add_parser("optimize-storage",help="Migrate the search index to the compact v23 layout (reclaims disk on large DBs)",- description=(- "Rebuild the full-text search index in the compact v23 "+ description="Rebuild the full-text search index in the compact v23 ""external-content layout. On large databases this reclaims a ""large fraction of state.db (the old layout stored duplicate ""copies of every message and indexed tool output). Runs ""foreground with a progress bar, throttles so a running gateway ""stays responsive, and VACUUMs at the end. Safe to interrupt and ""re-run — it resumes where it left off. No conversation data is "- "changed; only the search index is rebuilt."))+ "changed; only the search index is rebuilt.")sessions_optimize_storage.add_argument("--no-vacuum", action="store_true", default=False,help="Skip the final VACUUM (index is rebuilt but freed pages aren't returned to the OS until a later VACUUM)",@@ -205,13 +187,11 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:help="Skip the disk-space confirmation prompt")sessions_repair = sessions_subparsers.add_parser(- "repair",- help="Repair a malformed state.db schema so hidden sessions reappear",- description=(- "Recover a state.db whose schema is malformed (e.g. 'table "+ "repair", help="Repair a malformed state.db schema so hidden sessions reappear",+ description="Recover a state.db whose schema is malformed (e.g. 'table ""messages_fts already exists'), which makes Desktop/Dashboard show ""no sessions. A backup is made first; sessions and messages are "- "preserved and the FTS search index is rebuilt if needed."))+ "preserved and the FTS search index is rebuilt if needed.")sessions_repair.add_argument("--check-only", action="store_true",help="Only report whether the database opens cleanly; do not modify it")@@ -220,37 +200,30 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:help="Skip the timestamped backup copy (not recommended)")sessions_repair_routing = sessions_subparsers.add_parser(- "repair-routing",- help="Re-stamp gateway sessions that lost their routing identity",- description=(- "Find gateway conversations stranded in session rows whose "+ "repair-routing", help="Re-stamp gateway sessions that lost their routing identity",+ description="Find gateway conversations stranded in session rows whose ""routing identity (session_key/chat_id/origin) was never ""written — the damage a corrupt state.db write path leaves ""behind (#82616). Such a row is invisible to restart recovery, ""so the chat resumes an older session instead. Re-stamps each ""orphan from the keyed predecessor it continues, and only when ""that predecessor is unambiguous. Reports without touching the "- "database unless --apply is given."))+ "database unless --apply is given.")sessions_repair_routing.add_argument("--apply", action="store_true", help="Perform the adoptions (default: report only)")sessions_repair_routing.add_argument(- "--max-gap-seconds",- type=float,- default=None,- help=(- "Window between a keyed predecessor's last activity and an "+ "--max-gap-seconds", type=float, default=None,+ help="Window between a keyed predecessor's last activity and an ""orphan's start for them to count as the same conversation "- "(default: 900)"))+ "(default: 900)")sessions_recover = sessions_subparsers.add_parser(- "recover",- help="Rebuild canonical session data into a separate clean database",- description=(- "Offline, non-destructive recovery for a damaged state.db. The "+ "recover", help="Rebuild canonical session data into a separate clean database",+ description="Offline, non-destructive recovery for a damaged state.db. The ""source database and its WAL/SHM/rollback-journal sidecars are ""copied before SQLite opens anything. Canonical rows are rebuilt ""into a new output database; derived search indexes are recreated "- "and the active database is never replaced automatically."))+ "and the active database is never replaced automatically.")sessions_recover.add_argument("--source", type=Path, required=True,help="Source state.db or preserved backup to inspect/recover")@@ -266,11 +239,9 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:"--chunk-size", type=int, default=1000,help="Rows committed per recovery batch (default: 1000)")sessions_recover.add_argument(- "--allow-partial",- action="store_true",- help=(- "Best-effort salvage across damaged row ranges; the output remains "- "separate and every skipped range is recorded"))+ "--allow-partial", action="store_true",+ help="Best-effort salvage across damaged row ranges; the output remains "+ "separate and every skipped range is recorded")sessions_recover.add_argument("--report", type=Path, help="JSON report path (defaults to <output>.recovery.json)")@@ -282,13 +253,11 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:sessions_rename.add_argument("title", nargs="+", help="New title for the session")sessions_pin = sessions_subparsers.add_parser(- "pin",- help="Pin session(s) — durable keep flag, exempt from auto-archive",- description=(- "Set the durable 'keep' flag on one or more sessions. Pinned "+ "pin", help="Pin session(s) — durable keep flag, exempt from auto-archive",+ description="Set the durable 'keep' flag on one or more sessions. Pinned ""sessions are exempt from the sessions.auto_archive stale sweep ""and always appear in listings. The same flag drives the Desktop "- "sidebar's Pinned section — pin from either surface, both see it."))+ "sidebar's Pinned section — pin from either surface, both see it.")sessions_pin.add_argument("session_ids", nargs="+", help="Session ID(s) or unique prefix(es) to pin")@@ -303,14 +272,12 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:help="Emit machine-readable JSON (for backup/restore scripting)")sessions_retitle = sessions_subparsers.add_parser(- "retitle-skills",- help="Re-title sessions whose auto-title came from a /skill's own text",- description=(- "Sessions opened with a /skill were auto-titled from the expanded "+ "retitle-skills", help="Re-title sessions whose auto-title came from a /skill's own text",+ description="Sessions opened with a /skill were auto-titled from the expanded ""message, which embeds the whole skill body — so the title ""describes the SKILL, not the request. This regenerates those ""titles from what the user actually typed. Lists what it would "- "change unless --apply is passed."))+ "change unless --apply is passed.")sessions_retitle.add_argument("--apply", action="store_true", help="Write the new titles (default: dry run)")sessions_retitle.add_argument(@@ -323,13 +290,11 @@ def build_sessions_parser(subparsers, *, cmd_sessions: Callable) -> None:"--limit", type=int, default=500, help="Max sessions to load (default: 500)")sessions_import = sessions_subparsers.add_parser(- "import",- help="Import a Claude Code or Codex CLI session into Hermes",- description=(- "Pull a conversation started in Claude Code (~/.claude/projects) "+ "import", help="Import a Claude Code or Codex CLI session into Hermes",+ description="Pull a conversation started in Claude Code (~/.claude/projects) ""or Codex CLI (~/.codex/sessions) into the Hermes session store ""so it can be resumed with 'hermes --resume <id>'. The foreign "- "files are only read, never modified."))+ "files are only read, never modified.")sessions_import.add_argument("--from", dest="from_source", choices=["claude", "codex"],help="Which tool to import from (default: pick across both)")diff --git a/hermes_cli/subcommands/setup.py b/hermes_cli/subcommands/setup.pyindex f0ba2e1f40c..1145f13e09b 100644--- a/hermes_cli/subcommands/setup.py+++ b/hermes_cli/subcommands/setup.py@@ -8,36 +8,30 @@ from typing import Callabledef build_setup_parser(subparsers, *, cmd_setup: Callable) -> None:"""Attach the ``setup`` subcommand to ``subparsers``."""setup_parser = subparsers.add_parser(- "setup",- help="Interactive setup wizard",+ "setup", help="Interactive setup wizard",description="Configure Hermes Agent with an interactive wizard. ""Run a specific section: ""hermes setup model|tts|terminal|gateway|tools|telemetry|agent")setup_parser.add_argument(- "section",- nargs="?",+ "section", nargs="?",choices=["model", "tts", "terminal", "gateway", "tools", "telemetry", "agent"],- default=None,- help="Run a specific setup section instead of the full wizard")+ default=None, help="Run a specific setup section instead of the full wizard")setup_parser.add_argument("--non-interactive", action="store_true",help="Non-interactive mode (use defaults/env vars)")setup_parser.add_argument("--reset", action="store_true", help="Reset configuration to defaults")setup_parser.add_argument(- "--reconfigure",- action="store_true",+ "--reconfigure", action="store_true",help="(Default on existing installs.) Re-run the full wizard, ""showing current values as defaults. Kept for backwards ""compatibility — a bare 'hermes setup' now does this.")setup_parser.add_argument(- "--quick",- action="store_true",+ "--quick", action="store_true",help="On existing installs: only prompt for items that are missing ""or unset, instead of running the full reconfigure wizard.")setup_parser.add_argument(- "--portal",- action="store_true",+ "--portal", action="store_true",help="One-shot Nous Portal setup: log in via OAuth, pick a Nous ""model, set Nous as the inference provider, and opt into the Tool ""Gateway. Skips the rest of the wizard.")diff --git a/hermes_cli/subcommands/skills.py b/hermes_cli/subcommands/skills.pyindex cc8821cba3e..90bcb41945d 100644--- a/hermes_cli/subcommands/skills.py+++ b/hermes_cli/subcommands/skills.py@@ -94,8 +94,7 @@ def build_skills_parser(subparsers, *, cmd_skills: Callable) -> None:skills_install.add_argument("--force", action="store_true", help="Install despite blocked scan verdict")skills_install.add_argument(- "--yes",- "-y", action="store_true", help="Skip confirmation prompt (needed in TUI mode)")+ "--yes", "-y", action="store_true", help="Skip confirmation prompt (needed in TUI mode)")skills_inspect = skills_subparsers.add_parser("inspect", help="Preview a skill without installing")@@ -104,8 +103,7 @@ def build_skills_parser(subparsers, *, cmd_skills: Callable) -> None:skills_list = skills_subparsers.add_parser("list", help="List installed skills")skills_list.add_argument("--source", default="all", choices=["all", "hub", "builtin", "local"])skills_list.add_argument(- "--enabled-only",- action="store_true",+ "--enabled-only", action="store_true",help="Hide disabled skills. Use with -p <profile> to see exactly ""which skills will load for that profile.")@@ -130,85 +128,70 @@ def build_skills_parser(subparsers, *, cmd_skills: Callable) -> None:"uninstall", help="Remove a hub-installed skill")skills_uninstall.add_argument("name", help="Skill name to remove")skills_uninstall.add_argument(- "--yes",- "-y", action="store_true", help="Skip confirmation prompt")+ "--yes", "-y", action="store_true", help="Skip confirmation prompt")skills_reset = skills_subparsers.add_parser("reset",help="Reset a bundled skill — clears 'user-modified' tracking so updates work again",- description=(- "Clear a bundled skill's entry from the sync manifest (~/.hermes/skills/.bundled_manifest) "+ description="Clear a bundled skill's entry from the sync manifest (~/.hermes/skills/.bundled_manifest) ""so future 'hermes update' runs stop marking it as user-modified. Pass --restore to also "- "replace the current copy with the bundled version."))+ "replace the current copy with the bundled version.")skills_reset.add_argument("name", help="Skill name to reset (e.g. google-workspace)")skills_reset.add_argument("--restore", action="store_true",help="Also delete the current copy and re-copy the bundled version")skills_reset.add_argument(- "--yes",- "-y", action="store_true", help="Skip confirmation prompt when using --restore")+ "--yes", "-y", action="store_true", help="Skip confirmation prompt when using --restore")skills_list_modified = skills_subparsers.add_parser(- "list-modified",- help="List bundled skills you've edited (which `hermes update` keeps)",- description=(- "Show the bundled skills whose local copy differs from the version last "+ "list-modified", help="List bundled skills you've edited (which `hermes update` keeps)",+ description="Show the bundled skills whose local copy differs from the version last ""synced, i.e. the ones `hermes update` reports as user-modified and skips. ""Use `hermes skills diff <name>` to see changes and `hermes skills reset "- "<name>` to resume updates."))+ "<name>` to resume updates.")skills_list_modified.add_argument("--json", action="store_true", help="Output the list as JSON")skills_diff = skills_subparsers.add_parser(- "diff",- help="Show how your copy of a bundled skill differs from the stock version",- description=(- "Print a unified diff between your local copy of a bundled skill and the "+ "diff", help="Show how your copy of a bundled skill differs from the stock version",+ description="Print a unified diff between your local copy of a bundled skill and the ""current bundled (stock) version, so you can confirm what changed before "- "running `hermes skills reset`."))+ "running `hermes skills reset`.")skills_diff.add_argument("name", help="Skill name to diff (e.g. google-workspace)")skills_opt_out = skills_subparsers.add_parser(- "opt-out",- help="Stop bundled skills from being seeded into this profile",- description=(- "Write the .no-bundled-skills marker so the installer, "+ "opt-out", help="Stop bundled skills from being seeded into this profile",+ description="Write the .no-bundled-skills marker so the installer, ""`hermes update`, and any direct sync stop seeding bundled skills ""into the active profile. By default nothing already on disk is ""touched. Pass --remove to ALSO delete bundled skills that are "- "unmodified (user-edited and hub/local skills are never removed)."))+ "unmodified (user-edited and hub/local skills are never removed).")skills_opt_out.add_argument("--remove", action="store_true",help="Also delete already-present unmodified bundled skills")skills_opt_out.add_argument(- "--yes",- "-y", action="store_true", help="Skip confirmation prompt when using --remove")+ "--yes", "-y", action="store_true", help="Skip confirmation prompt when using --remove")skills_opt_in = skills_subparsers.add_parser(- "opt-in",- help="Re-enable bundled-skill seeding (undo opt-out)",- description=(- "Remove the .no-bundled-skills marker so bundled skills are seeded "- "again on the next `hermes update`. Pass --sync to re-seed now."))+ "opt-in", help="Re-enable bundled-skill seeding (undo opt-out)",+ description="Remove the .no-bundled-skills marker so bundled skills are seeded "+ "again on the next `hermes update`. Pass --sync to re-seed now.")skills_opt_in.add_argument("--sync", action="store_true",help="Re-seed bundled skills immediately instead of waiting for update")skills_repair_official = skills_subparsers.add_parser(- "repair-official",- help="Backfill or restore official optional skills from repo source",- description=(- "Repair official optional skill provenance. By default, only backfills "+ "repair-official", help="Backfill or restore official optional skills from repo source",+ description="Repair official optional skill provenance. By default, only backfills ""hub metadata for exact matches. Pass --restore to replace missing or ""mutated active copies from optional-skills/, moving existing copies to "- "a restore backup first. Use name 'all' to repair every optional skill."))+ "a restore backup first. Use name 'all' to repair every optional skill.")skills_repair_official.add_argument("name", help="Official optional skill folder/frontmatter name, or 'all'")skills_repair_official.add_argument("--restore", action="store_true",help="Restore from official optional source, backing up existing matching copies")skills_repair_official.add_argument(- "--yes",- "-y", action="store_true", help="Skip confirmation prompt when using --restore")+ "--yes", "-y", action="store_true", help="Skip confirmation prompt when using --restore")skills_publish = skills_subparsers.add_parser("publish", help="Publish a skill to a registry")skills_publish.add_argument("skill_path", help="Path to skill directory")diff --git a/hermes_cli/subcommands/slack.py b/hermes_cli/subcommands/slack.pyindex 8b76142570a..55275b4bd0a 100644--- a/hermes_cli/subcommands/slack.py+++ b/hermes_cli/subcommands/slack.py@@ -15,18 +15,13 @@ def build_slack_parser(subparsers, *, cmd_slack: Callable) -> None:"manifest",help="Print or write a Slack app manifest with every gateway command ""registered as a native slash (/btw, /stop, /model, ...)",- description=(- "Generate a Slack app manifest that registers every gateway "+ description="Generate a Slack app manifest that registers every gateway ""command in COMMAND_REGISTRY as a first-class Slack slash ""command (matching Discord and Telegram parity). Paste the ""output into Slack app config → Features → App Manifest → "- "Edit, then Save. Reinstall the app if Slack prompts for it."))+ "Edit, then Save. Reinstall the app if Slack prompts for it.")slack_manifest.add_argument(- "--write",- nargs="?",- const=True,- default=None,- metavar="PATH",+ "--write", nargs="?", const=True, default=None, metavar="PATH",help="Write manifest to a file instead of stdout. With no PATH ""writes to $HERMES_HOME/slack-manifest.json.")slack_manifest.add_argument("--name", default=None, help='Bot display name (default: "Hermes")')@@ -37,26 +32,21 @@ def build_slack_parser(subparsers, *, cmd_slack: Callable) -> None:"--long-description", default=None, metavar="TEXT",help="Set Slack's long app description (175-4,000 characters).")slack_long_description.add_argument(- "--long-description-file",- default=None,- metavar="PATH",+ "--long-description-file", default=None, metavar="PATH",help=("Read Slack's long app description from a UTF-8 text file (175-4,000 characters)."))slack_manifest.add_argument(- "--slashes-only",- action="store_true",+ "--slashes-only", action="store_true",help="Emit only the features.slash_commands array (for merging ""into an existing manifest manually).")slack_messaging = slack_manifest.add_mutually_exclusive_group()slack_messaging.add_argument(- "--no-assistant",- action="store_true",+ "--no-assistant", action="store_true",help="Omit Slack AI Assistant mode (assistant_view, assistant:write ""scope, assistant_thread_* events). DMs then render as a flat chat ""where bare slash commands (/help, /new) work inline instead of ""Slack's Assistant thread pane.")slack_messaging.add_argument(- "--agent-view",- action="store_true",+ "--agent-view", action="store_true",help="Emit Slack's Agent messaging experience (agent_view, ""app_home_opened + message.im) instead of the legacy assistant_view ""experience. This changes Slack's app messaging surface and cannot "diff --git a/hermes_cli/subcommands/sync.py b/hermes_cli/subcommands/sync.pyindex 6993ab06474..08de1e1c8a1 100644--- a/hermes_cli/subcommands/sync.py+++ b/hermes_cli/subcommands/sync.py@@ -31,19 +31,16 @@ from typing import Callabledef build_sync_parser(subparsers, *, cmd_sync: Callable) -> None:"""Attach the ``sync`` subcommand (and its sub-actions) to ``subparsers``."""sync_parser = subparsers.add_parser(- "sync",- help="Skill Sync — sync your skills across devices and with your team",- description=(- "Skill Sync keeps your skills with you. Personal sync moves your "+ "sync", help="Skill Sync — sync your skills across devices and with your team",+ description="Skill Sync keeps your skills with you. Personal sync moves your ""own skills between your devices; if you belong to an ""organisation, you also get its shared skills and can propose "- "your own back to the team."),- epilog=(- "Examples:\n"+ "your own back to the team.",+ epilog="Examples:\n"" hermes sync status what is synced, and from where\n"" hermes sync enable my-skill include a skill in your sync\n"" hermes sync now pull, then push\n"- " hermes sync propose my-skill share a skill with your team\n"),+ " hermes sync propose my-skill share a skill with your team\n",formatter_class=argparse.RawDescriptionHelpFormatter)sync_sub = sync_parser.add_subparsers(dest="sync_command")@@ -61,9 +58,7 @@ def build_sync_parser(subparsers, *, cmd_sync: Callable) -> None:device = sync_sub.add_parser("device", help="Show or set this device's label (shown in the sync console)")device.add_argument(- "--name",- dest="device_name",- default=None,+ "--name", dest="device_name", default=None,help="Set a human-friendly label for this device (e.g. \"Ben's Laptop\"). ""Omit to print the current label.")@@ -71,16 +66,13 @@ def build_sync_parser(subparsers, *, cmd_sync: Callable) -> None:# reviews; an admin's merges straight into the shared set. Accounts that# aren't in a shared organisation are told so plainly.propose = sync_sub.add_parser(- "propose",- help="Share a skill with your organisation",- description=(- "Submit one of your skills to your organisation's shared set. If "+ "propose", help="Share a skill with your organisation",+ description="Submit one of your skills to your organisation's shared set. If ""you are an admin it is added directly; otherwise it becomes a ""proposal for an admin to review. Accounts that aren't part of a "- "shared organisation don't have this workflow."))+ "shared organisation don't have this workflow.")propose.add_argument("name", help="Skill name to share")propose.add_argument(- "-m",- "--message", default=None, help="Optional message describing the change")+ "-m", "--message", default=None, help="Optional message describing the change")sync_parser.set_defaults(func=cmd_sync)diff --git a/hermes_cli/subcommands/tools.py b/hermes_cli/subcommands/tools.pyindex 90b072bae17..a0f53c5026c 100644--- a/hermes_cli/subcommands/tools.py+++ b/hermes_cli/subcommands/tools.py@@ -8,13 +8,11 @@ from typing import Callabledef build_tools_parser(subparsers, *, cmd_tools: Callable) -> None:"""Attach the ``tools`` subcommand to ``subparsers``."""tools_parser = subparsers.add_parser(- "tools",- help="Configure which tools are enabled per platform",- description=(- "Enable, disable, or list tools for CLI, Telegram, Discord, etc.\n\n"+ "tools", help="Configure which tools are enabled per platform",+ description="Enable, disable, or list tools for CLI, Telegram, Discord, etc.\n\n""Built-in toolsets use plain names (e.g. web, memory).\n""MCP tools use server:tool notation (e.g. github:create_issue).\n\n"- "Run 'hermes tools' with no subcommand for the interactive configuration UI."))+ "Run 'hermes tools' with no subcommand for the interactive configuration UI.")tools_parser.add_argument("--summary", action="store_true",help="Print a summary of enabled tools per platform and exit")@@ -42,16 +40,14 @@ def build_tools_parser(subparsers, *, cmd_tools: Callable) -> None:# hermes tools post-setup <key>tools_postsetup_p = tools_sub.add_parser(- "post-setup",- help="Run a provider's post-setup install hook (npm/pip/binary)",- description=(- "Run the install/bootstrap hook a tool backend declares — the\n"+ "post-setup", help="Run a provider's post-setup install hook (npm/pip/binary)",+ description="Run the install/bootstrap hook a tool backend declares — the\n""same step `hermes tools` runs after you pick a provider that\n""needs extra dependencies (browser Chromium, Camofox, cua-driver,\n""KittenTTS/Piper, ddgs, Spotify, Langfuse, xAI). Stable,\n""non-interactive target the dashboard spawns to drive backend\n""setup. Keys: agent_browser, camofox, cua_driver, kittentts,\n"- "piper, ddgs, spotify, langfuse, xai_grok."))+ "piper, ddgs, spotify, langfuse, xai_grok.")tools_postsetup_p.add_argument("post_setup_key", metavar="KEY",help="Post-setup hook key (e.g. agent_browser, camofox, kittentts)")diff --git a/hermes_cli/subcommands/uninstall.py b/hermes_cli/subcommands/uninstall.pyindex eb520aea11c..540e2ac475a 100644--- a/hermes_cli/subcommands/uninstall.py+++ b/hermes_cli/subcommands/uninstall.py@@ -17,8 +17,7 @@ def build_uninstall_parser(subparsers, *, cmd_uninstall: Callable) -> None:"--gui", action="store_true",help="Uninstall only the desktop Chat GUI, leaving the agent intact")uninstall_parser.add_argument(- "--gui-summary",- action="store_true",+ "--gui-summary", action="store_true",help="Print a JSON summary of installed GUI/agent artifacts and exit ""(used by the desktop app to gate uninstall options)")uninstall_parser.add_argument(diff --git a/hermes_cli/subcommands/update.py b/hermes_cli/subcommands/update.pyindex 8e2e68516bb..ca47ef40ab6 100644--- a/hermes_cli/subcommands/update.py+++ b/hermes_cli/subcommands/update.py@@ -18,14 +18,11 @@ def build_update_parser(subparsers, *, cmd_update: Callable) -> None:"--check", action="store_true", default=False,help="Check whether an update is available without installing anything")update_parser.add_argument(- "--plan",- action="store_true",- default=False,- help=(- "Show the update plan and exit without changing anything: install "+ "--plan", action="store_true", default=False,+ help="Show the update plan and exit without changing anything: install ""kind (git/docker/nix), every running Hermes service across all ""profiles with its supervisor and running code version, and how "- "each will be restarted. Read-only; safe on a live fleet."))+ "each will be restarted. Read-only; safe on a live fleet.")update_parser.add_argument("--no-backup", action="store_true", default=False,help="Skip ALL pre-update backups for this run (both the quick state snapshot and the full zip; overrides updates.pre_update_backup)",@@ -35,42 +32,32 @@ def build_update_parser(subparsers, *, cmd_update: Callable) -> None:help="Force a FULL pre-update backup (quick state snapshot + HERMES_HOME zip) for this run, regardless of updates.pre_update_backup",)update_parser.add_argument(- "--yes",- "-y", action="store_true", default=False,+ "--yes", "-y", action="store_true", default=False,help="Run without blocking on prompts: accepts the config-migration and stash-restore prompts, skips the fork-upstream prompt without adding a remote. API-key entry is skipped; run 'hermes config migrate' separately for those.",)update_parser.add_argument(- "--keep-stash",- action="store_true",- default=False,- help=(- "Do NOT re-apply local changes after the update. Uncommitted "+ "--keep-stash", action="store_true", default=False,+ help="Do NOT re-apply local changes after the update. Uncommitted ""changes are still stashed so the update can proceed, but they ""stay parked in git stash instead of being restored onto the ""updated code. Used by the desktop updater so local source edits "- "never silently ride along across updates."))+ "never silently ride along across updates.")update_parser.add_argument(- "--branch",- default=None,- metavar="NAME",- help=(- "Update against this branch instead of the default (main). "+ "--branch", default=None, metavar="NAME",+ help="Update against this branch instead of the default (main). ""If the local checkout is on a different branch, hermes will ""switch to the requested branch first (auto-stashing any "- "uncommitted changes)."))+ "uncommitted changes).")update_parser.add_argument(- "--switch-branch",- action="store_true",- default=False,- help=(- "With updates.parked_branch_strategy: update_in_place configured, "+ "--switch-branch", action="store_true", default=False,+ help="With updates.parked_branch_strategy: update_in_place configured, ""override it for this run: switch to the update target and update ""THERE instead of merging the target into the checked-out branch. ""The branch is left exactly as it was — no merge commit is written ""into its history. Use on long-lived feature branches where an ""update-driven merge commit would pollute the branch. No effect ""under the default strategy (switch), which already switches. "- "Still refuses to touch a dirty tree."))+ "Still refuses to touch a dirty tree.")update_parser.add_argument("--force", action="store_true", default=False,help="Windows: proceed with the update even when another hermes.exe is detected. The concurrent process will likely cause WinError 32 warnings. Does NOT bypass the venv-process guard (see --force-venv).",diff --git a/hermes_cli/subcommands/verify.py b/hermes_cli/subcommands/verify.pyindex 924c015510a..ae4adb8cff5 100644--- a/hermes_cli/subcommands/verify.py+++ b/hermes_cli/subcommands/verify.py@@ -17,13 +17,11 @@ DEFAULT_READY_TIMEOUT = 60.0def build_verify_parser(subparsers, *, cmd_verify: Callable) -> None:"""Attach the ``verify`` subcommand to ``subparsers``."""verify_parser = subparsers.add_parser(- "verify",- help="Detect a project's run recipe and smoke-test it",- description=(- "Detect how the current project is built, tested, and started "+ "verify", help="Detect a project's run recipe and smoke-test it",+ description="Detect how the current project is built, tested, and started ""(or load the saved manifest at .hermes/environment.json), then ""run a verification pass: bootstrap -> build -> test -> start in "- "background -> poll readiness -> teardown."))+ "background -> poll readiness -> teardown.")verify_parser.add_argument("path", nargs="?", default=None, help="Project root to verify (default: current directory)")verify_parser.add_argument(diff --git a/hermes_cli/subcommands/webhook.py b/hermes_cli/subcommands/webhook.pyindex e8b8f98d183..b50471cc86c 100644--- a/hermes_cli/subcommands/webhook.py+++ b/hermes_cli/subcommands/webhook.py@@ -27,14 +27,12 @@ def build_webhook_parser(subparsers, *, cmd_webhook: Callable) -> None:"--deliver-chat-id", default="", help="Target chat ID for cross-platform delivery")wh_sub.add_argument("--secret", default="", help="HMAC secret (auto-generated if omitted)")wh_sub.add_argument(- "--deliver-only",- action="store_true",+ "--deliver-only", action="store_true",help="Skip the agent — deliver the rendered prompt directly as the ""message. Zero LLM cost. Requires --deliver to be a real target ""(not 'log').")wh_sub.add_argument(- "--script",- default="",+ "--script", default="",help="Filter/transform script under ~/.hermes/scripts/. The route ""payload is passed as JSON on stdin; empty stdout, [SILENT], or a ""nonzero exit code ignores the webhook.")diff --git a/hermes_cli/subcommands/whatsapp.py b/hermes_cli/subcommands/whatsapp.pyindex 641a454a90d..f07b083e6dc 100644--- a/hermes_cli/subcommands/whatsapp.py+++ b/hermes_cli/subcommands/whatsapp.py@@ -16,11 +16,9 @@ def build_whatsapp_parser(subparsers, *, cmd_whatsapp: Callable) -> None:def build_whatsapp_cloud_parser(subparsers, *, cmd_whatsapp_cloud: Callable) -> None:"""Attach the ``whatsapp-cloud`` subcommand (official Meta Cloud API)."""whatsapp_cloud_parser = subparsers.add_parser(- "whatsapp-cloud",- help="Set up WhatsApp Business Cloud API integration",- description=(- "Configure the official Meta WhatsApp Business Cloud API "+ "whatsapp-cloud", help="Set up WhatsApp Business Cloud API integration",+ description="Configure the official Meta WhatsApp Business Cloud API ""adapter (Business account required, public webhook URL ""required). Distinct from `hermes whatsapp` which sets up "- "the Baileys bridge for personal accounts."))+ "the Baileys bridge for personal accounts.")whatsapp_cloud_parser.set_defaults(func=cmd_whatsapp_cloud)diff --git a/hermes_cli/subcommands/worktree.py b/hermes_cli/subcommands/worktree.pyindex 43449582a40..f373430d00a 100644--- a/hermes_cli/subcommands/worktree.py+++ b/hermes_cli/subcommands/worktree.py@@ -6,14 +6,12 @@ from __future__ import annotationsdef build_worktree_parser(subparsers) -> None:"""Attach the ``worktree`` subcommand to ``subparsers``."""worktree_parser = subparsers.add_parser(- "worktree",- help="Audit and reclaim accumulated git worktrees and merged branches",- description=(- "Attended reclaim for the .worktrees/ directory hermes -w sessions "+ "worktree", help="Audit and reclaim accumulated git worktrees and merged branches",+ description="Attended reclaim for the .worktrees/ directory hermes -w sessions ""accumulate. Never deletes uncommitted tracked changes, unique ""unpushed commits, or in-use trees; untracked-only scratch is ""archived to ~/.hermes/archive/worktree-prune/ before removal. See: "- "https://hermes-agent.nousresearch.com/docs/user-guide/cli#worktree-cleanup"))+ "https://hermes-agent.nousresearch.com/docs/user-guide/cli#worktree-cleanup")worktree_subparsers = worktree_parser.add_subparsers(dest="worktree_action")worktree_list = worktree_subparsers.add_parser("list", aliases=["ls", "audit"],