Preface¶
When performing tasks in DSH Desktop that require screen capture, mouse/keyboard control, or long-running autonomous execution, the common practice is to manually set permissions to “Full Access” and choose “Never Ask” in the approval policy. However, switching sessions or forgetting to toggle can interrupt workflow with approval popups before tool calls. DSH also offers an auto option (no sandbox + review before every tool call, EXP). Yet when combined with “Never Ask,” a review rejection silently blocks all tool calls—even read-only commands fail.
This article introduces a community plugin, dsh-admin-mode (maintainer: wonderandyou, category: admin-security). It adds a dedicated “Admin” permission level that applies “Full Access + Never Ask,” and bundles the official computer use tool, control HUD prompts, and an autonomous iteration button, reducing repeated configuration and extra installation steps.
What This Is¶
dsh-admin-mode is a bundle plugin for DSH Desktop (Electron), current version 1.0.0 (MIT). Its core purpose: add a red, clearly warned “Admin” level to the input box’s permission menu, equivalent to danger-full-access and approval: never. It also injects the official @deepseek-ai/dsh-computer-use and @deepseek-ai/dsh-experimental-computer-use-cua-driver-native packages via bundle patch (version pinned to 0.2.1-rc.2, matching the DSH runtime), eliminating the need to install computer use plugins separately.
Admin Permission Level¶
Selecting “Admin” allows screen capture, mouse, keyboard, and any tools without approval popups, enabling continuous autonomous execution until the task finishes. danger-full-access means file and command execution are outside sandbox restrictions. The plugin labels a tokens warning in both the permission menu and two severe warnings, as this level usually consumes more tokens.
With this plugin, the permission menu provides four levels (the official auto level is hidden and not available):
View Only → Modify in Workspace → Full Access → Admin
Before switching to “Admin,” two severe warnings appear consecutively; each must be acknowledged by checking the confirmation box to continue.
Autonomous Iteration Button¶
The tool row above the input box provides a ↻ button (in wide windows it shows “↻ Iterate”). After filling in the “Iteration Direction” and “Iteration Count,” the AI can autonomously iterate continuously in that direction for N rounds, starting fresh each round until the count is exhausted. In narrow windows, it collapses into a ~26px circular button to save space.
Built-in Official Computer Use¶
The bundle patch directly inserts the two official npm packages mentioned above and injects a system prompt: when operating the computer, prefer using computer use tools to interact with the screen directly rather than scripting mouse/keyboard emulation.
Control HUD¶
During mouse operations, a message indicating “Controlling computer” appears at the end of the conversation stream; it automatically disappears when operations stop. The criterion: any mouse tool call refreshes the operation status; if there has been a mouse operation within 30 seconds, the HUD remains visible. Brief thinking between consecutive operations does not interrupt it. Press ESC to hide immediately and pause display for 3 seconds. Implementation uses front-end DOM and a read-only state route /admin-mode/hud, with no external dependencies.
Why the auto Level Is Hidden¶
The DSH official auto level is not shown in this plugin’s permission menu. The README explains: tests show auto + never results in review rejections becoming silent blocks, so all tool calls are stopped; using ask conflicts with the “Admin Never Ask” positioning. If the current session is in auto via commands like /permission auto, the button might still display that level’s name, but the menu does not offer a switching option.
Mouse Gating and Work Standards (v1.0.0)¶
Only the Admin Level Can Operate the Mouse (Host Side)¶
Mouse-related tools (e.g., click, double_click, right_click, drag, scroll, move_cursor, and browser clicks) are rejected by the Host-side tools.guard() when not in the Admin level; they neither prompt for approval nor execute.
Known limitation: the official computer use tools (cua_driver_native__*) go through an external MCP channel and, in tests, may bypass tools.guard(). The plugin provides diagnostic flags (mouseGuardRegistered, mouseGuardCalls, mouseGuardLast, mouseGuardDeny) to help verify whether the guard is called; thorough blocking at the MCP layer requires changes to the computer-use plugin and is outside this plugin’s scope. For mouse operations, switch to the “Admin” level.
Mouse Movement and Admin-Level Delivery Requirements¶
The system prompt requires: move the cursor using multiple move_cursor steps, each step no more than 1/6 of the screen width/height; typically 3–6 steps to reach the target. Do not jump directly to the target in one step and then click. Prefer computer use for clickable and scrollable operations; scripts should be reserved for file handling, builds, rendering, and other non-UI tasks.
Under the Admin level, README-listed work requirements include: actually running changes in a sandbox (clicks, input, screenshot verification); UI/animation/visual changes must be checked frame by frame; only when fully meeting requirements is the task considered complete; when producing output, open the containing folder on the platform and select the file (Windows example: explorer /select,<path>).
Delivery gate (mandatory): do not tell the user it’s usable until self-testing passes; UI/plugin changes must be confirmed after restart to ensure the chat box, input, send, permission menu, page loading, etc., all work. The plugin includes a UI self-check: the client probes the chat input area at 1.5s and 4s after load; if the composer is missing or has zero size, it trips a circuit breaker and POSTs /admin-mode/selftest, with results written to %TEMP%\dsh_admin_mode_diag.txt (uiSelfTest=ok/fail).
Installation and Activation¶
Requires DSH Desktop (Electron), with a runtime version compatible with computer use 0.2.1-rc.2. The materials do not provide a command like dsh plugin add github:.... If dsh plugin install returns profile "desktop" is managed exclusively by the Electron application, use manual installation.
Method A: Plugin Manager (Recommended, If DSH Has This Page)¶
- Extract the archive to obtain a
dsh-admin-mode/directory containingpackage.json. - Open the “Plugins” page on the left in DSH → Install local plugin → select that directory.
- Restart DSH.
Method B: Manual Installation (Windows)¶
- Extract to, for example,
D:\dsh-admin-mode\. - Edit
%USERPROFILE%\.dsh\profiles\<your-profile>\package.json(usuallydesktop). - Add to
dependencies:
"@local/dsh-admin-mode": "file:D:/dsh-admin-mode"
- Add
"@local/dsh-admin-mode"to thedsh.profile.bundlesarray. - Create a directory junction under
node_modules\@local\:
mklink /J "%USERPROFILE%\.dsh\profiles\desktop\node_modules\@local\dsh-admin-mode" "D:\dsh-admin-mode"
- Close and reopen DSH.
After successful installation: “Admin” appears in the permission menu; the tool row shows ↻; you can ask the AI to “open Notepad and write a sentence” to verify the screen HUD.
Uninstall: remove steps 3–5 from Method B and restart DSH.
Typical Usage¶
- In a trusted task scenario, choose “Admin” in the permission menu and complete both warning confirmations.
- For multi-round polishing in the same direction, use ↻ Iterate, filling in the direction and count.
- When relying on screen operations, describe the UI goals directly; the plugin guides the model to prefer computer use and displays control prompts in the message stream.
Use Cases and Cautions¶
Suitable for developers who need long-running, minimally interrupted desktop control and full access within DSH, and are willing to accept higher token usage and security risks. The plugin runs with the current DSH process privileges; the “Admin” level equals full file access with never-ask. Before installing, review the GitHub repository source and MIT license. The computer use component is an official experimental native driver running in the same process as DSH; native crashes may affect DSH. The control HUD is only visual feedback and does not change permission behavior.
The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community listing and has no official affiliation with DeepSeek or Hithink RoyalFlush.
Closing¶
dsh-admin-mode consolidates a high-risk permission level, the official computer use, iteration, and HUD into a single bundle, and explicitly hides the error-prone auto combination. For more information and to download the archive, see the directory page and GitHub:
- Directory page: https://www.skillhub.cn/plugins/wonderandyou/dsh-admin-mode
- GitHub: https://github.com/wonderandyou/dsh-admin-mode