AI Agent Hub
Back to plugins
🧩

dsh-approval-guardian

admin-security Updated 2026.08.15

Run the following command in DeepSeek Harness:

dsh plugin install karuboniru/dsh-approval-guardian

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install karuboniru/dsh-approval-guardian in the DeepSeek Harness terminal to install the plugin; the source repository is https://github.com/karuboniru/dsh-approval-guardian. Restart DSH after installation to activate it.

About this plugin

Every time a DSH agent requests a wider sandbox, the Web/ACP surface pauses and waits for a human to click allow or deny. In CI pipelines, batch jobs, or any headless automation, that popup is a hard stop. dsh-approval-guardian narrows its intervention to exactly one trigger: a strict sandbox escalation emitted inside the current tool execution. Everything else — ordinary in-sandbox work, non-widening approvals, downstream failures — calls next() and flows straight through to DSH's original behavior, completely untouched.

When a qualifying escalation arrives, the plugin spawns a fresh one-shot reviewer agent with zero tools. It receives a bounded slice of session context, the exact tool arguments, and the escalation reason, then returns a structured allow or deny decision. The reviewer output is explicitly framed as untrusted data so it can never inject instructions back into the parent agent. The default failure mode is fail-closed: a timeout or schema-invalid response yields unavailable rather than silently opening the sandbox. An alternative fallback-to-user mode hands the request back to the interactive Web/ACP answerer. The plugin reads no files, writes no files, and makes no network calls beyond the single model-provider inference routed through DSH's existing model configuration.

It is built for users and teams who want a lightweight, explainable approval layer in front of sandbox escalation while keeping DSH's full approval stack intact. If your workflow runs agents unattended and you need a deterministic, auditable allow/deny gate with a safe fallback when the reviewer cannot run, this is the minimal piece to add. A single-line profile override disables it, and removing the plugin restores the interactive popup immediately.

Use Cases

  • In CI pipelines, the agent triggers a sandbox widening and the guardian auto-approves or denies without popping a human dialog.
  • During unattended batch runs, a fail-closed policy replaces the interactive approval so the workflow never blocks.
  • In audit-heavy environments, every sandbox escalation leaves an explainable, structured allow-or-deny trail.

Best For

  • Developers who run unattended DSH workflows and do not want a popup to interrupt the flow.
  • Teams that want a lightweight approval layer without replacing DSH's full approval stack.
  • Ops and security staff who care about auditable, explainable decisions on sandbox widenings.