Описание
Ниже — оригинальный текст автора.
Arya Computer Use
A computer-use plugin for DSH/AryaCode built on Vercel's new desktop and browser-use MCP
servers — agent-desktop (Windows accessibility
refs) and agent-browser (web lane) — with a
takeover UI: the driven window is framed, every action is marked with a ghost cursor, and a
global Esc stops it.

It drives Windows desktop apps through native accessibility refs (UIA) instead of pixel coordinates, and drives web pages through a CDP browser lane. The agent calls itself Arya in the overlay by default, and the name is a setting.
- Refs, not pixels.
snapshotreturns a semantic tree of addressable controls; coordinates are never the targeting mechanism, and identical twins are refused, not mis-clicked. - Nothing moves your mouse unless you say so.
clickpicks the delivery rung that works for that control — the control's own UIA pattern, its advertised action, then a background posted click — and reports which one indata.mechanism.typeis quiet too (value pattern, then posted characters). Real OS clicks andfocusneed an explicit opt-in. - Takeover UI. The driven window gets a rim and a banner, a synthetic ghost cursor marks each action, a step panel shows progress, and a global Esc stops the drive — the stop also gates the driver, so a pressed Esc is honoured, not raced.
- Two lanes.
arya_desktop(30 tools over UIA) andarya_browser(the agent-browser MCP profile you pick), mounted in-process — no absolute paths, nonpxchild. - Measured, not promised. ~90 ms per engine call on the devbox (snapshot 90 ms, ref action
85 ms,
list-windows56 ms);batchruns up to 20 steps in one call (6 steps: 332 ms engine vs ~510 ms step by step). Every CLI call costs ~85 ms of process start, so the number of calls, not the tool, sets the latency.
Releases: GitHub Releases ·
CHANGELOG.md · npm package @aryacode/dsh-plugin-arya-computer-use.
Requirements
- Windows, and a DSH host running elevated (Run as administrator). The engine's
interaction lease lives at
C:\ProgramData\agent-desktop\<user-SID>\interaction.lockwith a protected DACL{SYSTEM, Administrators, token user}; a non-elevated medium-IL token fails validation (lease_directory_untrusted), and the adapter surfaces that as an explicit "run AryaCode as administrator" hint. - Accessibility permission (
desktop_statusreportsaccessibility: granted). - AryaCode / DSH host matching
dsh.engines.dsh(>=0.2.1-rc.3 <0.3.0-0). - Engine state root is the engine default
~/.agent-desktop— do not pointAGENT_DESKTOP_HOMEat%LOCALAPPDATA%(inherited AppContainer ACEs fail the engine's private-DACL check).
Install
From the plugin market (recommended)
- In AryaCode: Plugins → Arya Plugin Market → add a source and paste
https://cdn.jsdelivr.net/gh/KonnectSuite/dsh-arya-computer-use@latest/index.json - Install Arya Computer Use from the list, then restart AryaCode.
The published package is @aryacode/dsh-plugin-arya-computer-use (npm, public). Everything it
needs ships in the tarball: the desktop adapter, the browser launcher, the takeover overlay
sources and the skill. The two MCP lanes are mounted in-process by index.js
(ctx.plugin(<bridge>, …)), so there are no absolute paths in the bundle patch and no npx
child process — an install works the same on any machine.
The plugin manager blocks dependency build scripts by default. Only agent-desktop needs one
approved: its postinstall fetches the native binaries. agent-browser 0.43.0 delivers its native
as an optional platform package (@agent-browser/cli-win32-x64-msvc and friends) — a plain
dependency install, no script run — and the launcher resolves it wherever npm or pnpm put it. A
blocked or partial engine install is repaired at start-up; the status route reports the outcome
under mcp.engines, and Settings → Computer Use → Status shows which resolution mode each
lane actually got.
From npm
@aryacode/dsh-plugin-arya-computer-use — install it into your AryaCode profile with the plugin
manager, or pin it in the profile's package.json.
From a checkout (development)
plugin_manager → install_bundle pointing at this directory. The bundle patch is a single row
(arya-computer-use); the MCP lanes still mount in-process, so a checkout install and a registry
install behave identically.
Where it appears
- Plugins panel — an Arya Computer Use row with an enable switch and a detail page.
- Settings → Plugins → Computer Use — the plugin's settings page (table below).
- The desktop, while driving — a rim around the driven window, a banner
("Arya is controlling your computer"), a ghost cursor at each action, and a step panel
(
Arya · Step 3 · acting). - The conversation — each desktop/web tool call renders as a step row with the action, the target and the delivery mechanism.
- Two MCP lanes — tools named
mcp__arya_desktop__*andmcp__arya_browser__*in every session.
First run
- Start AryaCode as administrator (the lease requirement above).
- Open Settings → Plugins → Computer Use and confirm the status shows the engines mounted and accessibility granted.
- Ask the agent: "open Notepad and type hello". Watch the window get framed, the ghost cursor move, and the step panel count.
- Press Esc at any moment — the drive stops and desktop input tools refuse for that turn.
Settings (Settings → Plugins → Computer Use)
| Setting | Default | Meaning |
|---|---|---|
| Frame the app window | on | Rim only the driven window plus a banner; monitor edges are just the fallback before a target is known |
| Show a ghost cursor | on | Draw a synthetic cursor where the agent acts; your pointer is never followed |
| Agent name | Arya | Drives the ghost-cursor tag and the progress-panel header (Arya · Step 3 · acting), 1–16 characters |
| Banner text | Arya is controlling your computer | One line, 1–120 characters |
| Real mouse and keyboard | off | Opts the conversation into physical input for 5 minutes (session_end releases it): clicks that need it become real OS clicks, type/focus/focus_window stop refusing. Off, click still works — it uses the control's own UIA pattern, its own advertised action, or a background posted click, and never moves your pointer. |
| One conversation drives at a time | on | Refuses desktop tools in other conversations while a drive is live |
| Progress panel detail | summary | What the on-screen step panel prints: summary = short action lines, source = the assistant's raw text stream (the old default — it paints model text on your desktop) |
| Stop shortcut | Esc | Global kill switch; synthetic keystrokes are ignored, so it needs a real keypress. It also gates the driver: desktop input tools return COMPUTER_USE_STOPPED_BY_USER for that turn (reads keep working) |
| Tool preset | lite | lite lists all 30 desktop tools; lazy starts with tools/snapshot/find/list_surfaces/click and reveals the rest on demand |
| Tool surface (web) | core | agent-browser tool profile: core 33, network 9, state 27, debug 40, tabs 13, react 8, mobile 15, webmcp 4, all 160 |
| Chrome profile / Session | – / arya | Reuse a Chrome login state and name the browser session |
| Connect to my browser | – | --cdp port or URL to attach to a Chrome you already have open |
| Saved sign-in state | – | Absolute path to a cookies+localStorage JSON to reuse |
| Browser executable path | – | Absolute path to msedge.exe / chrome.exe / brave.exe when the web lane starts its own browser; empty finds system Chrome |
| Show the browser window | off | --headed for the web lane |
| Allowed domains | – | Host-wide allow-list (AGENT_BROWSER_ALLOWED_DOMAINS) — the engine enforces only through this route, never the flag. It needs a fresh browser context: clear Chrome profile and Session first |
| Browser idle timeout | engine default (1 h) | --idle-timeout for the web-lane daemon: 45s, 30m, 1h; 0 never idles |
| Browser namespace | – | --namespace: isolate the web-lane daemon's sockets and restore state from other agent-browser users on this machine |
| Custom CA file / Use system CA | – / off | --ca-cert <path> and --use-system-ca for corporate TLS interception |
| Browser call timeout | engine default (120 s) | AGENT_BROWSER_DEFAULT_TIMEOUT in ms — the per-call ceiling for web tools |
| Confirmation actions | – | --confirm-actions patterns (e.g. flow_write:*) the engine refuses to run without approval; it never auto-approves them |
| Engine call ceiling | 150000 ms | The desktop adapter's own hard timeout per engine command, so a hung drive answers with the timeout instead of sitting there |
| Lease retry base | 800 ms | Backoff before the click ladder answers lease contention (doubles per try); 0 answers immediately |
| Screenshot folder | the plugin's screenshots/ | Absolute folder where screenshot and ocr write their PNGs |
Tool presets
lite(default) — all 30 desktop tools listed up front:snapshot, find, get, is, click, select, check, uncheck, clear, scroll_to, focus, focus_window, double_click, right_click, expand, collapse, toggle, set_value, type, press, scroll, list_windows, list_surfaces, restore_window, launch, wait, screenshot, ocr, batch, tools.lazy— starts withtools,snapshot,find,list_surfaces,click; everything else appears aftertools {operation:"load", names:[...]}. The adapter advertisestools.listChangedand emitsnotifications/tools/list_changed, which DSH's MCP client re-syncs (listChanged.onChanged → refreshTools), so the new tools become callable immediately.
Web lane
The second MCP row (arya_browser, server agent-browser) runs through mcp/browser-launcher.mjs,
a transparent stdio pipe that reads the control file and spawns the real server with the settings
applied:
node mcp/browser-launcher.mjs # → agent-browser mcp --tools core [--profile X] [--session Y] [--state Z]
# [--cdp …] [--idle-timeout T] [--namespace N] [--ca-cert P] [--use-system-ca]
# [--confirm-actions PATTERN]… [--headed]
So sign-in reuse and attaching to your own Chrome are settings, not hand-edited rows. Web-lane changes land on the next MCP restart; the settings page says so.
The launcher resolves the engine's native itself. 0.43.0's bin/agent-browser.js is only a shim —
the binary arrives as an optional platform package — so the launcher finds it through the engine's
own anchor (createRequire at the engine's package.json) and spawns the native directly. That
bypasses the shim's daemon spawn entirely (the console-window bug, issue #2, cannot come from our
lane), and control/info-browser.json records which mode it resolved to: package-bin (a copy
beside the shim) or platform-package (the optional dependency).
The host-wide web flags — idle timeout, namespace, CA, confirmation patterns — and the domain
allow-list (env only; the flag is a no-op, measured) are applied by the launcher. That is what makes
Trim tool schemas honest: strip removes 52 argument-key occurrences from the core profile (60
unique keys across its 33 tools), taking the web lane's schema payload from 24,594 B to 17,793 B
(≈ 1.7k tokens per conversation).
How clicks work
click walks the ladder in this order and reports the rung that ran in data.mechanism:
| mechanism | what happened | your pointer / foreground |
|---|---|---|
semantic | the control ran its own UIA pattern (Invoke or Legacy default action) | untouched |
select toggle expand collapse | click refused; the control's own advertised action did it | untouched |
post_message | a mouse message posted straight to the control's window | untouched |
physical_synthetic | a real OS click at the element centre — the last rung, only with physical: true (your consent) once the posted click is the rung that failed | moves both |
press gets the same treatment for keys: when the engine cannot confirm the window's focus, the
adapter posts WM_KEYDOWN/WM_KEYUP to the control that window already has focused instead of
refusing, and expand/collapse/toggle fall back to a posted click when the engine's pattern
is unavailable — as does a select the engine refuses for want of a SelectionItem pattern, since
the intent of select is to select. A refusal caused by the exclusive desktop interaction lease
(TIMEOUT / details.kind: "lock_timeout") is not a verdict: the adapter retries the engine call
twice with backoff before the ladder answers it.
The ladder also knows when to stop, because re-delivering is how a click goes wrong twice.
When the engine reports the outcome as uncertain — its pattern call timed out after the handler
may already have run, which is exactly what clicking a button that opens a modal answers
(error.disposition: {delivery: "delivery_uncertain", retry: "unsafe"}) — nothing is re-delivered
on the next rung, because a second delivery would open a second dialog; the answer tells you to
read the state instead. And when the control answers that its own app has disabled it
(UIA_E_ELEMENTNOTENABLED), posting a click into a dead control is measured to do nothing, so the
lane stops there and names whatever appeared on top, rather than burning the remaining rungs.
Dialogs and menus are surfaces, not part of the window tree. list_surfaces inventories what
an app owns (window / focused / sheet for its modal dialog / menu for an open menu),
snapshot and find read one with surface: "sheet" or "menu", wait can catch the
appearance (event, menu, menu_closed) instead of the agent polling screenshots, and a failed
action names the window or surface that blocked it in error.details.blocking_windows — an
entry with no title is usually an open menu or dropdown, which the window list does not always
show but the surface inventory does. A read of a blocked window can also fail silently:
find and snapshot answer ok with nothing in them. The lane then names the blocker in
data.blocking_windows and says so in data.observation_note, so an empty read is not mistaken
for a missing control. And once a window is known to be blocked, a repeat action on it answers in
milliseconds with details.kind: "owner_blocked" instead of paying the engine's full wait budget
again; that memo self-heals as soon as the blocker is gone.
set_value fills a field through the accessibility value pattern (the headless text path).
type is quiet as well: the adapter writes the value pattern on the ref, then posts the
characters as WM_CHAR to the control hit-tested from that ref's own live rectangle, and
confirms by reading the value back — synthesized keystrokes are only its last rung, behind
consent. select/check/uncheck/clear/scroll_to/toggle/expand/collapse are
semantic engine commands and stay headless. focus, focus_window and a physical: true
click synthesise real input: each needs physical: true on the call (or the
conversation-wide tools {operation:"headed",on:true} opt-in, 5 minutes) and otherwise
refuses with POLICY_DENIED / details.kind: "physical_input_requires_consent". double_click
and right_click are posted in the background by default and physical only with consent. tools
manages the opt-in, overlay and session state.
Status
All four planned phases have shipped.
| Phase | Deliverable | Status |
|---|---|---|
| 0 | Evaluation spike: raw agent-desktop mcp row, drive Notepad/Explorer/Chrome — speed ✓, readable trees ✓, refs-not-pixels ✓ | ✅ accepted, spike removed |
| 1 | Adapter MCP server: tool surface, per-conversation session lifecycle, headed toggle + foreground promotion, screenshot→file path, WinRT OCR, skill | ✅ built, installed, driven in-host |
| 2 | Takeover UI: window rim + banner + Esc kill, configurable ghost cursor, settings page, chat step rows, driver lock, English UI | ✅ built + verified live |
| 2.1 | Clicks that never touch your mouse: semantic rung, the control's own action, then a background posted click; select/check/uncheck/clear/scroll_to/focus_window added; physical input behind an explicit opt-in; launch argv fixed | ✅ verified on a 21-step live matrix 2026-11-14 |
| 3 | Web lane (arya_browser row), sign-in profiles, attach-to-your-Chrome | ✅ shipped 1.0.0 |
| 4 | Lazy preset, notifications/clipboard/trace, npm publish | ✅ shipped 1.0.0 |
Full plan: docs/PLAN.md. Release history: CHANGELOG.md.
Layout
package.json Cordis bundle manifest (dsh.bundle.patch) + pinned engine deps
cordis.patch.yml rows: arya-computer-use (Host), mcp-arya-desktop, mcp-arya-browser
index.js Host plugin entry (settings, driver lock, takeover mgmt, status route)
client.js Settings page + chat step rows (client plugin)
index.json The market listing this repo serves (jsDelivr); regenerated at release
CHANGELOG.md One entry per published version, newest first
mcp/adapter-server.mjs adapter MCP server (30-tool surface)
mcp/browser-launcher.mjs web-lane stdio pipe applying the settings to agent-browser mcp
mcp/quiet-input.mjs driver for the background posted click (no cursor, no foreground)
scripts/quiet-input.ps1 posted WM_* click helper; elevated, caches its compiled DLL
scripts/windows-takeover.cs window rim + banner + progress + ghost cursor + global Esc
scripts/ocr.ps1 WinRT OCR helper
scripts/sync-market-index.mjs rebuild index.json from npm's publish times
skills/arya-desktop/ observe-act loop guide
locale/ icon.svg Plugin Manager display metadata
docs/PLAN.md complete v1 plan
NOTICE.md engine attribution (Apache-2.0)
Engines (not vendored — pinned npm dependencies)
agent-desktop1.3.1(Apache-2.0) — accessibility-tree computer use CLI, native Windows binaries on npm. Reference mirror: KonnectSuite/dsh-arya-agent-desktop.agent-browser0.43.0(Apache-2.0) — web lane via CDP (agent-browser mcp); requires Node 22+, and its native binary installs as an optional platform package rather than through a build script.
Attribution and the licence boundary are in NOTICE.md.
Remove
Uninstall from the Plugins panel (or plugin_manager). To clear every trace:
- engine state:
~/.agent-desktop - control files:
%LOCALAPPDATA%\dsh-plugin-arya-desktop\control - the interaction lease:
C:\ProgramData\agent-desktop\<user-SID> - the market source the plugin registered: remove it in Plugins → Arya Plugin Market → sources
Troubleshooting
| Symptom | What it means, what to do |
|---|---|
lease_directory_untrusted | The host is not elevated. Restart AryaCode as administrator. |
A tool returns TIMEOUT / lock_timeout | Another conversation holds the drive (the lease is exclusive, and launch holds it for its whole run). The adapter retries twice with backoff; press Esc to release the drive, or turn on One conversation drives at a time. |
| A canvas/game window shows no tree | It exposes no accessibility tree, so there is nothing to target by ref. ocr can read its text; this lane deliberately has no coordinate-click tool, so a tree-less surface cannot be driven by input here — say so rather than invent a pixel path. |
physical_input_requires_consent | By design: focus/focus_window/physical: true need the opt-in, and type only once both quiet rungs have failed. Turn on Real mouse and keyboard (5 minutes) or pass physical: true on the call. |
| Web-lane settings do not take effect | The web lane restarts with the MCP. Start a new session; the settings page says so. |
desktop_status shows accessibility not granted | Grant it in Windows settings, then restart the host. |
Plugin market
Installing from Plugins → Arya Plugin Market needs no manual source: on first run the plugin
registers its listing — a jsDelivr URL of this repository's index.json — with the market
(existing sources are kept), and every npm release shows up there as an update. Releases go
through npm staged publishing, so a publish is visible in the market once the version is approved
on npmjs.com.
Licence
MIT (KonnectSuite original code). Engines stay Apache-2.0 — see NOTICE.md.
История версий
- 1.0.1529 нояб. 2026 г. · 309 KB