DeepSeek Harness 的 microsandbox 插件 bundle:把模型可见的 ctx.shell 替换为 Linux 微虚拟机 中的 bash -c 执行器,同时保留一个直接面向 ctx.sandbox seam 的 provider。
功能特性
- fail-closed:首次 confinement 前会探测 msb --version 和 msb doctor(检查宿主虚拟化前置条件);失败时缓存判决并抛出 SANDBOX_UNAVAILABLE,绝不退回未隔离执行。
- 执行期 runner 失败可识别:runnerFailureRules 按 msb 0.6.9 的真实 stderr 方言校准,覆盖镜像拉取、挂载路径、沙箱启动和无效配置错误。
- 默认 --no-net;可通过 allowNetwork: true 显式放开。
- 禁用官方 sandbox / bash-sandbox / pwsh-sandbox row
- 插入 sandbox-micro 与 shell-micro
- 全平台启用 tool-bash
安装命令
dsh plugin --profile web add github:omdsh-dev/dsh-sandbox-micro