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