AI Agent Hub
Back to plugins
🧩

dsh-gamepad-approval

admin-security Updated 2026.08.30

Run the following command in DeepSeek Harness:

dsh plugin install goldgish/dsh-gamepad-approval

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

Run dsh plugin install goldgish/dsh-gamepad-approval inside DeepSeek Harness to install the gamepad approval plugin; the source repository is at https://github.com/goldgish/dsh-gamepad-approval

About this plugin

When an AI Agent executes high-risk commands like rm -rf, git push --force, or disk formatting on your behalf, the approval step is often the weakest link in the security chain. A software-level dialog can be spoofed by same-privilege malicious code, keyboard confirmation can be captured by a keylogger, and remote desktop sessions can simulate clicks. An attacker does not even need your password; injecting a fake event at the software layer is enough.\n\ndsh-gamepad-approval moves that approval step from the software layer to the physical layer. When the Agent triggers a high-risk command, your Xbox-compatible gamepad buzzes twice: press A to approve, B to deny. The signal travels over the XInput protocol read directly via PowerShell, bypassing the browser, the network, and the keyboard entirely. Eighteen built-in permission rules cover file deletion, system shutdown, disk operations, database destruction, Git destructive actions, and key access, graded from critical to medium. The design follows a fail-closed principle: no controller, timeout, or disconnection means automatic rejection. After approval the command still passes through every built-in dsh security policy, so no other defenses are bypassed.\n\nThis plugin is ideal for developers running Agents inside DeepSeek Harness with system-level command privileges, or anyone who wants the approval action performed by a human physically present with a controller in hand. It takes effect immediately after installation; when no controller is connected, only high-risk commands are blocked while everyday operations continue as usual. Any XInput-compatible PC gamepad works.

Use Cases

  • Trigger a gamepad buzz and require a physical A or B press before the Agent executes critical commands like rm -rf or disk formatting
  • Prevent spoofed approval signals from keyloggers, remote desktop sessions, or malicious scripts at the software layer
  • Review and approve each dangerous operation one by one when multiple Agents run in parallel

Best For

  • Developers running Agents with system-level command privileges inside DeepSeek Harness
  • Security-conscious users who require a tamper-evident approval loop for every AI action
  • End users in shared or remote-desktop environments who insist on physical, in-person approval