dsh-perm-gate
Run the following command in DeepSeek Harness:
dsh plugin install drscrewdriver/dsh-perm-gate
Paste the following prompt into your AI chat to install this plugin:
Install the plugin in DeepSeek Harness by running dsh plugin install drscrewdriver/dsh-perm-gate; the full source is available at https://github.com/drscrewdriver/dsh-perm-gate, and the permission gate tiers will appear in the picker once active.
About this plugin
DSH permission controls have historically been split across several plugins, each with its own version pinning and its own audit log. dsh-perm-gate collapses the gate, the approval seam, and an optional semantic classifier into a single deterministic package. Every tool call walks a fixed P0–P4 priority chain: P0 hard-denies credential material, protected-path mutations, and dangerous shell invocations, and that verdict can never be overridden by a grant, a rule, a classifier, or a human; P1 issues precise session grants with TTL and use-count limits; P2 applies a static rule chain where blacklist beats whitelist beats ask; P3 optionally consults an OpenAI-compatible LLM for semantic risk grading; P4 falls back to the official approval seam. The entire chain is fail-closed by default, so any anomaly blocks rather than permits.
Rule matching operates at the argv level, not the raw string. The engine recurses into sh -c and bash -c, detects pipelines, checks redirect targets, and recognises recursive or force flags such as rm -rf. A built-in ReDoS bound and a source-hash compile cache keep the pure-function rule engine safe and fast. Every decision is appended to a JSONL audit feed and surfaced in the browser as a notice strip above the conversation input plus an approval-records tab. The plugin also ships an independent Auto-review tier with two variants (permissive and permissive-full) that adjust approval granularity while keeping the fail-closed guarantee, and an opt-in local HTTP/CONNECT proxy that adjudicates shell-subprocess outbound traffic against the same rule file.
Ideal for individuals and teams running DeepSeek Harness who need fine-grained tool-call permission control, a single unified audit trail, and the option of LLM-assisted risk grading—without ever accepting a silent pass-through.
Use Cases
- DSH safety plugins are fragmented with version pinning; collapse them into one package
- LLM tool-call chains need deterministic layered adjudication that blocks on any anomaly
- Every permission decision must leave a traceable JSONL audit trail
Best For
- Individual DSH users who need fine-grained permission control
- Small teams wanting single-package maintenance and one unified audit feed
- Developers who want LLM-assisted grading but never accept a silent pass-through
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.