dsh-computer-control: Converting Windows Desktop Operations into Discrete Tool Calls

Preface

DeepSeek Harness (DSH) is a plugin-centric model inference framework. This plugin, maintained by user baldovinmarques391-design, is designed to turn Windows desktop operations into a series of discrete tool calls. Each tool performs a single action and returns frame data captured before and after the action, relieving the model of the burden of memorizing screenshots.

Core Features

The plugin registers 11 tools under the tools service, with each tool performing a single action:

  • computer_probe: Reports screen geometry, pointer position/shape, and the window under the pointer.
  • computer_screenshot: Captures the screen or a rectangle, with optional integer scaling.
  • computer_move / computer_click / computer_drag / computer_scroll / computer_type / computer_key / computer_chord / computer_wait: Perform move, click, drag, scroll, type, key press, chord, and wait respectively; each returns frame data captured before and after the action.
  • computer_frames: Reads frame data recorded between two invocations, used to reconstruct action details.

Installation and Activation

Install with the following command, replacing <path-to-this-checkout> with the local path to the plugin directory:

dsh plugin --profile web add <path-to-this-checkout>

Plugin dependencies are provided by the harness; a local checkout usually does not include node_modules. Run tests with:

npm test

Usage Notes and Limitations

Concurrency and Serialization

All tools are not concurrency-safe; inputs are serialized by the registry. This means only one desktop input operation can be in effect at a time. computer_scroll rejects zero-wheel gestures.

computer_frames Mechanism

computer_frames is the only tool that does not perform new captures; it reads frame data recorded between two invocations from the recording ring. By default, maxAttachedImages is 2; frames exceeding this number are printed as paths and not returned as image attachments.

Functional Design

The plugin does not support long-press, repeat, macro, loop, or “run until” parameters. Each tool releases any keys or buttons pressed immediately after the call ends.

Configuration

Configuration is located in cordis.patch.yml. Key defaults are:

Parameter Default Description
capturesPerSecond 10 Capture rate of the recorder
maxFrames 2 Number of frames returned per invocation (1–20)
maxAttachedImages 2 Maximum number of attached images
settleMs 700 Additional capture time after an action completes
maxScrollClicks 10 Maximum steps for a scroll wheel gesture
maxDragSteps 120 Maximum drag steps
maxTypeChars 2000 Maximum characters for computer_type

Ecosystem Context

This plugin is part of the DeepSeek Harness community ecosystem. DeepSeek Harness does not accept external pull requests. Community plugins are discovered via the dsh-plugin topic on GitHub.

  • GitHub repository: https://github.com/baldovinmarques391-design/dsh-computer-control
  • Plugin directory: https://www.skillhub.cn/plugins/baldovinmarques391-design/dsh-computer-control
羽毛球分组比赛记分
小程序二维码

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

Xiaoye