DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@goodandready/dsh-approval-gate

Approval Gate

仅限主机的 DeepSeek Harness 命令安全防护:阻止已识别的危险操作,并在无法检查命令时请求 DSH 批准。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:GooDAnDReaDY/dsh-approval-gate#4544496fb6f1408dc2f63da05979f28011ee5fb7
README兼容性版本

兼容性与来源证明

Approval Gate 以 @goodandready/dsh-approval-gate 发布,当前版本为 0.1.31。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/11/4

版本

0.1.31stable
2026/10/22
0.1.30stable
2026/10/19
0.1.29stable
2026/10/15
查看其余 26 个版本收起版本
0.1.28stable
2026/10/14
0.1.27stable
2026/10/12
0.1.26stable
2026/10/12
0.1.25stable
2026/10/12
0.1.24stable
2026/10/12
0.1.23stable
2026/10/12
0.1.22stable
2026/10/12
0.1.21stable
2026/10/12
0.1.20stable
2026/10/12
0.1.19stable
2026/10/12
0.1.18stable
2026/10/11
0.1.17stable
2026/10/10
0.1.16stable
2026/10/10
0.1.15stable
2026/10/10
0.1.14stable
2026/10/9
0.1.13stable
2026/10/8
0.1.12stable
2026/10/7
0.1.11stable
2026/10/7

相关插件

正在加载相关插件…

最新版
0.1.31
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
252
最近提交
2026/10/22
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
0.1.10stable
2026/10/2
0.1.9stable
2026/9/25
0.1.8stable
2026/9/24
0.1.7stable
2026/9/24
0.1.6stable
2026/9/24
0.1.5stable
2026/9/24
0.1.4stable
2026/9/20
0.1.3stable
2026/9/17

相关插件

继续浏览 security-access 分类下经过校验的插件。

Experimental Auto Review@deepseek-ai/dsh-experimental-auto-review针对每个工具的 LLM 授权审查,适用于 DeepSeek Harness Auto 权限预设Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。

README

📦 @goodandready/dsh-approval-gate

Last-line command gate for DeepSeek Harness

English · 中文说明 · Русский

⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.

🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.

Overview

DeepSeek Harness can still let an agent run a dangerous tool call when sandbox mode is loose. This host-only plugin registers a monotonic tools.guard and denies the call before the tool body runs.

Commands the guard cannot fully inspect are routed through DSH’s native approval flow. This plugin does not implement a separate approval word.

How it works

graph LR
  A[bash / file-write tool] --> B[dsh-approval-gate]
  B -->|known safe| C[tool runs]
  B -->|known dangerous| D[denial string]
  B -->|uncertain syntax or target| E[DSH approval request]

lib/inspect.js tokenizes the bash command (quotes, backslashes, pipelines, wrappers) and inspects the real argv. File-write tools are classified by path, not by regex over prose.

Architecture and modules

ModuleResponsibility
lib/index.jsRegisters the monotonic tools.guard and pre-execution approval hook; wires SecurityEngine into DSH.
lib/engine.jsCoordinates the 5-tier decision cascade (P0 Hard-Deny, P1 Grants, P2 Static, P3 LLM, P4 Ask).
lib/bands.jsFast two-band prefilter for critical hard-denials (Band 0) and zero-overhead safe inspections (Band 1).
lib/breaker.jsSession circuit breaker protecting against infinite agent retry loops upon security denials.
lib/grants.jsTemporary scoped session grant store with TTL and usage limits.
lib/canonical.jsCanonical serialization and hashing of tool execution calls.
lib/paths.jsPath normalization, home expansion, and symlink/traversal boundary verification via resolveSafePath.
lib/tokenizer.jsTokenizes bounded Bash syntax, tracks operators/heredocs, and extracts parameter/command substitutions.
lib/inspect.jsEvaluates safety rules, inspects command argv and expansions, and returns pass, deny, or ask decisions.
lib/inspect-env.jsInspects and prevents environment exfiltration, procfs reads, and secret dumping.
lib/redact.jsMasks sensitive credentials, authorization headers, and query tokens in audit messages and URLs.
lib/messages.jsProvides English, Simplified Chinese, and Russian rule names, contextual hints, and formatted messages.
cordis.patch.ymlDeclares the host-side plugin bundle and optional tool configuration.

The guard runs before the tool body. A recognized dangerous action is denied even if a prompt could otherwise be shown. Uncertain syntax or targets are sent to DSH approval; DSH policy still decides whether a prompt is available.

Coverage

CallResult
rm -rf /tmp/x, rm -Rf /tmp/x, sudo rm -r ...block
chmod/chown on .env / id_rsa, chmod -R 777 /block
source script.sh, . script.sh, source <(...)request DSH approval
mysql << EOF DROP TABLE..., echo DROP | mysqlblock
curl ... | python3, wget ... | nodeblock
writing to /etc/shadow, /etc/sudoers, authorized_keysblock
kill / pkill / killall as the commandblock
k''ill -9 1 (quoted fragments)block
systemctl restart|stop|disable ...block
systemctl is-active dsh-webpass
service name stop|restartblock
sqlite3 ... DROP/ALTER/...block
echo x > .env, tee/sed -i on secret filesblock
write/edit to .env, credentials.yaml, settings.yaml, cordis.patch.ymlblock
grep kill-all docs/, echo 'do not rm -rf'pass
python3 -c "print('rm -rf')"pass
$IFS, $(...), backticks, unclosed quotes, heredoc <<request DSH approval
bash -c "rm -rf /tmp/x"block (nested shell)
empty / missing commandpass (nothing to run)
non-string command

What it does not guarantee

  • It is not a full bash parser. Unknown or incomplete syntax requests approval; if approval is unavailable or approval=never is configured, DSH denies the call.
  • Interpreter -c/-e is not a second language parser. Nested bash -c is inspected.
  • Cron and systemd never pass through tools.guard.
  • A script file created earlier and then executed as bash ./run.sh is not opened and scanned.

Install

Install from the public npm registry:

dsh plugin --profile web add @goodandready/dsh-approval-gate@0.1.3

Keep the guard enabled in profiles that need command-safety protection.

Configuration

Optional fields on the Cordis patch entry:

FieldTypeDefaultMeaning
toolNamestringbashTool whose command argument is inspected
toolNamesstring[]["pwsh", "powershell", "bash"] on Windows, ["bash", "sh"] on POSIXShell tool names inspected by the gate (#192)
fileWriteToolsstring[]write, edit, Write, Edit, str_replace, apply_patchTools classified by path
workspaceDirstring"" (auto-detected via DSH_WORKSPACE, WORKSPACE_DIR or process.cwd())Workspace directory boundary for path traversal, snapshot confinement, and write isolation
uncertainPolicystring ("deny" | "allow")"deny"Policy for unparseable or uncertain commands; when set to "allow", safe unclassified commands pass with audit log instead of blocking in unattended mode (#192)
allowConfigEditsbooleanfalseWhen enabled, allows modifying cordis.patch.yml and settings.yaml (while keeping credentials and SSH keys strictly protected) (#192)
protectedPathsstring[][]Custom path patterns that are protected from write operations (#192)

Example Cordis patch configuration:

- insert:
    - id: dsh-approval-gate
      name: @goodandready/dsh-approval-gate
      config:
        toolName: bash
        fileWriteTools:
          - write
          - edit
          - Write
          - Edit
          - str_replace
          - apply_patch

HTTP routes and CLI

The plugin adds no HTTP routes and no standalone CLI. Install and remove it through the DSH plugin CLI. The plugin only guards supported DSH tool calls; it is not an operating-system sandbox.

License

MIT © GooDAnDReaDY

Changes in v0.1.3

This is the first public npmjs release under the canonical @goodandready/dsh-approval-gate identity.

Changed in v0.1.3: earlier internal instructions described a separate operator confirmation word. The public package routes uncertain commands through DSH native approval and does not define its own word. Earlier builds used internal distribution; new installs use the public npmjs identity.

This release adds bounded shell syntax analysis and routes uncertain cases through DSH approval while preserving denies for recognized destructive operations and protected-file writes.

The shell analyzer now understands command substitutions, backticks, process substitutions, common redirects including 2> and &>, pipelines, and here-documents. It recursively checks nested shell commands and executable expansions. Ordinary safe reads can pass. Shell-expanded authorization headers request approval because curl receives the credential as a process argument. This package does not provide a credential-safe API helper; keep tokenized API calls out of command-line arguments.

The locale service is optional; the security hooks remain active with English fallback messages when it is unavailable.

Recognized destructive commands and writes to protected files remain denied. This includes recursive rm, process signals, service stop/restart operations, destructive SQL, protected-file writes, git reset --hard, forced git clean, mkfs, device-targeted dd, and downloaded content piped to a shell.

Unsupported or incomplete syntax, dynamic command names or redirect targets, and script files whose contents cannot be inspected request approval through DSH. If approval is unavailable or approval=never is configured, DSH rejects the request. The plugin does not read script files or implement a separate approval word. Messages identify the rule and include a redacted excerpt. This is a bounded shell analyzer, not a complete Bash grammar.

block (unknown format)