rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:liliumneko/dsh-plugin-auv
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
Adds AUV desktop automation to DeepSeek Harness (DSH) as native model tools.
[!WARNING] Please install AUV before using this plugin. On macOS, also grant DeepSeek Harness the required permissions. See Before you start.
Install the AUV command line tool and make sure it is on PATH. Check with auv --version.
| Platform | Install |
|---|---|
| macOS | brew install moeru-ai/tap/auv |
| macOS / Linux | curl -fsSL https://auv.moeru.ai/install.sh \| sh |
| Windows | scoop bucket add auv https://github.com/moeru-ai/auv then scoop install auv/auv |
| proto | proto plugin add auv "https://raw.githubusercontent.com/moeru-ai/auv/main/toolchain/proto/auv.toml" --to global then proto install auv latest --config-mode global --pin global |
If AUV is not on PATH, set AUV_BIN to the full path of the auv executable before starting
Harness. A running AUV daemon is enough for the plugin to connect, but starting one itself
needs the executable.
Install and enable this plugin (see Install), then run auv_doctor. A ready
setup reports all_ok: true.
AUV means Application Use Via .... Its authors describe it as programmable computer use — like Playwright, but for the operating system.
Links:
Sections: Before you start · Install · macOS permissions · Tools · Configuration · Daemon · Troubleshooting · Status
The plugin is prebuilt.
Open Settings → Plugins → Add plugin and paste the latest release tarball:
https://github.com/liliumneko/dsh-plugin-auv/releases/latest/download/dsh-plugin-auv.tgz
Click install, then enable AUV desktop automation. The fourteen auv_* tools show up on the next
model step. Run auv_doctor first.
The same input box also accepts an npm package name or a local directory. The repository does not contain the built bundle, so use the release tarball for normal installs.
From a session you can use the command form with the same link:
plugin_manager action=install_bundle target=https://github.com/liliumneko/dsh-plugin-auv/releases/latest/download/dsh-plugin-auv.tgz
Disable the plugin with
plugin_manager action=set_plugin target=dsh-auv enabled=false.
AUV controls the real desktop, so macOS must trust DeepSeek Harness, not just auv:
/Applications/DeepSeek Harness.app, or trigger an input command once and allow the prompt.auv_doctor. all_ok should be true; the report shows which permission is missing
otherwise.Screenshots and OCR need Screen Recording. Clicking, typing, key presses, scrolling and window changes need Accessibility.
All fourteen tools control AUV through the daemon connection described in Daemon lifecycle.
| Tool | What it does |
|---|---|
auv_doctor |
Reports permissions, daemon state and whether the setup is ready. Returns install and permission guidance when something is missing; it does not throw. |
auv_screenshot |
Captures the desktop, a window, an app, a display or a screen region. Returns a .webp file path for read_image, plus capture bounds and pixel metadata. |
auv_ocr |
Finds text on screen or in a window, or reads all of it with mode: "read" (returns text plus result.regions). With wait: true it polls until the text appears (find mode). Targets a window, app, display_id or screen region, with optional recognition_languages and custom_words. Matches and regions carry screen, window and image pixel points. |
auv_click |
Clicks text found by OCR, or an exact point. Optional button, target, click area and coordinate space (space: "screen" is the reliable choice for Unity/Canvas apps); count repeats the click (2 = double click), modifiers adds cmd/shift/ctrl/alt, and window_strategy selects how a window-targeted click is delivered. |
auv_type |
Types or pastes text into the focused control. submit presses return/search/done/go afterwards, and replace_existing replaces the current field content. |
auv_keys |
Presses one key combination, optionally repeated; hold_ms holds the keys down before releasing (not with repeat). policy and focus control delivery. |
auv_scroll |
Scrolls inside a window, using window-local coordinates. smooth animates the scroll and until_text scrolls until that text appears; both need window_id. |
auv_drag |
Drags the mouse from one point to another; screen, window or display coordinates, button, duration, and an optional focus-first step. |
auv_capture_state |
Captures an in-memory snapshot of a window or region and returns a state_token; use it before an action. |
auv_wait_for_change |
Watches a window or region and compares frames, returning changed, no_effect or timeout with a changed_ratio. Pass a state_token from auv_capture_state for the reliable check. |
auv_windows |
Lists windows with ids, app ids, titles, frames and state. |
auv_window |
Focuses, minimizes, maximizes, restores, moves/resizes (set_frame) or refreshes one window by window_id. Returns the window before and after, and warns when the app settles a different frame. |
auv_displays |
Lists displays with id, name, frame, scale_factor and primary/built-in flags. |
auv_activate |
Brings an application to the front. |
Screenshots are saved as .webp files. Call DSH's read_image tool with the returned path to
look at one; the tool result never contains image bytes.
| Variable | Default | Effect |
|---|---|---|
AUV_BIN |
searched in PATH, then /opt/homebrew/bin, /usr/local/bin, ~/.local/bin, ~/.cargo/bin |
Full path to the auv executable. Needed only when the plugin has to start its own daemon. Invalid values fail with install instructions. |
AUV_DSH_SDK_STORE_ROOT |
$DSH_HOME/auv/sdk (usually ~/.dsh/auv/sdk) |
Store directory for the daemon the plugin starts itself. |
AUV_DSH_CAPTURE_DIR |
$DSH_HOME/auv/sdk-captures (usually ~/.dsh/auv/sdk-captures) |
Where screenshots are written for read_image. |
AUV_DSH_CAPTURE_RETENTION_MS |
3600000 (one hour) |
Delete .webp screenshots older than this after each new capture. Set 0 to keep files forever. |
AUV_DSH_CAPTURE_MAX_FILES |
200 |
Keep at most this many screenshot files (newest win). Set 0 for no count limit. |
AUV's own AUV_ENDPOINT and AUV_DISCOVERY_FILE are honored when finding a daemon to connect to.
DSH_HOME changes the default data directory above.
If an AUV daemon is already running, the plugin connects to it and leaves it alone. Otherwise it
starts a private daemon for this plugin and stops it when Harness unloads or reloads. auv_doctor
shows which mode is active and where the daemon listens.
Points returned by the tools are logical screen points. Inputs accept screen, window or display coordinates; each tool description says which space applies.
When a result carries a capture, convert between spaces with:
image_pixel = (screen_point - bounds.origin) * pixel_ratio
window_point = screen_point - window.frame.origin
screen_point = window_point + window.frame.origin
image_pixel belongs to the capture that produced the value, not necessarily to a screenshot you
took earlier; pixel_ratio is pixel_size.width / bounds.width. Screenshot values include
bounds, origin, scale_factor, pixel_size and coordinate_note; OCR matches and read-mode
regions include screen_point, image_pixel, window_point and pixel_ratio next to bounds.
Input tools return delivery evidence, not proof that the app reacted. To verify an input:
auv_capture_state on the target window or region before the action.auv_click, auv_drag, auv_type, auv_keys, auv_scroll).auv_wait_for_change with the returned state_token. It compares downscaled RGBA frames
and returns changed_ratio; min_changed_ratio and pixel_threshold filter cursor or button
flicker.baseline_hash is still accepted for a coarse ThumbHash-only check, but state_token is the
reliable path. The default min_changed_ratio of 0.01 ignores cursor and button flicker; for a
small change (a log line, a checkbox) capture just that region, or lower min_changed_ratio
(for example 0.0005). changed: false only means the screen did not change enough; it is not
proof that keys were delivered. The plugin also stops the third identical mutating call within 30 seconds
with no_effect_repeat; pass allow_repeat: true to send it anyway after re-checking the screen.
auv_doctor {}
auv_windows {}
auv_window { "window_id": "<id from auv_windows>", "action": "maximize" }
auv_displays {}
auv_screenshot { "window_id": "<id from auv_windows>" }
# then read_image { "file_path": "<artifact_path>" }
auv_ocr { "text": "Save" }
auv_ocr { "mode": "read", "window_id": "<id from auv_windows>" }
auv_click { "text": "Save", "application_id": "com.apple.TextEdit" }
auv_type { "text": "hello", "application_id": "com.apple.TextEdit", "mode": "paste" }
auv_type { "text": "query", "submit": "return" }
auv_keys { "keys": ["cmd", "t"], "repeat": 3, "interval_ms": 120 }
auv_scroll { "window_id": "<id from auv_windows>", "dy": 600 }
auv_scroll { "window_id": "<id from auv_windows>", "dy": 400, "until_text": "Settings" }
auv_drag { "from": { "x": 300, "y": 500 }, "to": { "x": 600, "y": 500 }, "duration_ms": 400 }
auv_capture_state { "window_id": "<id from auv_windows>" } # → state_token
auv_drag { "from": { "x": 300, "y": 500 }, "to": { "x": 600, "y": 500 } }
auv_wait_for_change { "state_token": "<state_token>", "timeout_ms": 3000 }
AUV was not found / AUV_BIN is not an executable file. The plugin cannot find the auv
executable. Install AUV as described in Before you start, check
auv --version, and restart Harness. If AUV is outside PATH, set AUV_BIN.
The plugin is installed but nothing happens. Run auv_doctor. It reports whether AUV is found,
whether it can connect to a daemon, and which macOS permission is missing.
Daemon connection errors. If a daemon is running but the plugin cannot use it, run
auv_doctor to see the endpoint and the error. Make sure AUV_DSH_SDK_STORE_ROOT is writable when
the plugin has to start its own daemon. The plugin never replaces or stops a daemon you started.
Permission errors. Follow macOS permissions, then restart Harness and run
auv_doctor again.
OCR returns vision OCR failed …. Screen Recording is missing or the grant has not taken
effect yet. Grant it, restart Harness and retry. Until then, use auv_screenshot plus read_image.
auv_ocr with wait: true times out. If the text is still loading, retry with a shorter
timeout_ms instead of one long wait.
A screenshot path cannot be read. Pass the exact absolute path to read_image. Capture files
are temporary: after every new screenshot, files older than AUV_DSH_CAPTURE_RETENTION_MS (one
hour by default) or beyond AUV_DSH_CAPTURE_MAX_FILES (200) are deleted. Increase either value if
you need screenshots to survive a longer session.
Keys do not reach a Unity/Canvas game (Space, Return). AUV key injection can report
completed while the game ignores the event; this has been observed with Stacklands. Use screen
clicks or OCR-driven clicks instead, and treat changed: false as "the screen did not change", not
as proof that the key was not delivered.
The plugin icon is the official AUV logo (docs/assets/logo-light.svg in the
AUV repository) on a white rounded background. AUV and the AUV
logo are © the moeru-ai contributors and licensed under
Apache-2.0.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。