DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Sandbox Micro — DSH Plugin for DeepSeek Harness
← Plugins
S

@deepseek-ai/dsh-sandbox-micro

Sandbox Micro

DSH microsandbox bundle: Linux microVM shell executor and ctx.sandbox provider (msb run) with workdir/env preservation, fail-closed probing, and shell-free argv construction

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:omdsh-dev/dsh-sandbox-micro#31cbb2f2c33231a1fcff9ffc5ee09ea2388ce369
READMECompatibilityVersions

Compatibility and provenance

Sandbox Micro is published as @deepseek-ai/dsh-sandbox-micro and currently resolves to version 0.0.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
8/20/2026

Versions

0.0.1
stable
8/20/2026

Related plugins

Loading related plugins…

Latest
0.0.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
8/28/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consoleMobiledsh-mobileDeepSeek Harness mobile adaptation and secure access plugin, supporting LAN, remote connections, Android App, and mobile browsers.DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Auto Reviewdsh-auto-reviewSecond-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.

README

dsh-sandbox-micro

English

DeepSeek Harness 的 microsandbox 插件 bundle:把模型可见的 ctx.shell 替换为 Linux 微虚拟机 中的 bash -c 执行器,同时保留一个直接面向 ctx.sandbox seam 的 provider。

安全模型

  • 不使用 cmd.exe 或其他 shell 包装不可信 argv。Windows 上历史实现通过 cmd /c 启动 npm .CMD shim,会让模型命令中的 & / 引号 / %VAR% 被宿主机 shell 解析。本插件改为直接运行 microsandbox 依赖自带的 Node shim(node .../bin/microsandbox.cjs),并显式拒绝 .CMD / .BAT 覆盖路径。
  • fail-closed:首次 confinement 前会探测 msb --version 和 msb doctor(检查宿主虚拟化前置条件);失败时缓存判决并抛出 SANDBOX_UNAVAILABLE,绝不退回未隔离执行。
  • 执行期 runner 失败可识别:runnerFailureRules 按 msb 0.6.9 的真实 stderr 方言校准,覆盖镜像拉取、挂载路径、沙箱启动和无效配置错误。
  • 默认 --no-net;可通过 allowNetwork: true 显式放开。

架构

这个包暴露两个 Cordis 入口:

入口服务用途
@deepseek-ai/dsh-sandbox-microctx.sandbox直接调用 SandboxProvider.confine() 的兼容 provider。seam 不携带 env/cwd,因此 guest 固定为 /work
@deepseek-ai/dsh-sandbox-micro/shellctx.shell模型 shell 工具实际使用的执行器。它能看到完整 ShellExecSpec,会映射 workdir 到 /work/<sub>,并通过 -e KEY=VALUE 转发 ENV_OVERRIDES、spec.env 与 DSH_*

cordis.patch.yml 会:

  • 禁用官方 sandbox / bash-sandbox / pwsh-sandbox row
  • 插入 sandbox-micro 与 shell-micro
  • 全平台启用 tool-bash
  • 禁用 tool-pwsh(其 PowerShell 方言无法运行在 Debian guest 中)

前置条件

  • Node ^22.19.0 || >=24.0.0
  • microsandbox 0.6.9+(已作为 dependency 随包安装)
  • Windows:Windows Hypervisor Platform;Linux/macOS:msb 支持的本地后端
  • 镜像必须包含被包装的程序;默认 debian 包含 bash 与常用 coreutils

安装

Profile Bundle(推荐)

dsh plugin --profile web add github:omdsh-dev/dsh-sandbox-micro
dsh plugin --profile headless add github:omdsh-dev/dsh-sandbox-micro

包内 dsh.bundle.patch 会在安装后自动加入 profile layer stack。

本地 tarball

npm pack
dsh plugin --profile web add ./deepseek-ai-dsh-sandbox-micro-0.0.1.tgz

验证

dsh --profile web --dump-config | grep -E 'sandbox-micro|shell-micro'
dsh run "运行 bash 命令验证"

配置

shell-micro 继承 dsh-bash-local 的全部字段,并增加:

字段默认值说明
imagedebianguest 使用的 OCI 镜像
memory512MVM 内存
msbPath""可执行文件覆盖;留空使用内置 microsandbox Node shim
timeout未设置msb run --timeout,例如 60s
extraFlags[]追加的 msb run flag,例如 ["--cpus", "2"]
allowNetworkfalsetrue 时移除 --no-net
probedoctor启动探测级别:doctor 或 version

sandbox-micro 使用同一组 microsandbox 字段。

策略映射

Sandbox modeguest 文件效果网络
read-onlyworkspace 以 :ro 挂载到 /work默认关闭
workspace-writeworkspace 以读写挂载到 /work默认关闭
danger-full-access不进入 VM(由调用方直通)—

已知边界

  • guest 根文件系统、/tmp 是每次命令独立的可写层,退出后丢弃;策略语义针对宿主机文件效果。
  • ShellExecSpec.workdir 必须在 sandboxPolicy.workspaceRoot 内,否则拒绝执行。
  • 只提供 bash shell;PowerShell 工具由 patch 禁用。
  • 模型可见文件路径从宿主机路径切换为 Linux /work 视图;文件工具仍在宿主机路径上工作,二者通过 workspace mount 保持一致。

测试

npm run check       # typecheck + 单元测试 + build
npm run test:e2e    # 可选:真实启动 microVM 的冒烟测试

许可

MIT