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
"""The turns feed names, per turn, the model the turn asked for (2026-09-06): the support matrix judges a
served-model substitution on the same turn, since a switch turn asks for another model on purpose."""
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
import app as gw # noqa: E402
def test_the_feed_carries_the_requested_model_per_turn():
src = Path(gw.__file__).read_text()
body = src[src.index("async def _session_turns_data"):][:8000]
assert '"model": rec.get("model") or None' in body
assert '"connection": rec.get("connection")' in body
def test_the_codex_switch_check_reads_the_model_the_feed_answers():
# The feed strips its private "_model" before it answers. The codex switch check's fallback (a
# session with no models_seen) read "_model", so it never found a model (2026-09-05 to 10-21).
src = Path(gw.__file__).read_text()
body = src[src.index("if not seen and resume:"):][:400]
assert 't.get("model")' in body and '"_model"' not in body