The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(bench): update deepseek harness bundle configuration
Steven Enamakel627ca8b1c0d0
diff --git a/bench/harnesses/bundles/Dockerfile b/bench/harnesses/bundles/Dockerfileindex 11c70632a1..256a624b97 100644--- a/bench/harnesses/bundles/Dockerfile+++ b/bench/harnesses/bundles/Dockerfile@@ -51,3 +51,20 @@ RUN mkdir -p "$HOME" && curl -fsSL https://hermes-agent.nousresearch.com/install&& (/tmp/bench-home/.local/bin/hermes --version || true) \&& mv /tmp/bench-home /opt/harness/homeCOPY adapters/hermes.sh /opt/harness/adapter.sh++# DeepSeek Harness via its Python SDK (the documented headless path; the SDK+# bundles the native `dsh` runtime, so no system Node is needed). A uv-managed+# CPython lives in the bundle so it runs inside any task image, and the venv is+# built at the path it will run from. `deepseek-harness` runs the full `sdk`+# profile (filesystem tools + shell); the variant below runs `sdk-minimal`, the+# profile DeepSeek's BENCHMARK.md points at (a persistent shell only).+FROM base AS deepseek-harness+ARG DSH_SDK_VERSION+ENV UV_PYTHON_INSTALL_DIR=/opt/harness/python UV_CACHE_DIR=/tmp/uv-cache UV_UNMANAGED_INSTALL=/usr/local/bin+RUN curl -LsSf https://astral.sh/uv/install.sh | sh \+ && uv venv --python 3.12 /opt/harness/venv \+ && uv pip install --python /opt/harness/venv/bin/python "deepseek-harness-sdk==${DSH_SDK_VERSION}" \+ && /opt/harness/venv/bin/python -c "import deepseek_harness; print('dsh sdk ok')"+COPY adapters/deepseek-harness.sh /opt/harness/adapter.sh+COPY adapters/deepseek-harness-base.sh /opt/harness/deepseek-harness-base.sh+COPY dsh_run.py /opt/harness/dsh_run.pydiff --git a/bench/harnesses/bundles/adapters/deepseek-harness-base.sh b/bench/harnesses/bundles/adapters/deepseek-harness-base.shnew file mode 100755index 0000000000..f74f5c0609--- /dev/null+++ b/bench/harnesses/bundles/adapters/deepseek-harness-base.sh@@ -0,0 +1,9 @@+#!/usr/bin/env bash+. "$(dirname "$0")/_common.sh"+export DSH_HOME="$HOME/dsh-home"+mkdir -p "$DSH_HOME"+export DSH_PROFILE="${DSH_PROFILE:-sdk}"+# The SDK's direct DeepSeek adapter speaks OpenAI chat completions to this base URL.+export DEEPSEEK_API_KEY="$DUMMY_API_KEY"+export DEEPSEEK_BASE_URL="$PROXY_URL/v1"+exec /opt/harness/venv/bin/python /opt/harness/dsh_run.pydiff --git a/bench/harnesses/bundles/adapters/deepseek-harness-minimal.sh b/bench/harnesses/bundles/adapters/deepseek-harness-minimal.shnew file mode 100755index 0000000000..7bfaaa01ff--- /dev/null+++ b/bench/harnesses/bundles/adapters/deepseek-harness-minimal.sh@@ -0,0 +1,5 @@+#!/usr/bin/env bash+# The `sdk-minimal` profile: a persistent shell only, no filesystem tools. This is+# the profile DeepSeek's BENCHMARK.md prescribes, so it is reported next to the full one.+export DSH_PROFILE=sdk-minimal+exec "$(dirname "$0")/deepseek-harness-base.sh"diff --git a/bench/harnesses/bundles/adapters/deepseek-harness.sh b/bench/harnesses/bundles/adapters/deepseek-harness.shnew file mode 100755index 0000000000..f74f5c0609--- /dev/null+++ b/bench/harnesses/bundles/adapters/deepseek-harness.sh@@ -0,0 +1,9 @@+#!/usr/bin/env bash+. "$(dirname "$0")/_common.sh"+export DSH_HOME="$HOME/dsh-home"+mkdir -p "$DSH_HOME"+export DSH_PROFILE="${DSH_PROFILE:-sdk}"+# The SDK's direct DeepSeek adapter speaks OpenAI chat completions to this base URL.+export DEEPSEEK_API_KEY="$DUMMY_API_KEY"+export DEEPSEEK_BASE_URL="$PROXY_URL/v1"+exec /opt/harness/venv/bin/python /opt/harness/dsh_run.pydiff --git a/bench/harnesses/bundles/dsh_run.py b/bench/harnesses/bundles/dsh_run.pynew file mode 100644index 0000000000..cc7b542c8a--- /dev/null+++ b/bench/harnesses/bundles/dsh_run.py@@ -0,0 +1,34 @@+"""Run one DeepSeek Harness turn through the Python SDK and print the final response.++Env: DSH_HOME DSH_PROFILE (sdk | sdk-minimal) PROMPT_FILE BENCH_MODEL_DSH BENCH_REASONING+The model id sent here is DeepSeek's own name for the model; the metering proxy+rewrites it to the benchmark's pinned OpenRouter slug on the wire.+"""+import os+import sys+from pathlib import Path++from deepseek_harness import DeepSeekHarness++prompt = Path(os.environ["PROMPT_FILE"]).read_text()+kwargs = dict(+ provider="deepseek-official",+ model=os.environ.get("BENCH_MODEL_DSH", "deepseek-v4-flash"),+ cwd=str(Path.cwd().resolve()),+ dsh_home=str(Path(os.environ["DSH_HOME"]).resolve()),+ profile=os.environ.get("DSH_PROFILE", "sdk"),+)+effort = os.environ.get("BENCH_REASONING")+try:+ harness = DeepSeekHarness(reasoning_effort=effort, **kwargs) if effort else DeepSeekHarness(**kwargs)+ with harness as h:+ result = h.run(prompt, session_id="bench-1")+except Exception as error: # an unsupported effort is rejected at initialisation+ if effort and "effort" in str(error).lower():+ print(f"[dsh_run] effort {effort!r} rejected ({error}); retrying without it", file=sys.stderr)+ with DeepSeekHarness(**kwargs) as h:+ result = h.run(prompt, session_id="bench-1")+ else:+ raise+print(result.final_response)+print(f"[dsh_run] finish_reason={result.finish_reason}", file=sys.stderr)diff --git a/bench/harnesses/harnesses.lock b/bench/harnesses/harnesses.lockindex e0ec976872..ecf5315a5a 100644--- a/bench/harnesses/harnesses.lock+++ b/bench/harnesses/harnesses.lock@@ -7,4 +7,5 @@ CODEX_VERSION=0.159.3OPENCODE_VERSION=1.18.34OPENCLAW_VERSION=2026.9.7HERMES_VERSION=v2026.9.24+DSH_SDK_VERSION=0.1.5rc1# OpenHuman is built from this checkout (recorded in the report as its git SHA).