developerdh/dsh-sandbox-allowlist ↗★ 8

dsh-sandbox-allowlist

DSH sandbox extension: configurable trusted writable roots outside the workspace, read restrictions, and capability-based command allow-listing for sandboxed CLI commands. 为 DSH 默认沙箱增加「沙箱授权目录」「禁读规则」与按能力类判定的「命令放行」规则。 适合需要精细化控制沙箱读写权限和命令行放行规则的安全管理任务。

Package
dsh-sandbox-allowlist
Compatibility
Unverified
Version
0.2.1-beta.1
License
MIT
Last updated
Oct 7, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:developerdh/dsh-sandbox-allowlist

配置速查

字段作用详情
allowedDirs工作区外受信可写目录,支持 ** / * / ? 通配指南 §1
commands.rules命令模式 + 动作;按序匹配、最后命中生效;复合命令逐段判定指南 §2
commands.default未命中规则时的默认动作:delegate / allow / ask / deny同上
commands.escalation沙箱升级自动放行(实验性):capability(默认)/ never同上
commands.baseline内置能力基线(默认开)同上
noRead禁读规则:文件名 / 完整路径 / 目录级三种形态,deny / ask指南 §3

完整语义(判定流程三层、硬约束、Auto review 委让、决策轨迹、场景示例、排障 速查)见 权限规则指南。