DeepSeek Harness (DSH) extends capabilities via plugins. Existing modes typically rely on API interfaces, which developers cannot directly call for GUI software that lacks native agent interfaces. This plugin introduces a fifth mode to the Harness, providing screenshot and mouse/keyboard control capabilities. It is designed to operate software without agent-oriented interfaces and to read information that exists solely on the screen.
Basic Information¶
- Plugin Name:
dsh-computer-use-mode - Owner: EvangeliMo
- License: MIT
- Core Features: Screenshot capture, mouse and keyboard synthesis, window control.
Installation and Enablement¶
Prerequisite: DeepSeek Harness Desktop is installed, and the runtime environment is Windows.
Method 1: Install from Harness Interface (Recommended)
Click “Add Plugin” on the plugin management page and enter the package name:
dsh-computer-use-mode
This package is published on npm. After installation, you must Restart Harness and select “Computer Operation Mode” when creating a new task.
Method 2: Local Installation via Clone
git clone https://github.com/EvangeliMo/dsh-computer-use-mode.git
cd dsh-computer-use-mode
powershell.exe -NoProfile -ExecutionPolicy Bypass -File install.ps1
This plugin declares no dependencies, so running npm install is unnecessary. The installation script automatically locates the profile and copies the plugin to the corresponding directory.
Core Features¶
This mode provides two tools:
computer: Used for single-step operations. Supported actions includescreenshot,screen_info,windows,focus_window,click,double_click,right_click,middle_click,move,drag,scroll,type,shortcut,key,cursor,sleep,waitForChange,waitUntilStable.computer_batch: Used for executing multi-step sequences. Each step can include wait operations such assleep, making it suitable for mechanical combinations like “Click -> Type -> Enter”.
Usage Examples¶
- Partial Area Screenshot: Capture a partial screen area via the
regionparameter, returning an image in native resolution. - Multi-tile Screenshot: Split a large area into up to 9 tiles at once via the
tilesparameter to reduce round-trip overhead. - Interface Stability Judgment: Use
waitForChangeandwaitUntilStableto continuously sample the screen, avoiding the need to guesssleepdurations to wait for UI changes.
Key Implementations and Constraints¶
- Windows Only: The plugin runs in the Windows environment.
- Must Restart Harness: The application must be restarted to load the new mode after installation.
- Zero Coordinate Conversion: The plugin operates in physical pixel space and does not rely on DPI for coordinate scaling. It explicitly returns
region,scale, andsizeinformation in the output. - Lossless JSON Output: Tool return values must be strict lossless JSON. The plugin sanitizes values such as
undefined,NaN, andInfinity; otherwise, the call will fail. - PNG Format Requirement: The PNG IDAT must be a zlib stream, not raw deflate.
- CommonJS Module: The entry file must be CommonJS to allow the host process to resolve dependencies.
- BOM Crash Issue: The
package.jsongenerated by the installation script strictly prohibits the inclusion of a UTF-8 BOM (EF BB BF), otherwise it will cause Harness to crash on startup. - Model Capability Validation: If the current model does not support image input, the plugin will refuse to take screenshots and report an error, rather than silently replacing them with text placeholders.
- Does Not Modify Installation Directory: The plugin is installed to the profile directory and does not touch the Harness program directory, so Harness upgrades will not invalidate the plugin.
Ecosystem Background¶
The philosophy of DeepSeek Harness is “Everything is a Plugin,” and the community directory provides independent plugin retrieval and publishing services.