The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(models): make GLM-5.3 the silent default model (#144810)
Calvin Ng5239b1323e86
diff --git a/hermes_cli/models_catalog_static.py b/hermes_cli/models_catalog_static.pyindex 821e04ce84a..ec14790391a 100644--- a/hermes_cli/models_catalog_static.py+++ b/hermes_cli/models_catalog_static.py@@ -23,7 +23,7 @@ _OPENROUTER_DESCRIPTIONS = {"deepseek/deepseek-v4.1-flash-1017": "dated snapshot of v4.1-flash","deepseek/deepseek-v4-flash-0731": "dated snapshot of v4-flash","moonshotai/kimi-k3": "recommended",- "z-ai/glm-5.2": "default",+ "z-ai/glm-5.3": "default","z-ai/glm-5.3-flashx": "high-speed tier of glm-5.3-flash","openrouter/pareto-code": "auto-routes to cheapest coder meeting openrouter.min_coding_score","openai/gpt-6-astra-fast": "2x price, priority tier",@@ -544,7 +544,7 @@ _PROVIDER_ALIASES = dict((# MUST match the labeled entry in website/static/api/model-catalog.json. Deliberately a capable# low-cost model rather than the curated lists' entry [0]: aggregator lists are ordered# most-capable-first, so [0] is the priciest Anthropic flagship.-PREFERRED_SILENT_DEFAULT_MODEL = "z-ai/glm-5.2"+PREFERRED_SILENT_DEFAULT_MODEL = "z-ai/glm-5.3"# Providers whose *silent* auto-default goes through the cost-safe catalog-labeled defaultdiff --git a/tests/hermes_cli/test_model_catalog.py b/tests/hermes_cli/test_model_catalog.pyindex 81cb75f595a..0f36d5d32e1 100644--- a/tests/hermes_cli/test_model_catalog.py+++ b/tests/hermes_cli/test_model_catalog.py@@ -361,7 +361,7 @@ class TestDefaultModelFromCache:fetch.assert_not_called()- def test_shipped_manifest_labels_glm52_default(self, isolated_home):+ def test_shipped_manifest_labels_the_silent_default(self, isolated_home):"""Contract with the in-repo manifest: both provider blocks label thesame default entry the code constant points at."""from hermes_cli import model_catalogdiff --git a/tests/tui_gateway/test_resolve_model_silent_default.py b/tests/tui_gateway/test_resolve_model_silent_default.pynew file mode 100644index 00000000000..af5e5ce4495--- /dev/null+++ b/tests/tui_gateway/test_resolve_model_silent_default.py@@ -0,0 +1,39 @@+"""Tests: the TUI's no-model fallback follows the one silent-default constant.++``_resolve_model`` with no env seed and no configured model lands on the+cached catalog's labeled default, and on ``PREFERRED_SILENT_DEFAULT_MODEL``+when that lookup fails. A hardcoded copy of the id there drifts every time+the default rotates.+"""++from __future__ import annotations++import pytest++import hermes_cli.models as models_mod+from hermes_cli.models_catalog_static import PREFERRED_SILENT_DEFAULT_MODEL+from tui_gateway import server+++def no_model_configured(monkeypatch):+ monkeypatch.delenv("HERMES_MODEL", raising=False)+ monkeypatch.delenv("HERMES_INFERENCE_MODEL", raising=False)+ monkeypatch.setattr(server, "_load_cfg", dict)+++def test_unset_model_uses_catalog_labeled_default(monkeypatch, no_model_configured):+ monkeypatch.setattr(+ models_mod, "get_preferred_silent_default_model", lambda provider="openrouter": "example/labeled"+ )++ assert server._resolve_model() == "example/labeled"+++def test_unset_model_falls_back_to_the_constant_when_lookup_fails(monkeypatch, no_model_configured):+ def _boom(provider="openrouter"):+ raise RuntimeError("catalog lookup unavailable")++ monkeypatch.setattr(models_mod, "get_preferred_silent_default_model", _boom)++ assert server._resolve_model() == PREFERRED_SILENT_DEFAULT_MODELdiff --git a/tui_gateway/agent_factory.py b/tui_gateway/agent_factory.pyindex 73647e40f66..a0fa0eae55c 100644--- a/tui_gateway/agent_factory.py+++ b/tui_gateway/agent_factory.py@@ -21,7 +21,9 @@ def _resolve_model() -> str:with contextlib.suppress(Exception):from hermes_cli.models import get_preferred_silent_default_modelreturn get_preferred_silent_default_model()- return "z-ai/glm-5.2"+ # Data-only module (no heavy imports), so this holds when the lookup above fails.+ from hermes_cli.models_catalog_static import PREFERRED_SILENT_DEFAULT_MODEL+ return PREFERRED_SILENT_DEFAULT_MODELdef _resolve_session_platform() -> str:diff --git a/website/docs/reference/model-catalog.md b/website/docs/reference/model-catalog.mdindex e0b98a3ed70..19ee831a2d9 100644--- a/website/docs/reference/model-catalog.md+++ b/website/docs/reference/model-catalog.md@@ -29,7 +29,7 @@ Published on every merge to `main` via the existing `deploy-site.yml` GitHub Pag"openrouter": {"metadata": {},"models": [- {"id": "z-ai/glm-5.2", "description": "default", "default": true},+ {"id": "z-ai/glm-5.3", "description": "default", "default": true},{"id": "moonshotai/kimi-k3", "description": "recommended", "metadata": {}},{"id": "openai/gpt-5.4", "description": ""}]@@ -37,7 +37,7 @@ Published on every merge to `main` via the existing `deploy-site.yml` GitHub Pag"nous": {"metadata": {},"models": [- {"id": "z-ai/glm-5.2", "default": true},+ {"id": "z-ai/glm-5.3", "default": true},{"id": "anthropic/claude-opus-4.7"},{"id": "moonshotai/kimi-k3"}]diff --git a/website/static/api/model-catalog.json b/website/static/api/model-catalog.jsonindex 0dc501cccd5..bf5d6a2ec1e 100644--- a/website/static/api/model-catalog.json+++ b/website/static/api/model-catalog.json@@ -1,6 +1,6 @@{"version": 1,- "updated_at": "2026-10-17T11:22:42Z",+ "updated_at": "2026-10-26T02:45:22Z","metadata": {"source": "hermes-agent repo","docs": "https://hermes-agent.nousresearch.com/docs/reference/model-catalog"@@ -178,7 +178,8 @@},{"id": "z-ai/glm-5.3",- "description": ""+ "description": "default",+ "default": true},{"id": "z-ai/glm-5.3-flash",@@ -190,8 +191,7 @@},{"id": "z-ai/glm-5.2",- "description": "default",- "default": true+ "description": ""},{"id": "xiaomi/mimo-v2.6-pro",@@ -431,7 +431,8 @@"id": "minimax/minimax-m3"},{- "id": "z-ai/glm-5.3"+ "id": "z-ai/glm-5.3",+ "default": true},{"id": "z-ai/glm-5.3-flash"@@ -440,8 +441,7 @@"id": "z-ai/glm-5.3-flashx"},{- "id": "z-ai/glm-5.2",- "default": true+ "id": "z-ai/glm-5.2"},{"id": "xiaomi/mimo-v2.6-pro"