DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

yjjnls /

yjjnls/dsh-opensandbox

仅 Topic 仓库

OpenSandbox executor for DeepSeek Harness (DSH): run bash tool calls inside an OpenSandbox sandbox via execd

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: master@968459cb

dsh-opensandbox

OpenSandbox executor for DeepSeek Harness (DSH). Every bash tool call runs inside an OpenSandbox sandbox through its execd API — same commands, same tool cards, but the process runs on the sandbox side instead of the harness host.

agent ── bash tool ──→ ctx.shell ──→ dsh-opensandbox ──HTTP──→ execd (inside OpenSandbox)

What it is

dsh-opensandbox is an alternative implementation of the ctx.shell capability seam. It registers an executor that maps shell commands onto execd's command API:

  • POST /command (SSE) streams stdout/stderr; the sandbox enforces the request deadline server-side;
  • a deadline kill is reported as CommandTimeout and classified as timedOut;
  • caller aborts interrupt the run via DELETE /command?id=… and are classified as aborted;
  • X-EXECD-ACCESS-TOKEN is attached when the sandbox has secure access enabled.

Composition picks exactly one bash executor, so mount this instead of bash-local / bash-sandbox. The model-facing bash tool and background jobs work on top of it unchanged.

Install

dsh plugin --profile web add dsh-opensandbox

Then point it at your sandbox's execd endpoint in cordis.yml:

plugins:
  dsh-opensandbox:
    baseUrl: http://10.0.0.7:44772
    accessToken: <X-EXECD-ACCESS-TOKEN when secure access is on>
    cwd: /workspace
    timeoutMs: 120000
    maxTimeoutMs: 600000
    maxOutputBytes: 8388608

Configuration

Key Meaning
baseUrl execd base URL of the target sandbox (required)
accessToken X-EXECD-ACCESS-TOKEN value for sandboxes with secure access
cwd default working directory inside the sandbox; empty uses the sandbox's own default
timeoutMs default foreground timeout; the sandbox enforces it server-side
maxTimeoutMs upper bound for per-call timeout overrides
maxOutputBytes per-stream in-memory capture cap; overflow keeps the tail and flags truncation

Known limitations and deferred work

  • No stdin payloads: execd's command API takes shell text, so ShellExecRequest.stdin is rejected with a clear error; commands that need input use shell syntax (pipes or heredocs).
  • No terminals: spawnTerminal-style consumers are not served yet; the executor covers foreground and background command runs.
  • Output spill: truncation keeps an in-memory tail and flags lossy; spill files on the sandbox side are not exported.
  • One sandbox per executor instance: point baseUrl at the sandbox the composition should run in.

Development

pnpm install
pnpm run typecheck
pnpm run test
pnpm run build

License

Apache-2.0

—/ 5

暂无评分

需要先验证清单

Commit 968459cb06a0

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于