dsh-see-act: Giving DSH's Screen Viewer a Pair of Hands That Can Actually Do Things

Introduction

DeepSeek Harness (DSH)’s dsh-see-now can keep watching the screen, but it only handles the “seeing” part — it doesn’t “click.” real_* (from dsh-plugin-real-input) can click, but every action is an independent screenshot + an independent cursor operation, meaning the model needs three or four round trips just to confirm whether a button was actually hit. dsh-see-act merges these two tasks into a single call, so the model can simultaneously see “where I’m about to click” and “what the screen looks like after the click.”

What Is This

dsh-see-act is a DSH workflow plugin maintained by cloudylapis. Its core value: within a single call, it completes “screenshot + real mouse/keyboard action + screenshot,” collapsing the 3-round trip of “screenshot → view → click → screenshot → view → decide” into 1 round. The returned result includes two annotated frames (before and after) along with a textual conclusion, such as changed=0 or no change.

Core Features

dsh-see-act provides four tools:

  1. see_look: Immediately captures an annotated frame with grid / crosshair / floating-window border / 3× inset. Non-blocking. Typical latency ~1.7 s.
  2. see_zoom: Magnifies the 1:1 pixels around a point by 2–4× for reading small text. Typical latency ~1.3 s.
  3. see_act: Performs a real click / drag / scroll / type / key / wait / window-focus, returning before+after. Typical latency ~2.3 s (includes a 200 ms settle, two images, and an inset).
  4. see_stop: Brake. stop writes a flag that makes the next see_act refuse to act; clear releases it; status reports the current state. Typical latency <0.1 s (status probes the screen, ~1 s).

The do parameter of see_act accepts: click, double, right, middle, move, scroll, drag, type, key, wait, focus.

Coordinates support three forms:
- { "nx": 0.3, "ny": 0.5 } — Frame-normalized, 0 = left/top, 1 = right/bottom (default).
- { "x": 1204, "y": 860 } — Physical screen pixels (virtual desktop coordinates in a multi-monitor setup).
- { "cell": "3,7" } — Center of the 8th cell in row 4 of the 0.1 grid on the image.

The text embedded in each frame includes: monitor number, resolution, DPR, post-scale resolution, and physical coordinates (e.g., done x=2982 y=447), making it easy to reuse in subsequent calls.

Installation & Activation

Like dsh-see-now and dsh-plugin-real-input, it is a standard bundle plugin — they can all coexist without interfering with each other.

Install from the marketplace:

  1. Open DSH.
  2. Go to “Plugins → Plugin Marketplace.”
  3. Search for “Screen See & Act.”
  4. Install.

Manual install (equivalent):

& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" `
    plugin --profile desktop add github:cloudylapis/dsh-see-act

Or clone the repository and use “Plugins → Add plugin” to select that directory (pnpm will install dependencies and write dsh.profile.bundles together).

After installation, restart DSH and open a new session for the tool list to update.

Typical Usage

Manual verification (without going through the model):

$env:Path = "$env:USERPROFILE\.dsh\dsh-runtimes\dsh-primary-runtime\dependencies\node\bin;" + $env:Path
cd <this-directory>
node test/e2e-tools.mjs      # Actually moves the mouse; clears the stop flag when done
node test/smoke.mjs          # Only captures / annotates / waits; does not click

The config file lives at ~/.dsh/see-act.json (optional, all fields have defaults):

{
  "mode": "act",              // act | readonly
  "quality": "aim",           // fast 800 / aim 1280 / read 1600
  "screen": "foreground",     // foreground | primary | cursor | all | index
  "settleMs": 140,            // How long to wait after each step before capturing "after"
  "shots": "both",            // both | after | none
  "zoomInset": true,          // 3× inset in the bottom-right corner of the after frame
  "dodge": "hide",            // hide | off
  "narrate": true,            // Write narration into the see-now chat stream
  "captureFallback": true,    // If GDI captures an all-black frame, re-grab via ffmpeg/ddagrab
  "maxSteps": 8,
  "maxPlanMs": 60000
}

Use Cases & Notes

Best suited for scenarios that require “seeing while clicking,” such as: clicking buttons, typing text, dragging, scrolling, switching windows, or waiting for a particular state. The steps parameter of see_act allows up to 8 steps per call, but beyond 3 steps the before/after frames only reflect the first and last (a note is included in the text).

Notes:
- Windows only (P/Invoke + PowerShell 5.1 + System.Drawing); os: ["win32"].
- When GDI cannot capture hardware overlays (some video players, DRM-protected content), it automatically falls back to ffmpeg’s ddagrab (main monitor only, no annotations).
- Input is dispatched via SendInput. Works with standard Win32 / WPF / UWP apps; a small number of fullscreen games or anti-cheat programs may ignore synthetic input.
- Floating-window avoidance relies on window rectangles, not on whether pixels are actually rendered.
- The plugin runs with the current DSH process’s privileges. Review the source code and license before installing.

Closing Remarks

dsh-see-act turns dsh-see-now from “eyes only” into “eyes + hands,” compressing multi-round trips into a single call — reducing latency and improving reliability. Its directory page is at https://www.skillhub.cn/plugins/cloudylapis/dsh-see-act, and the source is at https://github.com/cloudylapis/dsh-see-act.

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

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

Xiaoye