dsh-agent-approval
Run the following command in DeepSeek Harness:
dsh plugin install MoonlitDropOfBlood/dsh-agent-approval
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install MoonlitDropOfBlood/dsh-agent-approval in the DeepSeek Harness terminal to install; the source code is available at https://github.com/MoonlitDropOfBlood/dsh-agent-approval
About this plugin
DeepSeek Harness ships with only two permission presets: every privilege escalation pops up a manual confirmation, or you grant danger-full-access and lose all runtime guardrails. For agent sessions that trigger sandbox retries constantly, both extremes are painful. dsh-agent-approval introduces a third mode in the /permission menu: the sandbox baseline stays at workspace-write, but escalation requests are no longer routed to a human popup. Instead, an ephemeral approval sub-agent adjudicates them in the background and rejects anything risky.
That approval agent is spawned fresh each time, holds zero tools, and reads only the workspace path, the most recent user message, the tool name, the stated rationale, and the exact tool-parameter JSON. It returns a structured verdict of {decision, riskLevel, rationale}. The bar is strict: destructive, irreversible, out-of-scope (including modifying the OS or other applications data), or a rationale that does not match the actual command means an immediate reject. Approval requires the operation to be safe, reversible, objectively aligned with the task, and honestly stated. If the approval agent fails to start, times out, or returns malformed output, the request is denied. Fail-closed by design, never silently passed. The settings page lets you pick the provider and model used for review and configure a timeout anywhere from 30 s to 600 s, while a local audit log retains the last 200 decisions with full rationale, tool parameters, and a traceable session ID for debugging.
Built for developers who run long agent tasks in the DSH Web UI, hit escalation prompts frequently, and want guardrails without constant human-in-the-loop interruptions or a blanket permission grant. Toggle it on with /agent-approval on, revert with /agent-approval off and the previous sandbox mode and approval policy are restored automatically. Sessions that never enable the feature remain completely unaffected, keeping multi-session parallel workflows zero-intrusion.
Use Cases
- Long-running agent tasks that trigger sandbox escalation prompts repeatedly, requiring automated background adjudication instead of manual confirmation each time
- Multi-session parallel workflows where sessions without the approval feature remain completely unaffected
- Audit trails for every escalation decision, including verdict, risk level, rationale, and exact tool parameters are all traceable
Best For
- Developers running long agent tasks in the DSH Web UI who hit escalation prompts frequently
- Workflow builders who want runtime safety guardrails without constant human-in-the-loop approval
- Security and compliance users who need auditable approval records and risk-level tracing
Related Plugins
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.
Packages all 87 SKILL.md files from upstream reverse-skill as a DeepSeek Harness plugin that auto-registers them for authorized reverse engineering, penetration testing, and security research.
Dockyard DSH is a native DeepSeek Harness plugin that unifies official OAuth/client sessions for Codex, Antigravity, Grok, Claude, and Cursor, providing account pool, model catalog, and quota status.