Preface¶
While an agent can correctly verify operations within a terminal, users often cannot manually reproduce them due to the lack of a graphical interface operation path and record. Simply telling the user to “run the script” does not solve this problem; it leaves a black box that cannot be learned from and fails when moving to another machine.
The DSH plugin dsh-gui-handoff aims to bridge this gap by handing over command-line verified operations to the graphical user interface (GUI).
What is this¶
This is a DeepSeek Harness skill plugin whose core function is to hand over command-line verified operations to the GUI.
- Maintainer: xxszyh
- Category: Workflow
- License: MIT
Core Functions¶
The plugin provides two paths, defaulting to B and falling back to A.
Path B (Default):
* Approach: The agent actually operates the GUI through the process.
* Output: Generates a tutorial with real screenshots.
* Value: Users can learn the operation flow, and it supports cross-machine viability.
Path A (Fallback):
* Approach: Solidifies steps into configuration files.
* Output: Configuration files + one-click operations.
* Limitation: Users cannot learn, and it is unavailable when switching machines.
Path B runs a five-stage chain: Drive → Observe → Capture → Replay → Annotate.
The plugin incorporates 30+ hard constraints and 7 working disciplines to ensure the reproducibility and correctness of operations. The verification phase uses ground truth (e.g., artifact existence + timestamps, program output, or debugger exit codes); screenshots are used only to assist humans and are not used as criteria for judgment.
Installation and Activation¶
Install the plugin using the following command. The plugin registers the skill name as gui-handoff with a priority of 600 (lowest), so locally modified copies will take precedence over the repository copy.
dsh plugin --profile <your-profile> add dsh-gui-handoff
You can also install from a local directory:
dsh plugin --profile <your-profile> add /path/to/dsh-gui-handoff
Typical Usage¶
Once enabled, the agent can execute the five-stage chain of Path B. If the current environment lacks the means to drive the target OS GUI (a reference implementation is provided for Windows), the plugin will automatically degrade.
The example logic is as follows:
- Path B runs the five-stage chain: Drive → Observe → Capture → Replay → Annotate.
- The agent drives the GUI once, generates a tutorial with real screenshots, and verifies that the user can reproduce it.
Use Cases and Notes¶
- Version Requirement: Requires DeepSeek Harness
>= 0.1.5-rc.1. - System Dependencies: The driving phase of Path B requires some means to drive the graphical interface of the target system. This repository provides a reference implementation for Windows (
tools/gui-control/server.py). If running on other systems, you need to implement the corresponding GUI driving logic yourself; otherwise, the plugin will degrade to Path A. - File Description: The
tools/directory is a reference implementation for Windows and is not a requirement for the plugin to run. - Permissions and Security: The plugin runs with the permissions of the DSH process. Please check the source code and license before installation.
Conclusion¶
By driving the GUI once and generating a tutorial with real screenshots, this plugin solves the disconnect between command-line verification and GUI operations, ensuring learnability and cross-machine availability.
- GitHub: https://github.com/xxszyh/dsh-gui-handoff
- Community Directory: https://www.skillhub.cn/plugins/xxszyh/dsh-gui-handoff