Adapt the consumers to the Host-only workspace model of the base branch: - sandbox-policy: a marked working-directory change, not an anchor, is the point that reads the entered root's Git layout again. - working-directory: keep recordedRootOf on the reworked service and its test doubles. - Tests that entered a checkout through relocate use set; tests that relied on a directory change inside the root append a change without the marker. - SDK documents and the upgrade guide state that the workspace-write boundary follows setWorkingDirectory and a Host-chosen child start directory, and that exit_worktree leaves a worktree.
DeepSeek Harness Python SDK
English | 中文
Python packages for driving DeepSeek Harness as a subprocess. The client SDK communicates with the bundled runtime over newline-delimited JSON-RPC on stdio.
Packages
| Directory | Dist / module | Role |
|---|---|---|
| sdk | deepseek-harness-sdk / deepseek_harness |
High-level turns API and lower-level JSON-RPC client |
| sdk-runtime | deepseek-harness-runtime-bin / deepseek_harness_runtime |
Bundled dsh CLI executable and native sidecars |
Behavior
The SDK starts the matching bundled dsh --profile sdk runtime unless the caller selects another dsh executable or profile. The runnable minimal example selects the shipped standalone sdk-minimal profile; the same runtime also packages dsh web and its frontend assets for separate CLI use. Every launch requires an explicitly selected Harness home; Python never silently reads ~/.dsh. The SDK reference and runtime carrier reference own runtime selection, profiles, patches, and external plugin management.
Contributor workflows
The Python contributor workflows cover building runtime artifacts, validating the packages, source-mode development, and distribution.