tancheng33/dsh-code-runtime-container0

dsh-code-runtime-container

Container-isolated backend for the DeepSeek Harness code-execution seam: Code Mode programs run in a fresh container with no network, a read-only rootfs, and kernel-enforced memory, CPU, and pid ceilings

包名
dsh-code-runtime-container
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tancheng33/dsh-code-runtime-container

Configuration

Every default is the restrictive one; a backend whose point is isolation must not be safe only after configuration.

KeyDefaultMeaning
dockerPathdockerContainer CLI. Anything argv-compatible with docker run.
imagenode:22-alpineNeeds a node on PATH and nothing else.
networknoneDocker network mode. The main reason to use this backend.
memory512mMemory ceiling; an overrun is an OOM kill reported as worker-exit.
cpus1Kernel-enforced CPU quota.
pidsLimit128Process ceiling: a fork bomb hits it, not the host.
user65534:65534nobody:nogroup. Empty uses the image default.
readOnlyRootfstrueRead-only root, with a tmpfs at /tmp.
tmpfsMb64Size of that tmpfs.
workspacePath''Absolute host path to mount at /workspace. Empty mounts nothing.
workspaceReadOnlytrueMount the workspace read-only.
extraArgs[]Extra docker run flags. An escape hatch that can weaken every default above.
maxWallMs120000Wall-clock ceiling for one run, including container start.
maxOutputBytes4194304Combined cap on logs plus completion value.

Programs that must read project files need a mount:

- id: code-runtime-container
  config:
    workspacePath: /Users/me/projects/app
    workspaceReadOnly: true
    # …restate the rest; a patch replaces a row's whole config