dsh-testhud: Displaying Automation Test Progress over the Application Under Test

Introduction

When using DeepSeek Harness (DSH) to drive GUIs with agents, compare screenshots, or perform batch rendering, users often have to stare at the screen and wait: Which step is currently running? What is expected at this step? Has it failed? And more practically—is it safe to use the mouse and keyboard now? While terminal logs can be checked afterwards, it is difficult to tell at a glance during execution whether to “do not interrupt the test” or “you can take over.”

Introducing the community plugin dsh-testhud (maintainer yijiezhong): On macOS, it draws an always-on-top, click-through progress panel above the application under test, updated via the DSH tool test_hud and a CLI of the same name. The plugin is categorized as a client; the npm package version is 0.1.1, and the license is MIT.

What is this?

dsh-testhud is a client plugin for DSH: During automated testing, it displays the title, target, start time, and elapsed seconds in a screen corner (avoiding the window under test as much as possible), along with step-by-step expected vs. actual results (✓ / ✗ / ⏳ / •). A fixed banner runs across the top of the panel: “In Progress: Do not touch mouse/keyboard yet to avoid interrupting the test” (white text on red background #FF3B30) during execution, and “✓ Finished: You can now reclaim mouse and keyboard control” (black text on green background #34C759) after completion, using colors to directly indicate whether it is safe to operate input devices.

The panel does not steal focus: except for the top color band (which is draggable) and when content overflow requires scrolling, mouse events pass through; it does not appear in the Dock or ⌘Tab; the macOS-style traffic light buttons in the top left can close, collapse, or expand it up to the available area limit. The agent side reports via test_hud; Shell and CI can use the testhud subcommand to read and write to the same progress logic.

Core Features

Agent Tool test_hud

action Description Key Parameters
start Starts a run and pops up the panel title (required), target, anchor
step Reports a check step name (required), expect, actual, state: ok / fail / run / info
note Adds a line at the bottom text
done Writes a conclusion and finishes failed (boolean), conclusion
stop Closes the panel immediately —

The panel auto-sizes based on content; only the step list area scrolls, while the header remains fixed. After calling done, the panel disappears automatically after approximately 12 seconds to allow time to read the conclusion.

Conventions (The Rule in the README)

If verification is underway, the panel must be open: Do not “just run commands” without opening the HUD; between a series of runs, call start again after the previous done and before the next operation. After testing, call done, exit normally the application started for testing (do not use kill -9), and bring the browser or DSH window back to the foreground to avoid the tested application occupying the screen indefinitely.

CLI testhud

Shares the same progress file with the tool, facilitating scripts and CI:

testhud start "Movable toolbar layout" "Movable main window" [anchor]
testhud step  "toolbar is centred" "centre == window centre" "962pt, centred" ok
testhud note  "left to the user to decide"
testhud done  ok "3 of 3 checks passed"
testhud stop
testhud status

Optional Configuration

Plugin lines can be overridden in the profile’s cordis.patch.yml (example id is testhud):

- id: testhud
  config:
    announceToAgent: true     # Injects a short convention into every session: "Long tests should report on screen"
    defaultAnchor: auto       # auto | center | left | right
    topInset: 155             # Distance from the top of the screen to the top edge (pt); defaults to avoid areas like browser tab bars

Positioning priority (original order from sources): Try not to obscure the foreground application window → Center if there is no obstruction → Otherwise prefer left, then right. Vertical position defaults to 155 pt from the top of the screen (topInset); the CLI can override this with the environment variable DSH_TESTHUD_TOP_INSET.

Installation and Activation

The plugin must appear in the profile’s dsh.profile.bundles (dsh plugin add will write this). You can use dsh --profile <profile> --dump-config to confirm if the # == dsh-testhud layer marker appears; every session under this profile should provide the test_hud tool and related prompt conventions.

Installation methods provided in the official README:

dsh plugin --profile <profile> add github:yijiezhong/dsh-testhud   # straight from GitHub
dsh plugin --profile <profile> add link:/path/to/dsh-testhud       # from a local checkout
dsh plugin --profile <profile> add dsh-testhud                     # from npm (published as 0.1.1)

The Desktop application can install via the same method in plugin settings; its plugin manager supports hot-mounting new bundles. Profiles launched via CLI assemble the bundle list at startup, so generally, you need to restart the profile once unless your profile already supports live reload.

The package declares @deepseek-ai/dsh-tools as a peer dependency (approx. ~0.2.0-rc.2): The running DSH resolves the host’s built-in defineTool; if the host version is outside the declared range, the entire bundle will refuse to load rather than half-load.

Uninstallation example (README):

dsh plugin --profile web remove dsh-testhud

Runtime environment requires Node.js >= 20 (see engines in package.json).

Typical Usage

  1. Install the plugin in the target profile and confirm the dsh-testhud layer exists in dump-config.

  2. The agent calls test_hud start at the beginning of a long-running GUI verification, passing title and optional target, anchor.

  3. Every time a check is completed or performed, call step, filling in name, expect, actual, and state.

  4. Use note when supplementary explanation is needed; call done when everything is finished, setting failed and conclusion based on the result.

  5. Pure Shell workflows can switch to the testhud subcommand, with arguments and semantics corresponding to the above.

Use Cases and Notes

Best for: Workflows on macOS using DSH agents or scripts for GUI automation, screenshot comparison, batch rendering, etc., where “a human is waiting nearby”; requires on-screen level prompts of “Do not touch keys/mouse / You can take over” without obscuring the application under test itself.

Notes:

  • Both plugin keywords and behavior descriptions point to macOS; whether it is available on other systems is not specified in the materials, so please check the source code and runtime environment yourself before deployment.
  • DSH plugins run with current dsh process privileges; before installation, you should read the GitHub repository source code and the MIT license to ensure compliance with your security and compliance requirements.
  • The community directory SkillHub plugin page and GitHub are independent sources of information; SkillHub is a community plugin directory and has no official affiliation with DeepSeek / High-Flyer, and should not be treated as an official app store.

Conclusion

dsh-testhud places “what is being tested, how each step is doing, and whether keys/mouse can be used” into a read-only HUD above the application under test, and uses test_hud / testhud for unified driving, reducing uncertainty during long test waits. For further information, visit the directory page https://www.skillhub.cn/plugins/yijiezhong/dsh-testhud and the repository https://github.com/yijiezhong/dsh-testhud.

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

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

Xiaoye