AI Agent Hub
Back to plugins
🧩

dsh-shield

admin-security Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install x2802490130-prog/dsh-shield

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

Install dsh-shield in DeepSeek Harness by running the following command (source: https://github.com/x2802490130-prog/dsh-shield): dsh plugin install x2802490130-prog/dsh-shield

About this plugin

Letting an agent free-run bash commands is terrifying because a single rm -rf is irreversible. dsh-shield fixes this without approval gates, popups, or slowdowns: it silently renames directory targets into a trash bin before the command executes, lets the command finish normally, and the agent feels nothing. Deleted something by mistake? Open the trash and restore it in one click.

Three core scenarios are covered. First, directory deletion: rm -r, rmdir, del /s, and fs-tool directory removals are all redirected to the trash via an instant same-volume rename before execution. Second, glob rescue: patterns like rm -rf dir/* trigger per-subitem salvage, resolving symbolic links to their real targets so actual content is preserved. Third, symlink protection: rm -rf link/ is rewritten to delete the link itself, never following it to the real content. The trash supports browsing, restoring, permanent deletion, and clearing, with automatic cleanup after 14 days or 5 GB. An optional system-trash mode is also available.

This plugin is built for developers who let agents execute shell commands autonomously in DSH. Instead of layering a human-in-the-loop approval step or staring at a terminal waiting for a dialog, you keep the agent at full speed while dsh-shield silently backstops every destructive path. Zero friction, full recoverability.

Use Cases

  • Prevent irreversible directory loss when an agent runs rm -rf without supervision
  • Salvage individual sub-items when glob patterns like dir/* trigger mass deletion
  • Protect real content behind symlinks so only the link itself is removed
  • Restore deleted files in one click without adding approval gates to the workflow

Best For

  • Developers letting agents execute shell commands autonomously in DSH
  • Teams that want full agent speed with a safety net for accidental deletion
  • Engineers working with bash, cmd, or fs tools who need reversible directory operations