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
fix(dsh): a mute runtime must not read as a hang, and absent MCP must say so
richard-epsillab50aeb48a5c8
diff --git a/gateway/app.py b/gateway/app.pyindex dfd32699..503e9131 100644--- a/gateway/app.py+++ b/gateway/app.py@@ -10894,6 +10894,9 @@ _BASE_CATALOG: dict[str, dict] = {},"dsh": {"label": "DeepSeek Harness", "backend": "dsh", "status": "ready",+ # MCP note: the pinned runtime wheel (0.1.0rc7) does not bundle dsh's MCP client yet,+ # so configured MCP servers are announced-and-skipped per turn (see dsh_driver.py).+ # The runner flips DSH_RUNTIME_HAS_MCP when the pin moves to a build that ships it."system_prompt": ("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."),diff --git a/runner/dsh_driver.py b/runner/dsh_driver.pyindex 8211e32b..0bb42662 100644--- a/runner/dsh_driver.py+++ b/runner/dsh_driver.py@@ -109,6 +109,14 @@ def _emit(method: str, payload) -> None:sys.stdout.flush()+# Whether the PINNED runtime wheel bundles @deepseek-ai/dsh-mcp-client. rc7 does NOT — the+# upstream sdk-runtime README already documents the plugin as bundled, but the wheel predates+# it: naming the entry makes the plugin tree fail, and a failed tree leaves the runtime alive+# with a mute stdout, which reads as a hang (measured: the initialize response simply never+# comes). Flip this when the wheel pin moves to a build that ships the plugin — and re-verify.+DSH_RUNTIME_HAS_MCP = False++def _compose_cordis(home: pathlib.Path, servers: list[dict]) -> str:"""Our runtime composition: the wheel's bundled default, with the SDK server entry swappedfor the resume-or-create subclass (see hr_dsh_server.cjs — packaged-bin loads@@ -166,9 +174,20 @@ def main() -> int:from deepseek_harness import DeepSeekHarness+ mcp = job.get("mcp_servers") or []+ if mcp and not DSH_RUNTIME_HAS_MCP:+ # The pi precedent: a capability the harness asked for but this build cannot provide is+ # SAID, and the turn still runs — a loud line beats a task wedged on a mute runtime.+ print("[dsh] MCP servers are configured on this harness, but the pinned DeepSeek Harness "+ "runtime (0.1.0rc7) does not bundle its MCP client yet — this turn runs without "+ "them. The next runtime pin restores them.", flush=True)+ mcp = []kwargs = dict(provider="deepseek-official", model=job["model"],cwd=cwd, session_root=str(sessions),- cordis=_compose_cordis(home, job.get("mcp_servers") or []))+ cordis=_compose_cordis(home, mcp),+ # A runtime whose plugin tree failed stays alive with a mute stdout; without a+ # bound the initialize request waits forever and the turn reads as a hang.+ request_timeout_seconds=180.0)sid = job.get("session_id") or None_emit("__hr_init", {"session_id": sid or "", "relay_port": srv.server_address[1]})with DeepSeekHarness(**kwargs) as h: