DeepSeek Harness: Computer Use Mode

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:

  1. computer: Used for single-step operations. Supported actions include screenshot, screen_info, windows, focus_window, click, double_click, right_click, middle_click, move, drag, scroll, type, shortcut, key, cursor, sleep, waitForChange, waitUntilStable.
  2. computer_batch: Used for executing multi-step sequences. Each step can include wait operations such as sleep, making it suitable for mechanical combinations like “Click -> Type -> Enter”.

Usage Examples

  • Partial Area Screenshot: Capture a partial screen area via the region parameter, returning an image in native resolution.
  • Multi-tile Screenshot: Split a large area into up to 9 tiles at once via the tiles parameter to reduce round-trip overhead.
  • Interface Stability Judgment: Use waitForChange and waitUntilStable to continuously sample the screen, avoiding the need to guess sleep durations to wait for UI changes.

Key Implementations and Constraints

  1. Windows Only: The plugin runs in the Windows environment.
  2. Must Restart Harness: The application must be restarted to load the new mode after installation.
  3. Zero Coordinate Conversion: The plugin operates in physical pixel space and does not rely on DPI for coordinate scaling. It explicitly returns region, scale, and size information in the output.
  4. Lossless JSON Output: Tool return values must be strict lossless JSON. The plugin sanitizes values such as undefined, NaN, and Infinity; otherwise, the call will fail.
  5. PNG Format Requirement: The PNG IDAT must be a zlib stream, not raw deflate.
  6. CommonJS Module: The entry file must be CommonJS to allow the host process to resolve dependencies.
  7. BOM Crash Issue: The package.json generated 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.
  8. 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.
  9. 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.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye