harness/deepseek¶
Configuration for DeepSeek Harness: the model endpoint (Agentgateway), the MCP server for sandboxed execution (OpenSandbox), the PowerContext plugin, and the demo task prompt.
Upstream has only pre-releases so far. versions.yaml pins the Python SDK
deepseek-harness-sdk==0.2.2rc2 and the runtime it bundles (owner decision, 2026-11-27):
the release that is actually in the request path. It is not the newest pre-release, and
it is not the release PowerContext v1.6.0 documents its plugin acceptance against,
which is the CLI 0.2.2-rc.1, the earlier pin (see
../../docs/compatibility.md, rows G8 and L17). That
mismatch is accepted and kept as a risk.
Placement: in the cluster, through the SDK¶
Decided by the owner on 2026-11-27. The demo application imports the Python SDK
(deepseek-harness-sdk==0.2.2rc2), which starts the bundled dsh runtime as a child
process in the application's pod and drives it over stdio JSON-RPC. What will live in
this directory: the SDK profile patch (model endpoint at Agentgateway; one MCP server,
Agentgateway's /mcp endpoint with a static key, behind which are the agent's three
tools; no shell or file tools; session-log upload off), the PowerContext plugin setup,
and the agent's system prompt. Until the three-act design the harness had two MCP
servers configured and reached them directly.
One runtime per job, with the job's trace context (owner decision for observability
variant V1, 2026-11-27). The patch is generated per job: the model provider and the MCP
server each get a traceparent header, which the runtime sends unchanged and the gateway
continues. Header values are fixed when a runtime starts, so each job has its own
(docs/compatibility.md, P1 to P6). What the probe of this had to use, and what it
means for the patch: the profile sdk, because the provider that accepts a base URL and
headers (llm-pi-ai) is not in sdk-minimal; sdk offers the model 34 tools, the
harness's own shell among them, so removing those is part of the patch still to be
written (P7).
Caveats recorded with the decision, to be checked on real hardware
(../../docs/demo.md, section 2;
../../docs/design.md, risks R18 to R21):
- That the runtime
0.2.2rc2is built from the tagdsh-v0.2.2-rc.2, whose documentation was read, is inferred (compatibility.md, L31, L34). - The PowerContext plugin was accepted against the CLI
0.2.2-rc.1only (G8); nothing covers the pinned SDK runtime (L17). Unknown until run. - Startup time and memory of the runtime are unknown (L32).
- The SDK's minimal profile includes a shell tool with full access; whether it can be removed is unknown (L33).
- The harness emits no trace spans and passes no trace context on (N44), so its model and tool calls are separate traces at the gateway.
- Whether it finds its tools under the names the gateway gives them has not been run (N16).
The section below describes the earlier design, in which a person drove the harness from a terminal on the MacBook. It is kept as the record of that design.
Reaching the cluster¶
The MacBook reaches the cluster with kubectl, using a kubeconfig fetched from the K3s
server. Management goes through the Kubernetes API, and the minimal profile has no
public LoadBalancer or ingress. Kubeconfig files are git-ignored and must never be
committed.
Assumption, not a confirmed decision: the harness reaches Agentgateway, PowerContext
and the OpenSandbox API through kubectl port-forward, so its endpoints are localhost
ports. This follows from "kubectl access" and has not been confirmed or tested. See
../../docs/architecture.md.
Status: planned. No configuration yet.