dsh-approval-gate: DeepSeek Harness Command Approval and Blocking Plugin

`dsh-approval-gate` is a native command approval plugin for DeepSeek Harness maintained by GooDAnDReaY, designed to ensure security by intercepting tool calls. It requires enabling in the profile after installation. By registering with `tools.guard`, the plugin leverages a two-stage pre-filtering mechanism to block commands (such as `rm -rf` or sensitive file writes) and route dangerous operations. It supports safeguards for configuration file writing tools and environment variables, as well as a circuit breaker mechanism. Commands that cannot be fully parsed are routed to the native approval flow. The plugin intercepts DSH tools exclusively and does not handle cron or systemd, making it suitable for scenarios requiring a lightweight command security layer.

Read More
DSH-Approval-Gate: DeepSeek Harness Automatic Approval Gating Plugin

dsh-approval-gate is an MIT-licensed plugin for DeepSeek Harness, designed to balance the efficiency of automated approval with security. It leverages Flash models to perform risk pre-assessment on sandbox escape operations, categorizing them into SAFE and RISKY types. For reversible, low-risk operations, the plugin uses a confirmation-based learning mechanism to automatically approve them, reducing repetitive manual confirmations. For the five categories of hard-risk operations—deletions, credential handling, remote/production environments, system paths, and irreversible batch operations—it always routes to manual confirmation to ensure critical security. The plugin provides a manual review UI to display the approval timeline and supports hot-reloading of configurations. Version v0.5.0 introduces file change comparison and one-click revert functionality, allowing users to view unified diffs and restore files based on session snapshots. Users need to install it via the command line.

Read More