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.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@goodandready/dsh-approval-gate

Approval Gate

Host-only command safety gate for DeepSeek Harness: blocks recognized dangerous operations and requests DSH approval when a command cannot be inspected.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:GooDAnDReaDY/dsh-approval-gate#4544496fb6f1408dc2f63da05979f28011ee5fb7
READMECompatibilityVersions

Compatibility and provenance

Approval Gate is published as @goodandready/dsh-approval-gate and currently resolves to version 0.1.31. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
11/4/2026

Versions

0.1.31stable
10/22/2026
0.1.30stable
10/19/2026
0.1.29stable
10/15/2026
Show 26 more versionsCollapse versions
0.1.28stable
10/14/2026
0.1.27stable
10/12/2026
0.1.26stable
10/12/2026
0.1.25stable
10/12/2026
0.1.24stable
10/12/2026
0.1.23stable
10/12/2026
0.1.22stable
10/12/2026
0.1.21stable
10/12/2026
0.1.20stable
10/12/2026
0.1.19stable
10/12/2026
0.1.18stable
10/11/2026
0.1.17stable
10/10/2026
0.1.16stable
10/10/2026
0.1.15stable
10/10/2026
0.1.14stable
10/9/2026
0.1.13stable
10/8/2026
0.1.12stable
10/7/2026
0.1.11stable
10/7/2026

Related plugins

Loading related plugins…

Latest
0.1.31
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
252
Last push
10/22/2026
View source ↗Project homepage ↗
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
0.1.10stable
10/2/2026
0.1.9stable
9/25/2026
0.1.8stable
9/24/2026
0.1.7stable
9/24/2026
0.1.6stable
9/24/2026
0.1.5stable
9/24/2026
0.1.4stable
9/20/2026
0.1.3stable
9/17/2026

Related plugins

More verified plugins in security-access.

Experimental Auto Review@deepseek-ai/dsh-experimental-auto-reviewPer-tool LLM authorization review for the DeepSeek Harness Auto permission presetCc Safety Netcc-safety-netA coding agent CLI hook - block destructive commands and secret file accessDoctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).

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)