The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: follow-up for salvaged PRs #93250 + #96234
Teknium9b44273c0511
diff --git a/agent/model_metadata.py b/agent/model_metadata.pyindex b1e4724ce9b..a68e1f48ab0 100644--- a/agent/model_metadata.py+++ b/agent/model_metadata.py@@ -493,6 +493,14 @@ DEFAULT_CONTEXT_LENGTHS = {"deepseek": 128000,# Meta"llama": 131072,+ # Thinking Machines — Inkling family ships with a 1M context window+ # (max output 256K). Verified against OpenRouter live metadata+ # (context_length 1,048,576 for inkling, inkling-small, and the+ # :free SKUs, 2026-08-27). Substring matching means "inkling"+ # covers inkling-small and every :free/:batch variant; the :batch+ # SKU's smaller live window (524,288) is served by the provider's+ # live metadata when available.+ "inkling": 1_048_576,# Qwen — specific model families before the catch-all.# Official docs: https://help.aliyun.com/zh/model-studio/developer-reference/"qwen3.8-max": 1_000_000, # 1M context (OpenRouter & Nous portal, verified 2026-08-03)diff --git a/agent/reasoning_timeouts.py b/agent/reasoning_timeouts.pyindex 11c71c544a9..4f6194903aa 100644--- a/agent/reasoning_timeouts.py+++ b/agent/reasoning_timeouts.py@@ -131,6 +131,13 @@ _REASONING_STALE_TIMEOUT_FLOORS: tuple[tuple[str, int], ...] = (# reasoning variants.("ox-alpha", 300),("x-preview-f-free", 300),+ # Thinking Machines Inkling (thinkingmachines/inkling[-small][:free]+ # on OpenRouter). Reasoning model (OpenRouter supported_parameters+ # includes "reasoning"); 1M context — same tier as the Grok+ # reasoning variants and Ox Alpha. "inkling" left-anchors on the+ # slug after the aggregator prefix and the right anchor accepts the+ # "-" separator, so inkling-small and the :free SKUs all match.+ ("inkling", 300),)@@ -161,7 +168,12 @@ _REASONING_STALE_TIMEOUT_FLOORS: tuple[tuple[str, int], ...] = (# in each entry for debuggability (log/inspection), even though _match_any# only consumes floor + pattern._SORTED_REASONING_FLOORS: list[tuple[str, float, re.Pattern[str]]] = [- (slug, floor, re.compile(r"^" + re.escape(slug) + r"(?:$|[\-._])"))+ # Right anchor: end-of-string or a slug separator. ``:`` is in the+ # separator class because OpenRouter SKU/routing suffixes+ # (``:free``, ``:batch``, ``:nitro``, ``:floor``) attach directly to+ # the slug — ``thinkingmachines/inkling:free`` must match the+ # ``inkling`` entry the same way ``inkling-small`` does.+ (slug, floor, re.compile(r"^" + re.escape(slug) + r"(?:$|[\-._:])"))for slug, floor in sorted(_REASONING_STALE_TIMEOUT_FLOORS, key=lambda kv: -len(kv[0]))diff --git a/hermes_cli/models.py b/hermes_cli/models.pyindex ca55724608f..6f3836c20fa 100644--- a/hermes_cli/models.py+++ b/hermes_cli/models.py@@ -115,7 +115,6 @@ OPENROUTER_MODELS: list[tuple[str, str]] = [("moonshotai/kimi-k3", "recommended"),# MiniMax("minimax/minimax-m3", ""),- ("minimax/minimax-m3:free", "free"),# Z-AI("z-ai/glm-5.3", ""),("z-ai/glm-5.3-flash", ""),@@ -137,6 +136,7 @@ OPENROUTER_MODELS: list[tuple[str, str]] = [# Free tier("thinkingmachines/inkling:free", "free"),("thinkingmachines/inkling-small:free", "free"),+ ("minimax/minimax-m3:free", "free"),("openrouter/elephant-alpha", "free"),("z-ai/glm-5.2:free", "free"),("poolside/laguna-s-2.1:free", "free"),diff --git a/tests/agent/test_reasoning_stale_timeout_floor.py b/tests/agent/test_reasoning_stale_timeout_floor.pyindex 716c614dbe8..bb0e5b9d134 100644--- a/tests/agent/test_reasoning_stale_timeout_floor.py+++ b/tests/agent/test_reasoning_stale_timeout_floor.py@@ -85,6 +85,12 @@ import pytest("x-ai/grok-4.5", 300.0),("x-ai/grok-4.6", 300.0),("x-ai/grok-4-fast-non-reasoning", 180.0),+ # Thinking Machines Inkling — family entry covers -small and the+ # OpenRouter :free / :batch SKU suffixes (":" is a slug separator+ # in the right anchor, same as "-").+ ("thinkingmachines/inkling", 300.0),+ ("thinkingmachines/inkling:free", 300.0),+ ("thinkingmachines/inkling-small:free", 300.0),])def test_reasoning_stale_timeout_floor_positive_cases(model, expected):from agent.reasoning_timeouts import get_reasoning_stale_timeout_floordiff --git a/website/static/api/model-catalog.json b/website/static/api/model-catalog.jsonindex 2cc8ba08083..f823931d256 100644--- a/website/static/api/model-catalog.json+++ b/website/static/api/model-catalog.json@@ -1,6 +1,6 @@{"version": 1,- "updated_at": "2026-08-27T09:32:16Z",+ "updated_at": "2026-08-27T09:39:24Z","metadata": {"source": "hermes-agent repo","docs": "https://hermes-agent.nousresearch.com/docs/reference/model-catalog"@@ -116,10 +116,6 @@"id": "minimax/minimax-m3","description": ""},- {- "id": "minimax/minimax-m3:free",- "description": "free"- },{"id": "z-ai/glm-5.3","description": ""@@ -169,6 +165,10 @@"id": "thinkingmachines/inkling-small:free","description": "free"},+ {+ "id": "minimax/minimax-m3:free",+ "description": "free"+ },{"id": "openrouter/elephant-alpha","description": "free"