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 names the thinking shape for a Claude model (#311)
github-actions[bot]86e6b3eacdb0
diff --git a/runner/openhands_driver.py b/runner/openhands_driver.pyindex 3ca05328..349c900d 100644--- a/runner/openhands_driver.py+++ b/runner/openhands_driver.py@@ -227,7 +227,16 @@ def _agent_spec(job: dict) -> dict:# still cover a blip. Persisted with the agent like the rest of the spec.spec: dict = {"llm": {"model": job["model"], "base_url": None, "usage_id": "harness","num_retries": 2, "retry_min_wait": 2, "retry_max_wait": 8,- "retry_multiplier": 2},+ "retry_multiplier": 2,+ # The SDK sends its reasoning effort to a Claude model as extended+ # thinking, and picks the shape from LiteLLM's model metadata; a model+ # served through the proxy under our own id has none, so the legacy+ # `thinking.type: enabled` went out and Anthropic refused every Claude+ # model in the catalog ("not supported for this model. Use adaptive and+ # output_config.effort", hosted, 2026-09-28). The override names the+ # shape Anthropic takes now.+ **({"capability_overrides": {"thinking_mode": "adaptive"}}+ if str(job["model"]).rsplit("/", 1)[-1].startswith("claude-") else {})},"tools": tools,# THE AGENT DOC IS CONTEXT, NOT A FILE THE MODEL MAY OR MAY NOT OPEN. The SDK# loads the workspace's AGENTS.md (and .agents/skills/) as repo skills only whendiff --git a/runner/tests/test_openhands_backend.py b/runner/tests/test_openhands_backend.pyindex 6de3d4e9..70aa2c26 100644--- a/runner/tests/test_openhands_backend.py+++ b/runner/tests/test_openhands_backend.py@@ -493,3 +493,14 @@ def test_a_file_editor_view_is_a_read_card():"action": {"kind": "FileEditorAction", "command": "create", "path": "/w/a.md", "file_text": "x"}}, {})assert call[0][1]["name"] == "Edit"+++def test_a_claude_model_is_told_its_thinking_shape_and_others_are_not():+ """Anthropic refused every Claude model behind the proxy with "thinking.type: enabled is not+ supported for this model. Use adaptive and output_config.effort" (hosted, 2026-09-28): the SDK+ reads the shape off LiteLLM's metadata, which knows nothing of a model served under our id.+ The spec names the shape for a Claude model and says nothing otherwise."""+ for m in ("litellm_proxy/claude-opus-5", "litellm_proxy/claude-sonnet-5", "claude-fable-5-1"):+ assert drv._agent_spec({"model": m})["llm"]["capability_overrides"] == {"thinking_mode": "adaptive"}, m+ for m in ("litellm_proxy/gpt-5.4", "openai/gpt-5.5", "deepseek-v4-pro", "kimi-k3"):+ assert "capability_overrides" not in drv._agent_spec({"model": m})["llm"], m