reactive-resume
reactive-resume
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:RestRegular/dsh-computer-use
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文 | English
Let DeepSeek Harness agents see and operate a real Windows desktop: screenshots, mouse, keyboard, windows and clipboard — behind an explicit human approval (waived in full access) and a screen takeover. The mask is not a dead end for the human: it draws its own pointer and hosts a small chat panel, so the human can message the requesting session or cancel the takeover without touching the desktop the agent is driving. A small bundled Rust helper does the native work; no browser or external automation runtime is required.
dsh plugin --profile web add @restregular/dsh-computer-use
On DSH Desktop you can also install @restregular/dsh-computer-use from Plugins → Plugin Manager and enable it. On first use the plugin copies the native helper to %LOCALAPPDATA%\\dsh-computer-use\\ and runs it from there, so a plugin installed under a low-integrity workspace can still inject input.
Requirements: Windows 10/11 x64, DSH 0.2.1 or newer.
| Tool | Purpose |
|---|---|
computer_screenshot |
Capture the whole virtual desktop, one monitor, a window or a region; returns an image and coordinate metadata |
computer_action |
Mouse move/click/double-click/right-click/drag/scroll, keyboard keys/combos/text, wait, clipboard get/set, release control |
computer_windows |
List top-level windows (id, title, process, bounds, state, foreground), focus one, or minimize/maximize/restore |
computer_action coordinates default to that image's pixel space.capture) and the model-visible image size (image); the plugin maps image pixels back to the desktop.SCREENSHOT_REQUIRED; pass coordinate_space: "screen" for absolute desktop pixels.computer_windows to find the target window;computer_screenshot to observe (optionally with window_id for a window-only capture);computer_action (focus the window, click the field, then type);ask, the first mouse/keyboard action of each turn goes through the harness approval prompt. In full access (the danger-full-access permission preset, approval policy never) no prompt is shown: the plugin treats the user's full-access choice as consent and runs the action directly, because the harness would answer the ask with an automatic rejection — gating input there would only make the tools fail. The takeover mask, its Cancel takeover button and the emergency hotkey still apply in every mode. Set consent.scope: session to keep one approval for the whole session, or consent.requireApproval: false to remove the gate entirely.WH_KEYBOARD_LL / WH_MOUSE_LL hooks stop every physical event from reaching the desktop. Instead of being discarded, the human's pointer is drawn as a simulated cursor on the mask and its clicks are handled by the mask's chat panel (message box, Send, Cancel takeover);SetCursorPos, never inside the hook callback). Without that, moving the real mouse drags the agent's cursor away;WM_INPUT, lLastX/lLastY), which SetCursorPos does not affect — a 1:1 mapping without pointer acceleration. Panel clicks are hit-tested with the same position;WS_EX_TRANSPARENT): precision-touchpad two-finger scrolling and Chromium-class wheel input arrive as WM_POINTER messages that never reach a low-level mouse hook, and only a window under the pointer can swallow them. For the duration of an injected input command the mask becomes click-through again (restored 60 ms later) so the agent's own clicks still land on the app underneath;HUMAN_COMPOSING; the agent's next input action waits for the panel to close and retries;SendInput carries the injected flag and passes through, so the agent keeps working behind the mask; the panel is click-through, so injected clicks reach the app even under it;WDA_EXCLUDEFROMCAPTURE, so neither the mask, the panel nor the simulated pointer pollutes model screenshots (on older Windows they are briefly hidden for the capture instead);computer_action with action: "release", when the agent is disposed, when the human clicks Cancel takeover in the mask, on an emergency hotkey, or if the helper exits. takeover.idleEndMs can release the takeover after inactivity.Ctrl+Alt+Shift+F12) immediately ends the takeover, restores human input, pauses the helper and revokes the turn approval. The in-flight action fails with TAKEOVER_ENDED; later input fails with PAUSED. The model cannot resume: the human presses the hotkey again to clear PAUSED, and the next input asks for approval again.Ctrl+Alt+Del is a secure attention sequence that cannot be intercepted, and the lock/UAC desktops stay reachable, so the human can always take the machine back.TAKEOVER_BUSY until control is released.Approving from a phone is supported by the harness approval UI (for example through dsh-pocket); the mask itself is always drawn on the controlled Windows desktop.
The chat panel at the bottom of the mask is interactive for the human's simulated pointer:
Enter sends, Shift+Enter inserts a newline and Esc (or a click outside the panel) dismisses the editor without losing the text;Settings → Conversation → Enter while busy): queue adds it to the next turn, steer submits it to the next step. The panel shows the strategy in its status line;PAUSED like the emergency hotkey;input.requireApproval is a deprecated alias for consent.requireApproval.Ctrl+Alt+Shift+F12) pauses the helper, releases every button/modifier and refuses further input until the human presses it again.injected flag as the agent's own input, so the hooks cannot tell them apart.Win+L, Ctrl+Alt+Del and Win+U are blocked for the agent by default (input.blockedCombos).safety.allowedProcesses / safety.blockedProcesses.SECURE_DESKTOP; a non-elevated helper cannot inject into elevated windows (UIPI).Override the plugin row in cordis.patch.yml; every field has a default:
- id: dsh-computer-use
config:
screenshot:
format: jpeg # png | jpeg
jpegQuality: 85
maxEdge: 1200 # 0 keeps the captured size
includeCursor: true
captureMethod: auto # auto | gdi | printwindow
input:
typeIntervalMs: 0
dragSteps: 24
maxHoldMs: 5000
blockedCombos: ["win+l", "ctrl+alt+del", "win+u"]
maxTextLength: 20000
consent:
requireApproval: true
scope: turn # turn | session
takeover:
enabled: true
opacity: 0.18 # 0.05 .. 0.9
banner: true
chat: true # interactive chat panel in the mask
title: "" # empty = localized default
hint: "" # empty = localized default with the hotkey
idleEndMs: 0 # 0 = release when the agent turn ends
safety:
hotkey: "ctrl+alt+shift+f12"
allowedProcesses: []
blockedProcesses: []
timeoutMs: 15000
idleStopMs: 300000
debug:
logHelper: false
| Field | Default | Meaning |
|---|---|---|
enabled |
true | Register the tools |
helperPath |
empty | Explicit helper exe; otherwise the packaged helper is staged under LOCALAPPDATA |
timeoutMs |
15000 | One helper request timeout |
idleStopMs |
300000 | Stop an idle helper; 0 keeps it resident (a takeover holds the helper alive) |
screenshot.maxEdge |
1600 | Longest edge before encoding; smaller saves image tokens |
input.typeIntervalMs |
0 | Delay between typed characters |
input.dragSteps |
24 | Drag interpolation steps |
input.maxHoldMs |
5000 | Maximum explicit button hold |
consent.requireApproval |
true | Ask before the first input action while the approval policy is ask; in full access (never) actions run without a prompt. input.requireApproval still works as an alias |
consent.scope |
turn | turn asks again next turn, session keeps one approval until the agent is disposed |
takeover.enabled |
true | Mask the screen and route physical input to the mask panel while the agent operates |
takeover.opacity |
0.18 | Mask opacity, 0.05–0.9 |
takeover.banner |
true | Show the banner with the emergency hotkey |
takeover.chat |
true | Interactive chat panel in the mask: the human's pointer and keyboard go to the panel, not the desktop |
takeover.title / hint |
empty | Banner text; empty uses a localized default |
takeover.idleEndMs |
0 | Release after this much inactivity; 0 releases when the turn ends |
safety.hotkey |
ctrl+alt+shift+f12 | Emergency stop and takeover abort |
safety.allowedProcesses |
[] | If non-empty, only these process names accept input |
safety.blockedProcesses |
[] | Always refuse input to these process names |
npm run build:native # cargo build --release, stage the exe under native/bin/win32-x64
npm test # Node unit tests
node scripts/smoke.mjs # helper-level screenshot/window/mouse/clipboard test
node scripts/notepad-test.mjs "$LOCALAPPDATA/dsh-computer-use/helper-test.exe"
node scripts/takeover-test.mjs "$LOCALAPPDATA/dsh-computer-use/helper-test.exe" # mask + hooks + emergency path
node scripts/chat-test.mjs "$LOCALAPPDATA/dsh-computer-use/helper-test.exe" # chat panel: compose, send, ack, cancel
Run the native tests on a disposable desktop and stage the exe under %LOCALAPPDATA% first: a helper started from a low-integrity workspace can capture the screen but cannot inject input. The takeover test verifies the mask, capture exclusion, injected input passing through the hooks, host release and the emergency-stop path. The chat test verifies compose-mode focus, the HUMAN_COMPOSING gate, sending a message, the ack path, the cancel button and focus restoration.
The Rust helper lives in native/ and speaks one JSON object per line over stdio. It handles one request at a time; the Host kills it on timeout/cancel and sends input.release_all after a restart. The takeover overlay and the hooks run on their own thread with a message loop; if the helper dies Windows removes the hooks and the overlay automatically.
PrintWindow and falls back to the screen rectangle. Windows Graphics Capture is a follow-up.SendInput.HUMAN_COMPOSING; the model sees a retryable error. The panel's editor is a standard Win32 EDIT, so the system IME (including Chinese) works, but the candidate window is drawn by the IME, not by the plugin.Ctrl+Alt+Del available to the human.MIT. Rust dependency licenses remain with their crates; the published package contains only the compiled helper.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: automation。