HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
openhands: the id rides litellm's proxy prefix; console: the composer opens on the gateway's default; the gpt-6 columns (#296)
github-actions[bot]9d2de58b0a1d
diff --git a/gateway/app.py b/gateway/app.pyindex 447c1486..f2595990 100644--- a/gateway/app.py+++ b/gateway/app.py@@ -6417,10 +6417,12 @@ _MODEL_CATALOG: dict[str, dict] = {# openhands: the same relay reach as kimi and qwen (litellm's openai provider through the# loopback relay), so the list is theirs. Measured 2026-09-18/19: the Vercel column ran 49 of# these ids (239 of 245 scenarios) and the Google column ran the eight gemini ids, so the list- # is a measured one rather than an offered one. The id is sent with an `openai/` prefix by the- # runner, which is load-bearing: without an explicit provider litellm infers one from the base- # url, and a relay url inferred as Vercel produced `Missing credentials …- # VERCEL_AI_GATEWAY_API_KEY` on a resumed turn.+ # is a measured one rather than an offered one. The id is sent with a `litellm_proxy/` prefix by+ # the runner, which is load-bearing: without an explicit provider litellm infers one from the+ # base url, and a relay url inferred as Vercel produced `Missing credentials …+ # VERCEL_AI_GATEWAY_API_KEY` on a resumed turn. It was `openai/` until 2026-09-27, which is+ # stripped twice on the way to the wire, so an aggregator's openai/<id> reached TokenRouter bare+ # and was refused; the gpt-6 tokenrouter column found it (runner/server.py, _build_openhands)."openhands": {"default": "gpt-5.4","models": ["gpt-6-sol", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5", "gpt-5.4",@@ -6605,8 +6607,9 @@ RESPONSES_ONLY_MODELS = frozenset({"gpt-5.3-codex", "gpt-6-astra"})# kimi speaks chat/completions only: the runner defines its model with provider type `openai`# through the relay (Kimi Code CLI has an openai_responses type too, but it is not the one the runner# sets), so a Responses-API-only id would be a picker row that fails on send.-# aider and openhands speak chat/completions through litellm's openai provider (the id is sent-# `openai/<id>`), so a Responses-API-only id would be a picker row that fails on send.+# aider and openhands speak chat/completions through litellm (aider under its openai provider, the+# id sent `openai/<id>`; openhands under litellm's proxy provider, the id sent as it is), so a+# Responses-API-only id would be a picker row that fails on send.# cheetahclaws speaks chat/completions only (its `custom/` provider is OpenAI Chat Completions).CHAT_ONLY_BACKENDS = ("qwen", "cline", "goose", "kimi", "aider", "openhands", "cheetahclaws")_BARE_MODELS = {"", "claude", "codex", "anthropic", "bedrock", "openai", "hermes", "pi", "dsh", "deepseek", "omp"}diff --git a/gateway/tests/test_console_placeholders.py b/gateway/tests/test_console_placeholders.pynew file mode 100644index 00000000..03440cbb--- /dev/null+++ b/gateway/tests/test_console_placeholders.py@@ -0,0 +1,55 @@+"""The console's placeholder lists are copies of the gateway's catalog. ui/src/lib/harness.ts carries a+models list and a defaultModel per base for the second or two before the catalog read lands, and+those must be the catalog's own: on 2026-09-27 the placeholder defaults were older than the gateway's+(codex and hermes on gpt-5.5, claude-code on claude-opus-4.8) while the helper read the placeholder+first, and on hosted three entries with no default opened a fresh page on the first entry of a list+that leads with gpt-6-astra. Regenerate the lists from _MODEL_CATALOG when a catalog changes; this+test fails the suite when they drift."""+from __future__ import annotations++import re+import sys+from pathlib import Path++import pytest++sys.path.insert(0, str(Path(__file__).resolve().parents[1]))+import app as gw # noqa: E402++HARNESS_TS = Path(__file__).resolve().parents[2] / "ui" / "src" / "lib" / "harness.ts"+ENTRY = re.compile(r"\n \{ id: '([a-z0-9-]+)', name: '[^']*', version: '[^']*', backend: '([a-z]+)'(.*?)\n tools: \[", re.S)+++def _entries() -> list[tuple[str, str, list[str], str]]:+ if not HARNESS_TS.exists():+ pytest.skip("the console tree is not beside the gateway here")+ src = HARNESS_TS.read_text()+ body = src[src.index("export const OOB: OobHarness[] = ["):]+ body = body[: body.index("\n];\n")]+ out = []+ for cid, backend, rest in ENTRY.findall(body):+ models = re.search(r"models: \[(.*?)\]", rest, re.S)+ default = re.search(r"defaultModel: '([^']*)'", rest)+ out.append((cid, backend, re.findall(r"'([^']+)'", models.group(1)) if models else [], default.group(1) if default else ""))+ return out+++def test_every_base_of_the_catalog_has_one_console_entry():+ entries = _entries()+ assert sorted(b for _, b, _, _ in entries) == sorted(gw._MODEL_CATALOG)+++def test_each_placeholder_list_and_default_is_the_catalog_s():+ for cid, backend, models, default in _entries():+ cat = gw._MODEL_CATALOG[backend]+ assert models == cat["models"], cid+ assert default == cat["default"], cid+ assert default in models, cid+++def test_the_console_default_helper_reads_the_server_first():+ """`fromServer || o.defaultModel || ''`: the placeholder stands in only until the catalog lands,+ and a list's first entry is never a default."""+ src = HARNESS_TS.read_text()+ assert "return fromServer || o.defaultModel || '';" in src+ assert "oobModels(o)[0]" not in srcdiff --git a/runner/openhands_driver.py b/runner/openhands_driver.pyindex 6bf3fdbc..3ca05328 100644--- a/runner/openhands_driver.py+++ b/runner/openhands_driver.py@@ -216,9 +216,10 @@ def _agent_spec(job: dict) -> dict:# NO BASE URL IN IT EITHER. The spec is persisted with the conversation, and the base url is# the loopback relay's, which binds a fresh port on every runner start: a conversation created# before a restart dialled the old port on its next turn and died on `Cannot connect to host- # 127.0.0.1:39265` (hr-test, 2026-09-19, the first turn after a deploy). litellm reads- # OPENAI_BASE_URL from the environment when the spec carries none, and the driver sets it for- # this turn's server the way it sets the key, so every turn dials the relay it was given.+ # 127.0.0.1:39265` (hr-test, 2026-09-19, the first turn after a deploy). litellm reads the+ # base from the environment when the spec carries none (LITELLM_PROXY_API_BASE for the+ # litellm_proxy/ id the builder sends), and the driver sets it for this turn's server the way+ # it sets the key, so every turn dials the relay it was given.# RETRIES BOUNDED IN SECONDS, NOT MINUTES. The SDK's defaults (5 retries, 8 s minimum wait,# 64 s maximum, multiplier 8) turn a provider that answers the same 503 every time into a# 270-310 s turn before the reason is reported (three switch scenarios, hr-test 2026-09-19);@@ -517,14 +518,18 @@ def main() -> int:env = dict(os.environ)env["OPENHANDS_AGENT_SERVER_CONFIG_PATH"] = str(cfg)- # THE PROVIDER CREDENTIAL, and the only place it lives (see _agent_spec). The id is sent with an- # `openai/` prefix by the builder so litellm routes through its openai provider verbatim instead- # of INFERRING one from the base url — the inference is what produced `Vercel_ai_gatewayException- # … set the VERCEL_AI_GATEWAY_API_KEY`, a provider-specific variable nothing here would set.+ # THE PROVIDER CREDENTIAL, and the only place it lives (see _agent_spec). The id is sent with a+ # `litellm_proxy/` prefix by the builder so litellm routes through its proxy provider, which+ # sends the rest of the id as it is (an `openai/` prefix was taken off twice on the way to the+ # wire and an aggregator's openai/<id> reached TokenRouter bare), instead of INFERRING one from+ # the base url — the inference is what produced `Vercel_ai_gatewayException … set the+ # VERCEL_AI_GATEWAY_API_KEY`, a provider-specific variable nothing here would set. The proxy+ # provider reads ITS OWN pair, on the chat path and the Responses path alike; the OpenAI pair+ # is not read on the Responses path ("api_base not set for LiteLLM Proxy responses API").if job.get("api_key"):- env["OPENAI_API_KEY"] = str(job["api_key"])+ env["LITELLM_PROXY_API_KEY"] = str(job["api_key"])if job.get("base_url"):- env["OPENAI_BASE_URL"] = str(job["base_url"])+ env["LITELLM_PROXY_API_BASE"] = str(job["base_url"])# The SDK prints a multi-line banner to STDOUT on import, which is this driver's NDJSON channel# for the server's own process; off by its own switch rather than by filtering lines.env["OPENHANDS_SUPPRESS_BANNER"] = "1"diff --git a/runner/server.py b/runner/server.pyindex b4ad7c83..0a110877 100644--- a/runner/server.py+++ b/runner/server.py@@ -6104,14 +6104,22 @@ def _build_openhands(provider: str, auth: Auth, model: str, prompt: str, cwd: ststarts a server on loopback, drives ONE turn over its HTTP + WebSocket API and exits — the sameone-process-per-turn contract as every other backend, and the codex app-server precedent.- THE MODEL ID IS SENT WITH AN `openai/` PREFIX and the key rides the driver's environment rather- than the conversation. Both are forced by what the server persists: base_state.json carries the- whole LLM spec with `api_key: None`, so a key passed on the create call reaches the first turn- and nothing after it, and without an explicit provider litellm INFERS one from the base url —- which is how a relay url produced `Vercel_ai_gatewayException … set the VERCEL_AI_GATEWAY_API_KEY`- on a resumed turn. Every turn rides the loopback relay for the qwen reason: the real key never- enters the agent's environment and the provider's own `model` passes through for the- served-model check."""+ THE MODEL ID IS SENT WITH A `litellm_proxy/` PREFIX and the key rides the driver's environment+ rather than the conversation. Both are forced by what the server persists: base_state.json+ carries the whole LLM spec with `api_key: None`, so a key passed on the create call reaches the+ first turn and nothing after it, and without an explicit provider litellm INFERS one from the+ base url — which is how a relay url produced `Vercel_ai_gatewayException … set the+ VERCEL_AI_GATEWAY_API_KEY` on a resumed turn. The prefix was `openai/` until 2026-09-27, and+ that one is stripped TWICE on the way to the wire (OpenHands' LLM and litellm 1.94.3 each take+ one off): a provider-native id that itself starts with `openai/` (openai/gpt-6-sol, what every+ aggregator calls the OpenAI family) reached TokenRouter as the bare `gpt-6-sol`, which it refuses+ with 503 model_not_found; Vercel resolves the bare id, which is why the Vercel column passed.+ Measured against a loopback recorder in the openhands venv on hr-test: openai/openai/gpt-6-sol+ -> gpt-6-sol, litellm_proxy/openai/gpt-6-sol -> openai/gpt-6-sol, litellm_proxy/gpt-6-sol ->+ gpt-6-sol. litellm's proxy provider is the documented way to say "an OpenAI-shaped server, send+ the id as it is", which is what the relay is. Every turn rides the loopback relay for the qwen+ reason: the real key never enters the agent's environment and the provider's own `model` passes+ through for the served-model check."""pr = provider or "openai-api"if pr not in OPENHANDS_PROVIDERS:raise HTTPException(400,@@ -6127,12 +6135,18 @@ def _build_openhands(provider: str, auth: Auth, model: str, prompt: str, cwd: stdrop_fields=_OPENHANDS_DROP_FIELDS)auth = auth.model_copy(update={"base_url": relay_base, "api_key": relay_tok})# The relay token rides the turn's ENVIRONMENT as well as the job: _relay_served_model and- # _relay_usage find the turn's route by the placeholder bearer in env, and a token that lived- # only in the driver's argv left every openhands turn with no served model and no usage- # (measured: usage None on three turns whose provider calls the relay had counted).- env["OPENAI_API_KEY"] = auth.api_key or ""- env["OPENAI_BASE_URL"] = auth.base_url- job = {"cwd": cwd, "model": f"openai/{model}", "prompt": prompt,+ # _relay_usage find the turn's route by the placeholder bearer in env (any variable, they scan+ # the values), and a token that lived only in the driver's argv left every openhands turn with+ # no served model and no usage (measured: usage None on three turns whose provider calls the+ # relay had counted). The PAIR IS THE PROXY PROVIDER'S, because that is what litellm reads for+ # a `litellm_proxy/` id: its chat path falls back to OPENAI_BASE_URL / OPENAI_API_KEY, its+ # Responses path does not ("api_base not set for LiteLLM Proxy responses API", the first hosted+ # turn on gpt-5.4, whose api_mode resolves to responses), and nothing else in the stack reads+ # the OpenAI pair once the id carries the proxy prefix (measured in the openhands venv on+ # hr-test, 2026-09-27, both paths, each pair alone and both together). One pair, one reader.+ env["LITELLM_PROXY_API_KEY"] = auth.api_key or ""+ env["LITELLM_PROXY_API_BASE"] = auth.base_url+ job = {"cwd": cwd, "model": f"litellm_proxy/{model}", "prompt": prompt,"base_url": auth.base_url, "api_key": auth.api_key,"tools_disabled": list(tools_disabled or []),# Declared MCP servers reach the agent itself; a parameter accepted and then dropped isdiff --git a/runner/tests/test_openhands_backend.py b/runner/tests/test_openhands_backend.pyindex d8bd5339..6de3d4e9 100644--- a/runner/tests/test_openhands_backend.py+++ b/runner/tests/test_openhands_backend.py@@ -177,8 +177,27 @@ def test_the_relay_token_rides_the_turns_environment_so_the_served_model_and_usacmd = _build_openhands("openai-api", Auth(api_key="sk-real", base_url="https://up.example/v1"),"gpt-5.4", "hi", d, env)job = json.loads(cmd[-1])- assert env["OPENAI_API_KEY"].startswith("hr-relay-") and env["OPENAI_API_KEY"] == job["api_key"]- assert env["OPENAI_BASE_URL"] == job["base_url"]+ assert env["LITELLM_PROXY_API_KEY"].startswith("hr-relay-") and env["LITELLM_PROXY_API_KEY"] == job["api_key"]+ assert env["LITELLM_PROXY_API_BASE"] == job["base_url"]+ # the pair litellm reads for a litellm_proxy/ id on both its paths; the OpenAI pair is read by+ # nothing once the id carries that prefix (hr-test venv, 2026-09-27), so it is not set+ assert "OPENAI_API_KEY" not in env and "OPENAI_BASE_URL" not in env+++def test_the_model_id_rides_the_litellm_proxy_prefix_so_a_vendor_slug_survives_to_the_wire():+ """`openai/` was stripped twice between the job and the wire (OpenHands' LLM and litellm each+ take one off), so an aggregator's openai/gpt-6-sol reached TokenRouter as the bare id and was+ refused (503 model_not_found, the tokenrouter column of 2026-09-27). litellm's proxy prefix is+ taken off once and the rest is sent as it is, measured in the openhands venv on hr-test."""+ from server import Auth, _build_openhands+ for pid in ("openai/gpt-6-sol", "gpt-6-sol", "anthropic/claude-sonnet-5"):+ d = tempfile.mkdtemp(); env: dict = {}+ cmd = _build_openhands("tokenrouter", Auth(api_key="sk-real", base_url="https://api.tokenrouter.com/v1"),+ pid, "hi", d, env)+ job = json.loads(cmd[-1])+ assert job["model"] == f"litellm_proxy/{pid}"+ assert not job["model"].startswith("openai/")+ assert env["LITELLM_PROXY_API_BASE"] == job["base_url"] and env["LITELLM_PROXY_API_KEY"] == job["api_key"]def test_only_the_execution_status_update_sets_the_status():@@ -435,7 +454,7 @@ def test_the_field_litellm_invents_for_a_known_claude_id_never_reaches_the_provid = tempfile.mkdtemp(); env: dict = {}_build_openhands("openai-api", Auth(api_key="sk-real", base_url="https://api.anthropic.com"),"claude-haiku-4-5-20251001", "hi", d, env)- route = _HERMES_RELAY["routes"][env["OPENAI_API_KEY"]]+ route = _HERMES_RELAY["routes"][env["LITELLM_PROXY_API_KEY"]]assert route[2]["drop_fields"] == ("max_tokens",)diff --git a/ui/src/components/TaskChat.tsx b/ui/src/components/TaskChat.tsxindex 8988d3e7..5ed3f43f 100644--- a/ui/src/components/TaskChat.tsx+++ b/ui/src/components/TaskChat.tsx@@ -225,7 +225,7 @@ export function ConfigChat({ oob, ch, harnessId, harnessName, deepSid, onClearDeconst [draft, setDraft] = useState<CustomHarness | null>(ch);useEffect(() => setDraft(ch), [ch?.id]); // eslint-disable-line react-hooks/exhaustive-deps- useModelCatalog(); // server catalog is the source of truth for the picker+ const catalog = useModelCatalog(); // server catalog is the source of truth for the picker and the defaultconst models = oobModels(oob).length ? oobModels(oob) : oobModels(oobById(draft?.base || ''));// The safe fallback is the BACKEND DEFAULT (gpt-5.4 / sonnet-4.6), never models[0], the lists// lead with the newest/priciest entries (gpt-5.6-*, fable-5) and those must never be picked@@ -269,7 +269,10 @@ export function ConfigChat({ oob, ch, harnessId, harnessName, deepSid, onClearDe: ms.includes(dm.replace(/^claude-/, '')) ? dm.replace(/^claude-/, ''): (oobDefaultModel(base0) || dm);setModel(pick);- }, [harnessId, ch?.defaultModel, ch?.base, deepSid]); // eslint-disable-line react-hooks/exhaustive-deps+ // `catalog` is a dep so the pick follows the server's default the moment the catalog lands: the+ // placeholder default stands in for a second or two, and nothing can be picked in that window+ // (the options stay disabled until availability is read), so the re-sync clobbers no choice.+ }, [harnessId, ch?.defaultModel, ch?.base, deepSid, catalog]); // eslint-disable-line react-hooks/exhaustive-depsconst [recentsKey, setRecentsKey] = useState(0);// Realtime broadcast: subscribe ONCE per harness. Every session's live events flow into the convdiff --git a/ui/src/lib/harness.ts b/ui/src/lib/harness.tsindex c21c602b..3d787e9b 100644--- a/ui/src/lib/harness.ts+++ b/ui/src/lib/harness.ts@@ -70,39 +70,48 @@ export type HarnessPlugin = {skipped?: { path: string; reason: string }[];};+// Every models list and defaultModel below is the gateway's _MODEL_CATALOG for that backend+// (gateway/app.py), byte for byte; gateway/tests/test_console_placeholders.py fails the suite when+// they drift. They stand in only until the catalog read on page load lands (fetchModelCatalog),+// which then wins everywhere. On 2026-09-27 the placeholder defaults were older than the gateway's+// (codex and hermes on gpt-5.5, claude-code on claude-opus-4.8) and the helper put the placeholder+// ahead of the server's answer, so a fresh page could open on a model the gateway no longer+// defaults to; hosted found the same shape with entries that had no default at all and opened on+// the first entry of a list that leads with the newest and priciest ids. The default is data here,+// never the first entry.export const OOB: OobHarness[] = [{ id: 'codex', name: 'Codex', version: 'v1.0.1', backend: 'codex', status: 'ready',- models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2'], defaultModel: 'gpt-5.5', moreModels: 0,+ models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex', 'gpt-5.2'], defaultModel: 'gpt-5.4', moreModels: 0,systemPrompt: 'You are Codex, an autonomous software-engineering agent. You operate on a real git workspace with shell access, reading and editing files and running commands to complete the task, returning reviewable diffs and results.',tools: [], skills: [] },{ id: 'claude-code', name: 'Claude Code', version: 'v1.0.1', backend: 'claude', status: 'ready',- models: ['claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5'], defaultModel: 'claude-opus-4.8', moreModels: 0,+ models: ['claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5'], defaultModel: 'claude-sonnet-4.6', moreModels: 0,systemPrompt: 'You are Claude Code, an agentic coding assistant. You work on a real local git working tree with bash, edit files, run tests, and use sub-agents to complete engineering tasks end to end.',tools: [], skills: [] },{ id: 'hermes', name: 'Hermes', version: 'v0.19.0', backend: 'hermes', status: 'ready',// Multi-family: Hermes runs any frontier model, the gpt + claude catalogs, default gpt-5.5.- models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'kimi-k3', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super', 'glm-5.2'], defaultModel: 'gpt-5.5', moreModels: 0,+ models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex', 'gpt-5.2', 'claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'qwen3.7-flash', 'glm-5.3', 'glm-5.3-flash', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'hunyuan-3', 'minimax-m3', 'nemotron-3.5-lightning', 'nemotron-3-ultra', 'nemotron-3-super', 'ling-3.0-flash'], defaultModel: 'gpt-5.4', moreModels: 0,systemPrompt: 'You are Hermes, a self-improving autonomous agent. You work on a real project workspace with shell and file access, complete tasks end to end, and build a persistent memory and skill library from what you learn, getting more capable the longer you run.',tools: [], skills: [] },{ id: 'pi', name: 'Pi', version: 'v0.84.2', backend: 'pi', status: 'ready',// Multi-family like Hermes: the gpt + claude catalogs (placeholder until /v1/models lands).- models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'kimi-k3', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,+ models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex', 'gpt-5.2', 'claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'glm-5.3', 'glm-5.3-flash', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,systemPrompt: 'You are Pi, a minimal autonomous coding agent. You operate on a real git workspace, reading, writing and editing files and running bash to complete the task end to end.',tools: [], skills: [] },{ id: 'dsh', name: 'DeepSeek Harness', version: 'v0.1.0-rc.7', backend: 'dsh', status: 'ready',// Multi-family via dsh-llm-pi-ai (pi's LLM library as a dsh plugin); placeholder until /v1/models lands.- models: ['gpt-6-astra', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'claude-opus-4.8', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'deepseek-v4-pro', moreModels: 0,+ models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex', 'gpt-5.2', 'claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'glm-5.3', 'glm-5.3-flash', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'deepseek-v4-pro', moreModels: 0,systemPrompt: 'You are DeepSeek Harness, an autonomous coding agent. You work on a real git workspace, running shell commands and editing files to complete the task end to end.',tools: [], skills: [] },{ id: 'opencode', name: 'OpenCode', version: 'v1.18.23', backend: 'opencode', status: 'ready',// Multi-family, matching the server catalogue: opencode reaches models through the same// relays as pi, with the ai-sdk package chosen per turn from the model family.- models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex', 'gpt-5.2', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,+ models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex', 'gpt-5.2', 'claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'glm-5.3', 'glm-5.3-flash', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,systemPrompt: 'You are OpenCode, an autonomous coding agent. You work on a real git workspace with shell and file access, reading and editing files and running commands to complete the task end to end.',tools: [], skills: [] },{ id: 'qwen', name: 'Qwen Code', version: 'v0.22.1', backend: 'qwen', status: 'ready',// Same relay reach as pi/opencode; qwen family first since it is the backend's home family.- models: ['gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'qwen3.7-max', moreModels: 0,+ models: ['gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'glm-5.3', 'glm-5.3-flash', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'qwen3.7-max', moreModels: 0,systemPrompt: 'You are Qwen Code, an autonomous coding agent. You work on a real git workspace with shell and file access, reading and editing files and running commands to complete the task end to end.',tools: [], skills: [] },{ id: 'gemini', name: 'Gemini CLI', version: 'v0.58.0', backend: 'gemini', status: 'ready',@@ -118,12 +127,12 @@ export const OOB: OobHarness[] = [{ id: 'cline', name: 'Cline', version: 'v3.0.60', backend: 'cline', status: 'ready',// Placeholder only, like every list above: the gateway's catalog wins once fetched. Every// row completed a live substitution-checked turn through the gateway (2026-08-30 sweep).- models: ['gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,+ models: ['gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'glm-5.3', 'glm-5.3-flash', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,systemPrompt: 'You are Cline, an autonomous coding agent. You work on a real git workspace with shell and file access, reading and editing files and running commands to complete the task end to end.',tools: [], skills: [] },{ id: 'omp', name: 'Oh My Pi', version: 'v18.1.13', backend: 'omp', status: 'ready',// pi's lineage, pi's reach: the placeholder is pi's list; the gateway's catalog wins once fetched- models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.2', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'kimi-k3', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,+ models: ['gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex', 'gpt-5.2', 'claude-fable-5-1', 'claude-fable-5', 'claude-opus-5.5', 'claude-opus-5', 'claude-sonnet-5', 'claude-opus-4.8', 'claude-opus-4.7', 'claude-sonnet-4.6', 'claude-haiku-4.5', 'gemini-3.8-flash', 'gemini-3.7-flash', 'gemini-3.6-flash', 'gemini-3.5-flash', 'gemini-3.5-flash-lite', 'gemini-3.1-pro-preview', 'gemini-3.1-flash-lite', 'gemini-3-flash-preview', 'grok-4.6', 'grok-4.5', 'grok-4.3', 'grok-4.20', 'grok-build-0.1', 'muse-spark-1.3', 'muse-spark-1.2', 'muse-spark-1.1', 'muse-glimmer-30b', 'llama-4-maverick', 'llama-3.3-70b', 'deepseek-v4.1-flash', 'deepseek-v4-pro', 'deepseek-v4-flash', 'kimi-k3', 'kimi-k2.7-code', 'qwen3.8-max', 'qwen3.8-flash', 'qwen3.8-27b', 'qwen3.7-max', 'qwen3.7-plus', 'glm-5.3', 'glm-5.3-flash', 'mistral-medium-3.5', 'step-3.7-flash', 'hunyuan-4-preview', 'nemotron-3.5-lightning', 'nemotron-3-super'], defaultModel: 'gpt-5.4', moreModels: 0,systemPrompt: 'You are Oh My Pi (OMP), an autonomous coding agent. You operate on a real git workspace with shell, file access, LSP, web search, and subagents to complete engineering tasks end to end.',tools: [], skills: [] },{ id: 'goose', name: 'goose', version: 'v1.50.0', backend: 'goose', status: 'ready',@@ -266,7 +275,7 @@ export function modelAvailable(backend: string | null | undefined, id: string):export const oobDefaultModel = (o: OobHarness | null | undefined): string => {if (!o) return '';const fromServer = o.backend ? _catalog?.[o.backend]?.default : '';- return o.defaultModel || fromServer || oobModels(o)[0] || '';+ return fromServer || o.defaultModel || '';};export interface BaseTool { name: string; label: string; enforcement: 'hard' | 'instruction' }