Skip to content

The agent that grows with you

feat(cli): make the summary the default `hermes status`, --full for every section

teknium1a3149156ecc4
diff --git a/hermes_cli/console_engine.py b/hermes_cli/console_engine.py
index 21ee76a1beb..98ae62c728b 100644
--- a/hermes_cli/console_engine.py
+++ b/hermes_cli/console_engine.py
@@ -556,7 +556,7 @@ _version = _simple_command(
def _status(_engine: HermesConsoleEngine, args: list[str]) -> str:
_expect_no_args(args, "status")
from hermes_cli.status import show_status
- output = _capture_output(lambda: show_status(SimpleNamespace(all=False, deep=False)))
+ output = _capture_output(lambda: show_status(SimpleNamespace(full=True, deep=False)))
return _strip_console_status_footer(output)
diff --git a/hermes_cli/status.py b/hermes_cli/status.py
index b3b54565f80..060730b2773 100644
--- a/hermes_cli/status.py
+++ b/hermes_cli/status.py
@@ -17,9 +17,8 @@ from hermes_cli.config_defaults import DEFAULT_SANDBOX_IMAGE, DEFAULT_VERCEL_IMA
from hermes_cli.models import provider_label
from hermes_cli.runtime_provider import resolve_requested_provider
from hermes_cli.vercel_auth import describe_vercel_auth
-from hermes_cli.status_auth import ( # section renderers + the --short provider list
- _connected_provider_labels, _render_api_keys, _render_apikey_providers,
- _render_auth_providers, _render_nous_gateway)
+from hermes_cli.status_auth import ( # renderers wired into _SECTIONS below
+ _render_api_keys, _render_apikey_providers, _render_auth_providers, _render_nous_gateway)
from hermes_constants import OPENROUTER_MODELS_URL
@@ -209,16 +208,11 @@ def _render_platforms(ctx):
home_channel = os.getenv(home_var, "") if home_var else ""
_row(name, has_token, _configured(has_token) + (f" (home: {home_channel})" if home_channel else ""))
- try: # Plugin-registered platforms
+ try: # Plugin platforms: the gateway's own verdict, never the check_fn "SDK importable" probe
from gateway.platform_registry import platform_registry
+ connected = {p.value for p in _connected_platforms()}
for entry in platform_registry.plugin_entries():
- # Per-entry guard: one raising probe must not abort the listing of every remaining
- # plugin platform (matches the other check_fn sites).
- try:
- configured = bool(entry.check_fn())
- except Exception:
- configured = False
- _row(entry.label, configured, f"{_configured(configured)} (plugin)")
+ _row(entry.label, entry.name in connected, f"{_configured(entry.name in connected)} (plugin)")
except Exception:
pass
@@ -361,75 +355,63 @@ def _render_footer(ctx):
print()
-def _short_gateway_value():
- """``(running, text)`` for the short gateway row; ``(None, "unknown")`` when unavailable."""
- try:
- from hermes_cli.gateway import (
- get_gateway_runtime_snapshot, named_profile_served_by_running_multiplexer)
- snapshot = get_gateway_runtime_snapshot()
- # A satellite profile has no gateway.pid of its own; the default multiplexer is
- # its live process (same rule as the full Gateway Service section).
- if not snapshot.running and named_profile_served_by_running_multiplexer():
- return True, "running (via the default-profile multiplexer)"
- return (True, "running") if snapshot.running else (False, "stopped")
- except Exception:
- return None, "unknown"
+def _connected_platforms() -> list:
+ """Platforms the gateway would start (``GatewayConfig.get_connected_platforms``)."""
+ from gateway.config import load_gateway_config
+ return load_gateway_config().get_connected_platforms()
-def _short_platform_configured(entry) -> bool:
- """Plugin platform configured? Prefer the ``is_connected`` hook over the deps probe.
+def _connected_platform_labels() -> list:
+ from gateway.platform_registry import platform_registry
+ return [getattr(platform_registry.get(p.value), "label", p.value) for p in _connected_platforms()]
- ``check_fn`` is a passive dependency probe that reads True for every bundled plugin,
- so it must never override a configured-credentials verdict (same rule as ``hermes
- setup`` and the #102183 fix).
- """
- try:
- if entry.is_connected is not None:
- from gateway.config import PlatformConfig
- return bool(entry.is_connected(PlatformConfig(enabled=True)))
- return bool(entry.check_fn())
- except Exception:
- return False
+
+def _authenticated_provider_names() -> list:
+ """The providers the /model picker offers: cached catalogs only, no endpoint probes."""
+ from hermes_cli.inventory import load_picker_context
+ from hermes_cli.model_switch import list_authenticated_providers
+ pick = load_picker_context()
+ return [row["name"] for row in list_authenticated_providers(
+ user_providers=pick.user_providers, custom_providers=pick.custom_providers,
+ excluded_providers=pick.excluded_providers, max_models=0, non_blocking_catalogs=True,
+ probe_custom_providers=False)]
+
+
+def _gateway_state() -> tuple:
+ from hermes_cli.gateway import get_gateway_runtime_snapshot, named_profile_served_by_running_multiplexer
+ if get_gateway_runtime_snapshot().running:
+ return True, "running"
+ if named_profile_served_by_running_multiplexer(): # satellite profile: no gateway.pid of its own
+ return True, "running (via the default-profile multiplexer)"
+ return False, "stopped"
-def _short_platform_names() -> list:
- """Configured messaging platform names: env table plus plugin-registry entries."""
- names = []
- for name, (token_var, _home_var) in _PLATFORMS.items():
- if os.getenv(token_var, ""):
- names.append(name)
+def _summary_row(label: str, probe, empty: str) -> None:
+ """One summary row; a failing probe degrades only its own row."""
try:
- from gateway.platform_registry import platform_registry
- for entry in platform_registry.plugin_entries():
- if _short_platform_configured(entry):
- names.append(entry.label)
+ values = list(dict.fromkeys(probe()))
except Exception:
- pass
- return names
+ values = None
+ _kv(label, "unknown" if values is None else ", ".join(values) or empty)
-def _render_short(ctx):
- """Compact ``hermes status --short``: model, providers, gateway, platforms, jobs."""
- _banner(("☤ Hermes Agent status (short)",), Colors.BOLD)
- paused = _estop_status_line()
- if paused:
- _banner((paused,), Colors.YELLOW, Colors.BOLD)
+def _render_summary(ctx):
+ """Default ``hermes status``: one line per component; ``--full`` prints every section."""
+ _render_header(ctx)
+ print()
_load_ctx_config(ctx)
_kv("Model:", _configured_model_label(ctx.config))
_kv("Provider:", _effective_provider_label())
+ _summary_row("Providers:", _authenticated_provider_names, "none connected")
try:
- labels = _connected_provider_labels(ctx)
+ running, text = _gateway_state()
+ _kv_flag("Gateway:", running, text, text)
except Exception:
- labels = []
- _kv("Providers:", ", ".join(dict.fromkeys(labels)) if labels else "none connected")
- running, gateway_text = _short_gateway_value()
- if running is None:
- _kv("Gateway:", gateway_text)
- else:
- _kv_flag("Gateway:", running, gateway_text, "stopped")
- names = _short_platform_names()
- _kv("Platforms:", ", ".join(dict.fromkeys(names)) if names else "none configured")
+ _kv("Gateway:", "unknown")
+ _summary_row("Platforms:", _connected_platform_labels, "none configured")
_kv("Jobs:", _cron_summary())
+ _banner((" Run 'hermes status --full' for every section",), Colors.DIM)
+ print()
# Print order of `hermes status`; each renderer takes the shared _StatusContext.
@@ -440,13 +422,10 @@ _SECTIONS = (
def show_status(args):
- """Show status of all Hermes Agent components."""
+ """One-screen summary by default; ``--full``/``--deep`` print every section."""
# Shared by section renderers: config, --deep, and the Nous login facts Auth Providers derives
# for the later Nous Tool Gateway section.
ctx = SimpleNamespace(deep=getattr(args, 'deep', False), config={}, nous_logged_in=False,
nous_inference_present=False, nous_account_info=None)
- if getattr(args, 'short', False):
- _render_short(ctx)
- return
- for render in _SECTIONS:
+ for render in _SECTIONS if getattr(args, 'full', False) or ctx.deep else (_render_summary,):
render(ctx)
diff --git a/hermes_cli/status_auth.py b/hermes_cli/status_auth.py
index f4ca4969b77..204af458789 100644
--- a/hermes_cli/status_auth.py
+++ b/hermes_cli/status_auth.py
@@ -202,106 +202,4 @@ def _render_apikey_providers(ctx):
_status._row("LM Studio", ok, msg, 16, " ")
-def _env_has_usable_secret(name: str) -> bool:
- """True when ``name`` resolves (.env preferred) to a non-placeholder credential."""
- from hermes_cli.auth import has_usable_secret
- from hermes_cli.config import get_env_value_prefer_dotenv
- value = get_env_value_prefer_dotenv(name) or ""
- return bool(value) and has_usable_secret(value)
-
-
-def _any_usable_env(names) -> bool:
- return any(_env_has_usable_secret(name) for name in names)
-
-
-def _connected_provider_labels(ctx) -> list[str]:
- """Labels of providers with usable credentials, for the compact ``--short`` summary.
-
- Registry-driven so new API-key rows, OAuth blocks, plugin providers and custom
- endpoints surface without touching the short renderer. Read-only and cheap by
- design: env presence checks plus refresh-free auth getters (no subprocesses, no
- network, no model discovery).
- """
- labels: list[str] = []
- import hermes_cli.auth as auth
-
- # Nous Portal: the refresh-free local snapshot, same as the full Auth Providers section.
- try:
- nous_status = auth.get_nous_auth_status_local() or {}
- if nous_status.get("logged_in"):
- labels.append("Nous Portal")
- elif nous_status.get("free_tier"):
- labels.append("Nous Portal (free tier)")
- except Exception:
- pass
-
- # Built-in OAuth rows: the same refresh-free getters the full section uses.
- for name, getter, _hint, _rows in _OAUTH_BLOCKS:
- try:
- status = getattr(auth, getter)() or {}
- except Exception:
- continue
- if status.get("logged_in"):
- labels.append(name)
-
- # Plugin-mirrored OAuth providers: their status lives in the credential pool.
- try:
- import hermes_cli.auth_plugin_providers as plugin_providers
- for pid, pconfig in list(auth.PROVIDER_REGISTRY.items()):
- if pid not in plugin_providers.PLUGIN_MIRRORED_PROVIDERS:
- continue
- if not str(pconfig.auth_type or "").startswith("oauth"):
- continue
- try:
- status = plugin_providers.get_plugin_oauth_auth_status(pid) or {}
- except Exception:
- continue
- if status.get("logged_in"):
- labels.append(pconfig.name)
- except Exception:
- pass
-
- # API-key inference providers: registry rows, deduped by ``ProviderConfig.id``
- # (alias keys share the row object). ``copilot`` is skipped: its cheap env vars are
- # misleading, the real check runs the copilot_auth token path, and the full status
- # never shows it either.
- try:
- seen_ids = set()
- model_cfg = ctx.config.get("model") if isinstance(ctx.config.get("model"), dict) else {}
- pointer_provider = str(model_cfg.get("provider") or "").strip().lower()
- pointer_key_env = str(model_cfg.get("key_env") or model_cfg.get("api_key_env") or "").strip()
- for pconfig in list(auth.PROVIDER_REGISTRY.values()):
- if pconfig.id in seen_ids:
- continue
- seen_ids.add(pconfig.id)
- if pconfig.auth_type != "api_key" or pconfig.id == "copilot" or not pconfig.api_key_env_vars:
- continue
- env_vars = list(pconfig.api_key_env_vars)
- if pointer_key_env and pointer_provider == pconfig.id:
- env_vars.append(pointer_key_env)
- if _any_usable_env(env_vars):
- labels.append(pconfig.name)
- except Exception:
- pass
-
- # OpenRouter is deliberately outside PROVIDER_REGISTRY (#109397): its own rung.
- try:
- if _env_has_usable_secret("OPENROUTER_API_KEY"):
- labels.append("OpenRouter")
- except Exception:
- pass
-
- # Configured custom endpoints (``providers:`` / legacy ``custom_providers:``).
- try:
- from hermes_cli.config import get_compatible_custom_providers
- for entry in get_compatible_custom_providers(ctx.config or None):
- name = str((entry or {}).get("name") or "").strip()
- if name:
- labels.append(name)
- except Exception:
- pass
-
- return labels
-
-
import hermes_cli.status as _status # noqa: E402 (bottom: hermes_cli.status imports this module)
diff --git a/hermes_cli/subcommands/status.py b/hermes_cli/subcommands/status.py
index d08402917aa..f1735f1ee0a 100644
--- a/hermes_cli/subcommands/status.py
+++ b/hermes_cli/subcommands/status.py
@@ -11,10 +11,8 @@ def build_status_parser(subparsers, *, cmd_status: Callable) -> None:
"status", help="Show status of all components",
description="Display status of Hermes Agent components")
status_parser.add_argument(
- "--short", action="store_true",
- help="Compact summary (no secrets; safe to share)")
+ "--full", "--all", dest="full", action="store_true",
+ help="Show every section (keys redacted) instead of the one-screen summary")
status_parser.add_argument(
- "--all", action="store_true", help="Show all details (redacted for sharing)")
- status_parser.add_argument(
- "--deep", action="store_true", help="Run deep checks (may take longer)")
+ "--deep", action="store_true", help="Run deep checks (implies --full; may take longer)")
status_parser.set_defaults(func=cmd_status)
diff --git a/skills/autonomous-ai-agents/hermes-agent/references/cli-reference.md b/skills/autonomous-ai-agents/hermes-agent/references/cli-reference.md
index 855a5bf7670..f68b358cb5f 100644
--- a/skills/autonomous-ai-agents/hermes-agent/references/cli-reference.md
+++ b/skills/autonomous-ai-agents/hermes-agent/references/cli-reference.md
@@ -46,7 +46,7 @@ hermes fallback [add|remove|list] Fallback provider chain
hermes config [show|edit|get|set|unset|path|env-path|check|migrate]
hermes login / logout OAuth sign-in / clear stored auth
hermes doctor [--fix] Check dependencies and config
-hermes status [--all] Component status
+hermes status [--full] Component summary (--full: every section)
```
### Tools & Skills
diff --git a/tests/hermes_cli/test_jobs_json_utf8_bom.py b/tests/hermes_cli/test_jobs_json_utf8_bom.py
index a3ec82c3e26..0699312ba22 100644
--- a/tests/hermes_cli/test_jobs_json_utf8_bom.py
+++ b/tests/hermes_cli/test_jobs_json_utf8_bom.py
@@ -51,7 +51,7 @@ def test_status_scheduled_jobs_accepts_utf8_bom(monkeypatch, capsys, tmp_path):
monkeypatch.setattr(auth_mod, "get_xai_oauth_auth_status", lambda: {}, raising=False)
monkeypatch.setattr(gateway_mod, "find_gateway_pids", lambda exclude_pids=None: [], raising=False)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
out = capsys.readouterr().out
assert "(error reading jobs file)" not in out
assert "2 active, 2 total" in out
diff --git a/tests/hermes_cli/test_status.py b/tests/hermes_cli/test_status.py
index 66077055f32..90699d68d8a 100644
--- a/tests/hermes_cli/test_status.py
+++ b/tests/hermes_cli/test_status.py
@@ -9,7 +9,7 @@ def test_show_status_all_does_not_print_keenable_key_value(monkeypatch, capsys,
sentinel = "NONSECRET_SENTINEL_VALUE_DO_NOT_PRINT_123456"
monkeypatch.setenv("KEENABLE_API_KEY", sentinel)
- show_status(SimpleNamespace(all=True, deep=False))
+ show_status(SimpleNamespace(full=True, deep=False))
output = capsys.readouterr().out
assert "Keenable" in output
@@ -21,7 +21,7 @@ def test_show_status_all_does_not_print_tavily_key_value(monkeypatch, capsys, tm
sentinel = "NONSECRET_SENTINEL_VALUE_DO_NOT_PRINT_TAVILY_123456"
monkeypatch.setenv("TAVILY_API_KEY", sentinel)
- show_status(SimpleNamespace(all=True, deep=False))
+ show_status(SimpleNamespace(full=True, deep=False))
output = capsys.readouterr().out
assert "Tavily" in output
@@ -51,7 +51,7 @@ def test_show_status_termux_gateway_section_skips_systemctl(monkeypatch, capsys,
monkeypatch.setattr(subprocess, "run", _unexpected_systemctl)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
output = capsys.readouterr().out
assert "systemd (user)" not in output
@@ -75,7 +75,7 @@ def test_show_status_reports_vercel_backend_contract(monkeypatch, capsys, tmp_pa
monkeypatch.setattr(auth_mod, "get_xai_oauth_auth_status", lambda: {}, raising=False)
monkeypatch.setattr(gateway_mod, "find_gateway_pids", lambda exclude_pids=None: [], raising=False)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
output = capsys.readouterr().out
assert "vercel_sandbox" in output
@@ -123,7 +123,7 @@ class TestShowStatusXaiOAuth:
lambda: {"logged_in": True, "auth_store": "/home/u/.hermes/auth.json"},
raising=False)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
out = capsys.readouterr().out
assert "Auth file: /home/u/.hermes/auth.json" in out
@@ -150,7 +150,7 @@ class TestShowStatusXaiOAuth:
lambda: {"logged_in": True}, raising=False)
monkeypatch.delattr(auth_mod, "get_xai_oauth_auth_status", raising=False)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
out = capsys.readouterr().out
assert "Nous Portal" in out
@@ -166,7 +166,7 @@ class TestShowStatusXaiOAuth:
monkeypatch.setattr(auth_mod, "get_xai_oauth_auth_status", _raises, raising=False)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
out = capsys.readouterr().out
assert "◆ Auth Providers" in out
@@ -178,7 +178,7 @@ class TestShowStatusXaiOAuth:
monkeypatch.setattr(auth_mod, "get_xai_oauth_auth_status",
lambda: None, raising=False)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
out = capsys.readouterr().out
assert "xAI OAuth" in out
@@ -220,137 +220,50 @@ def test_show_status_reports_gateway_session_last_activity(monkeypatch, capsys,
monkeypatch.setattr(hermes_state, "SessionDB", _FakeDB)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
output = capsys.readouterr().out
assert "Active: 2 session(s)" in output
assert "Last activity:" in output
assert "1m ago" in output
-# ── `hermes status --short` ────────────────────────────────────────────────
-
-
-def _short_env(monkeypatch, tmp_path):
- """Quiet, hermetic environment for --short runs; returns (status_mod, auth_mod, gateway_mod)."""
- from hermes_cli import status as status_mod
- import hermes_cli.auth as auth_mod
- import hermes_cli.gateway as gateway_mod
-
- monkeypatch.setenv("HERMES_HOME", str(tmp_path))
- monkeypatch.setattr(status_mod, "load_config", lambda: {"model": "test-model"}, raising=False)
- monkeypatch.setattr(status_mod, "resolve_requested_provider", lambda requested=None: "test", raising=False)
- monkeypatch.setattr(status_mod, "resolve_provider", lambda requested=None, **kwargs: "test", raising=False)
- monkeypatch.setattr(status_mod, "provider_label", lambda provider: "Test Provider", raising=False)
- monkeypatch.setattr(auth_mod, "get_nous_auth_status_local", lambda: {}, raising=False)
- monkeypatch.setattr(auth_mod, "get_codex_auth_status", lambda: {}, raising=False)
- monkeypatch.setattr(auth_mod, "get_qwen_auth_status", lambda: {}, raising=False)
- monkeypatch.setattr(auth_mod, "get_minimax_oauth_auth_status", lambda: {}, raising=False)
- monkeypatch.setattr(auth_mod, "get_xai_oauth_auth_status", lambda: {}, raising=False)
- monkeypatch.setattr(
- gateway_mod, "get_gateway_runtime_snapshot",
- lambda: SimpleNamespace(running=False, manager="unknown", gateway_pids=[],
- has_process_service_mismatch=False, service_installed=False,
- service_running=False),
- raising=False)
- monkeypatch.setattr(gateway_mod, "named_profile_served_by_running_multiplexer", lambda: False, raising=False)
- return status_mod, auth_mod, gateway_mod
-
-
-def test_status_parser_accepts_short_flag():
+def _status_args(*argv):
import argparse
from hermes_cli.subcommands.status import build_status_parser
parser = argparse.ArgumentParser()
- subparsers = parser.add_subparsers()
- build_status_parser(subparsers, cmd_status=lambda args: None)
-
- assert parser.parse_args(["status", "--short"]).short is True
- assert parser.parse_args(["status"]).short is False
- both = parser.parse_args(["status", "--all", "--deep"])
- assert both.all is True and both.deep is True
-
+ build_status_parser(parser.add_subparsers(), cmd_status=None)
+ return parser.parse_args(["status", *argv])
-def test_short_reports_model_provider_and_connected_providers(monkeypatch, capsys, tmp_path):
- status_mod, auth_mod, _ = _short_env(monkeypatch, tmp_path)
- monkeypatch.setattr(auth_mod, "get_nous_auth_status_local", lambda: {"logged_in": True}, raising=False)
- monkeypatch.setenv("GLM_API_KEY", "glm-key-1234567890")
- status_mod.show_status(SimpleNamespace(all=False, deep=False, short=True))
- out = capsys.readouterr().out
+def test_status_defaults_to_summary_and_full_or_all_prints_every_section(monkeypatch, capsys, tmp_path):
+ import hermes_cli.model_switch as model_switch
- assert "status (short)" in out
- assert "Model: test-model" in out
- assert "Provider: Test Provider" in out
- assert "Providers: Nous Portal, Z.AI / GLM" in out
- assert "none connected" not in out
- assert "hermes doctor" not in out and "hermes setup" not in out
-
-
-def test_short_new_registry_provider_appears_when_env_var_set(monkeypatch, capsys, tmp_path):
- status_mod, auth_mod, _ = _short_env(monkeypatch, tmp_path)
- fake = auth_mod.ProviderConfig("acme", "Acme AI", "api_key", api_key_env_vars=("ACME_API_KEY",))
- monkeypatch.setattr(auth_mod, "PROVIDER_REGISTRY", {**auth_mod.PROVIDER_REGISTRY, "acme": fake}, raising=False)
- monkeypatch.delenv("ACME_API_KEY", raising=False)
-
- status_mod.show_status(SimpleNamespace(all=False, deep=False, short=True))
- assert "Acme AI" not in capsys.readouterr().out
-
- monkeypatch.setenv("ACME_API_KEY", "acme-key-1234567890")
- status_mod.show_status(SimpleNamespace(all=False, deep=False, short=True))
- assert "Acme AI" in capsys.readouterr().out
-
-
-def test_short_shows_none_connected_without_credentials(monkeypatch, capsys, tmp_path):
- status_mod, auth_mod, _ = _short_env(monkeypatch, tmp_path)
- monkeypatch.setattr(auth_mod, "PROVIDER_REGISTRY", {}, raising=False)
- monkeypatch.delenv("OPENROUTER_API_KEY", raising=False)
-
- status_mod.show_status(SimpleNamespace(all=False, deep=False, short=True))
- out = capsys.readouterr().out
- assert "Providers: none connected" in out
-
-
-def test_short_does_not_print_key_values(monkeypatch, capsys, tmp_path):
- status_mod, auth_mod, _ = _short_env(monkeypatch, tmp_path)
- sentinel = "NONSECRET_SENTINEL_VALUE_DO_NOT_PRINT_SHORT_123456"
- monkeypatch.setenv("GLM_API_KEY", sentinel)
-
- status_mod.show_status(SimpleNamespace(all=False, deep=False, short=True))
- out = capsys.readouterr().out
- assert "Z.AI / GLM" in out
- assert sentinel not in out
-
-
-def test_short_gateway_row_reflects_snapshot(monkeypatch, capsys, tmp_path):
- status_mod, auth_mod, gateway_mod = _short_env(monkeypatch, tmp_path)
- monkeypatch.setattr(
- gateway_mod, "get_gateway_runtime_snapshot",
- lambda: SimpleNamespace(running=True, manager="systemd (user)", gateway_pids=[123],
- has_process_service_mismatch=False, service_installed=True,
- service_running=True),
- raising=False)
+ monkeypatch.setenv("HERMES_HOME", str(tmp_path))
+ monkeypatch.setattr(model_switch, "list_authenticated_providers", lambda **_: [{"name": "Acme AI"}])
- status_mod.show_status(SimpleNamespace(all=False, deep=False, short=True))
- out = capsys.readouterr().out
- assert "Gateway:" in out and "running" in out
- assert "stopped" not in out
+ show_status(_status_args())
+ summary = capsys.readouterr().out
+ assert "Providers: Acme AI" in summary
+ assert "◆ Environment" not in summary
+ for flag in ("--full", "--all"):
+ show_status(_status_args(flag))
+ assert "◆ Environment" in capsys.readouterr().out
-def test_short_platforms_row_lists_configured_only(monkeypatch, capsys, tmp_path):
- status_mod, auth_mod, _ = _short_env(monkeypatch, tmp_path)
- monkeypatch.setattr(status_mod, "_PLATFORMS", {"TestNet": ("TESTNET_TOKEN", None)}, raising=False)
- monkeypatch.setenv("TESTNET_TOKEN", "token-123")
+def test_platform_rows_follow_the_gateway_verdict_not_check_fn(monkeypatch, capsys, tmp_path):
+ """check_fn only says the SDK imports; a bundled plugin with no token is not configured."""
+ import gateway.config as gateway_config
from gateway.platform_registry import platform_registry
- monkeypatch.setattr(platform_registry, "plugin_entries", lambda: [], raising=False)
-
- status_mod.show_status(SimpleNamespace(all=False, deep=False, short=True))
- out = capsys.readouterr().out
- assert "Platforms: TestNet" in out
-
-def test_full_status_output_unchanged_without_short_attr(monkeypatch, capsys, tmp_path):
- status_mod, auth_mod, _ = _short_env(monkeypatch, tmp_path)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
- out = capsys.readouterr().out
- assert "☤ Hermes Agent Status" in out
- assert "◆ Environment" in out
+ monkeypatch.setenv("HERMES_HOME", str(tmp_path))
+ entries = [SimpleNamespace(name=n, label=n.title(), check_fn=lambda: True) for n in ("telegram", "discord")]
+ monkeypatch.setattr(platform_registry, "plugin_entries", lambda: entries)
+ monkeypatch.setattr(gateway_config, "load_gateway_config", lambda: SimpleNamespace(
+ get_connected_platforms=lambda: [SimpleNamespace(value="telegram")]))
+
+ show_status(SimpleNamespace(full=True, deep=False))
+ plugin_rows = [line for line in capsys.readouterr().out.splitlines() if "(plugin)" in line]
+ assert any("Discord" in line and "not configured" in line for line in plugin_rows)
+ show_status(SimpleNamespace())
+ assert "Platforms: Telegram\n" in capsys.readouterr().out
diff --git a/tests/hermes_cli/test_status_model_provider.py b/tests/hermes_cli/test_status_model_provider.py
index e19bf7da8ce..e35300f3cbc 100644
--- a/tests/hermes_cli/test_status_model_provider.py
+++ b/tests/hermes_cli/test_status_model_provider.py
@@ -45,7 +45,7 @@ def test_show_status_displays_configured_dict_model_and_provider_label(monkeypat
monkeypatch.setattr(status_mod, "resolve_provider", lambda requested=None, **kwargs: "anthropic", raising=False)
monkeypatch.setattr(status_mod, "provider_label", lambda provider: "Anthropic", raising=False)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
out = capsys.readouterr().out
assert "Model: anthropic/claude-sonnet-4" in out
@@ -76,7 +76,7 @@ def test_show_status_reports_empty_lmstudio_listing_as_reachable(monkeypatch, ca
lambda api_key=None, base_url=None, timeout=5.0: [],
)
- status_mod.show_status(SimpleNamespace(all=False, deep=False))
+ status_mod.show_status(SimpleNamespace(full=True, deep=False))
out = capsys.readouterr().out
assert "LM Studio" in out
diff --git a/website/docs/reference/cli-commands.md b/website/docs/reference/cli-commands.md
index eeb0ff888a1..fc1d714f88d 100644
--- a/website/docs/reference/cli-commands.md
+++ b/website/docs/reference/cli-commands.md
@@ -742,14 +742,17 @@ has no usage endpoint, or the fetch fails (stdout stays empty).
## `hermes status`
```bash
-hermes status [--short] [--all] [--deep]
+hermes status [--full] [--deep]
```
+By default prints a one-screen summary: model, active provider, every provider with
+credentials (the same list the `/model` picker offers), gateway state, the messaging
+platforms the gateway would start, and scheduled jobs. No key values are printed.
+
| Option | Description |
|--------|-------------|
-| `--short` | Compact summary: model, providers, gateway, platforms, jobs. |
-| `--all` | Show all details in a shareable redacted format. |
-| `--deep` | Run deeper checks that may take longer. |
+| `--full` | Print every section (API keys redacted, auth providers, terminal backend, sessions, ...). `--all` is an alias. |
+| `--deep` | Run deeper checks that may take longer. Implies `--full`. |
## `hermes cron`
diff --git a/website/docs/user-guide/configuration.md b/website/docs/user-guide/configuration.md
index 16eec2d448c..a2061da1de1 100644
--- a/website/docs/user-guide/configuration.md
+++ b/website/docs/user-guide/configuration.md
@@ -2580,7 +2580,7 @@ websocket triggers) cannot starve the messaging gateway that shares this cap.
When the cap is reached, Hermes returns a direct limit message naming which
surfaces hold the slots. Existing active sessions keep their normal behavior.
-Run `hermes status` to see the current slot usage and every holder.
+Run `hermes status --full` to see the current slot usage and every holder.
This is the only cap on concurrent gateway turns: the gateway runs each turn body
on its own thread, so with the default (unset) every accepted turn starts
diff --git a/website/docs/user-guide/docker.md b/website/docs/user-guide/docker.md
index 525d3028a3d..ef9c3794281 100644
--- a/website/docs/user-guide/docker.md
+++ b/website/docs/user-guide/docker.md
@@ -616,7 +616,7 @@ Each profile created with `hermes profile create <name>` automatically gets an s
- `docker restart`, image upgrades (`docker compose up -d --force-recreate`), and unexpected exits preserve running gateways: the cont-init reconciler reads `$HERMES_HOME/profiles/<name>/gateway_state.json` and brings the slot back up if the last recorded state was `running`. Only an explicit `hermes gateway stop` records `stopped` and keeps the gateway down across the restart; the container/s6 SIGTERM sent on a restart or upgrade is treated as "still running" and auto-starts.
- Per-profile gateway logs persist under `$HERMES_HOME/logs/gateways/<profile>/current` (rotated by `s6-log`), and the reconciler's actions are appended to `$HERMES_HOME/logs/container-boot.log` per boot. See [Where the logs go](#where-the-logs-go) for the full routing map.
-`hermes status` inside the container reports `Manager: s6 (container supervisor)`. Use `/command/s6-svstat /run/service/gateway-<name>` for the raw supervisor view (note `/command/` is on PATH for supervision-tree processes only; pass the absolute path when calling from `docker exec`).
+`hermes status --full` inside the container reports `Manager: s6 (container supervisor)`. Use `/command/s6-svstat /run/service/gateway-<name>` for the raw supervisor view (note `/command/` is on PATH for supervision-tree processes only; pass the absolute path when calling from `docker exec`).
## Upgrading
diff --git a/website/docs/user-guide/features/tool-gateway.md b/website/docs/user-guide/features/tool-gateway.md
index bebe3c896ef..05d6b45337c 100644
--- a/website/docs/user-guide/features/tool-gateway.md
+++ b/website/docs/user-guide/features/tool-gateway.md
@@ -62,7 +62,7 @@ Check what's active at any time:
```bash
hermes portal info # Portal auth + Tool Gateway routing summary
hermes portal tools # Gateway catalog with current routing per tool
-hermes status # Full system status (Tool Gateway is one section)
+hermes status --full # Full system status (Tool Gateway is one section)
```
`hermes portal info` shows a section like:
diff --git a/website/docs/user-guide/multi-profile-gateways.md b/website/docs/user-guide/multi-profile-gateways.md
index 96e1b7a7ca3..00ca1eae682 100644
--- a/website/docs/user-guide/multi-profile-gateways.md
+++ b/website/docs/user-guide/multi-profile-gateways.md
@@ -569,7 +569,7 @@ parent conversation.
#### 5. One PID/lock and one status surface
-There is a single process-level PID and lock (the multiplexer, under the default home). `hermes status` on the default profile reports the multiplexer and lists the profiles it serves (`Serves: coder, research`). `hermes -p coder status` and `hermes -p coder gateway status` report "running via the default-profile multiplexer" instead of "stopped". The dashboard's `/api/status?profile=coder` / Channels page report the multiplexer as coder's running gateway, with coder's own adapters as its platforms. The single `gateway_state.json` lives under the default home: secondary adapters appear there as `<profile>:<platform>` entries beside `served_profiles`; no per-profile gateway status file is written.
+There is a single process-level PID and lock (the multiplexer, under the default home). `hermes status --full` on the default profile reports the multiplexer and lists the profiles it serves (`Serves: coder, research`). `hermes -p coder status` and `hermes -p coder gateway status` report "running via the default-profile multiplexer" instead of "stopped". The dashboard's `/api/status?profile=coder` / Channels page report the multiplexer as coder's running gateway, with coder's own adapters as its platforms. The single `gateway_state.json` lives under the default home: secondary adapters appear there as `<profile>:<platform>` entries beside `served_profiles`; no per-profile gateway status file is written.
`hermes -p coder cron status` names the single host gateway and the profiles it serves — `Scheduler host: the host gateway (PID 4211) serving profiles default, coder` — then checks coder's own ticker heartbeat and last successful tick. A missing or stale heartbeat produces a warning rather than an unconditional running verdict. `cron list` and `cron create` also warn when a served profile has no fresh heartbeat. `cron status` adds tick-failure details that those lightweight checks do not read.