すべてのプラグイン

dsh-arya-computer-use

@aryacode/dsh-plugin-arya-computer-use · バージョン 1.0.15 · 2026/11/29 更新

Windows UIA のアクセシビリティ参照を使い、ピクセル座標に依存せずデスクトップアプリを操作します。操作時のオーバーレイは対象ウィンドウを枠で囲み、実行中の操作とゴーストカーソルを表示します。Esc で停止でき、実行には管理者権限が必要です。

  • バージョンごとに審査
  • ツール
  • MIT
  • 0回ダウンロード

説明

以下はプラグイン作者による原文です。

Arya Computer Use

npm License MIT Platform Windows

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.

The Arya Computer Use page in AryaCode

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. snapshot returns 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. click picks 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 in data.mechanism. type is quiet too (value pattern, then posted characters). Real OS clicks and focus need 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) and arya_browser (the agent-browser MCP profile you pick), mounted in-process — no absolute paths, no npx child.
  • Measured, not promised. ~90 ms per engine call on the devbox (snapshot 90 ms, ref action 85 ms, list-windows 56 ms); batch runs 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.lock with 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_status reports accessibility: 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 point AGENT_DESKTOP_HOME at %LOCALAPPDATA% (inherited AppContainer ACEs fail the engine's private-DACL check).

Install

From the plugin market (recommended)

  1. In AryaCode: Plugins → Arya Plugin Market → add a source and paste https://cdn.jsdelivr.net/gh/KonnectSuite/dsh-arya-computer-use@latest/index.json
  2. 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__* and mcp__arya_browser__* in every session.

First run

  1. Start AryaCode as administrator (the lease requirement above).
  2. Open Settings → Plugins → Computer Use and confirm the status shows the engines mounted and accessibility granted.
  3. Ask the agent: "open Notepad and type hello". Watch the window get framed, the ghost cursor move, and the step panel count.
  4. Press Esc at any moment — the drive stops and desktop input tools refuse for that turn.

Settings (Settings → Plugins → Computer Use)

SettingDefaultMeaning
Frame the app windowonRim only the driven window plus a banner; monitor edges are just the fallback before a target is known
Show a ghost cursoronDraw a synthetic cursor where the agent acts; your pointer is never followed
Agent nameAryaDrives the ghost-cursor tag and the progress-panel header (Arya · Step 3 · acting), 1–16 characters
Banner textArya is controlling your computerOne line, 1–120 characters
Real mouse and keyboardoffOpts 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 timeonRefuses desktop tools in other conversations while a drive is live
Progress panel detailsummaryWhat 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 shortcutEscGlobal 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 presetlitelite lists all 30 desktop tools; lazy starts with tools/snapshot/find/list_surfaces/click and reveals the rest on demand
Tool surface (web)coreagent-browser tool profile: core 33, network 9, state 27, debug 40, tabs 13, react 8, mobile 15, webmcp 4, all 160
Chrome profile / Session– / aryaReuse 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 windowoff--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 timeoutengine 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 timeoutengine 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 ceiling150000 msThe desktop adapter's own hard timeout per engine command, so a hung drive answers with the timeout instead of sitting there
Lease retry base800 msBackoff before the click ladder answers lease contention (doubles per try); 0 answers immediately
Screenshot folderthe 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 with tools, snapshot, find, list_surfaces, click; everything else appears after tools {operation:"load", names:[...]}. The adapter advertises tools.listChanged and emits notifications/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:

mechanismwhat happenedyour pointer / foreground
semanticthe control ran its own UIA pattern (Invoke or Legacy default action)untouched
select toggle expand collapseclick refused; the control's own advertised action did ituntouched
post_messagea mouse message posted straight to the control's windowuntouched
physical_synthetica real OS click at the element centre — the last rung, only with physical: true (your consent) once the posted click is the rung that failedmoves 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.

PhaseDeliverableStatus
0Evaluation spike: raw agent-desktop mcp row, drive Notepad/Explorer/Chrome — speed ✓, readable trees ✓, refs-not-pixels ✓✅ accepted, spike removed
1Adapter MCP server: tool surface, per-conversation session lifecycle, headed toggle + foreground promotion, screenshot→file path, WinRT OCR, skill✅ built, installed, driven in-host
2Takeover UI: window rim + banner + Esc kill, configurable ghost cursor, settings page, chat step rows, driver lock, English UI✅ built + verified live
2.1Clicks 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
3Web lane (arya_browser row), sign-in profiles, attach-to-your-Chrome✅ shipped 1.0.0
4Lazy 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-desktop 1.3.1 (Apache-2.0) — accessibility-tree computer use CLI, native Windows binaries on npm. Reference mirror: KonnectSuite/dsh-arya-agent-desktop.
  • agent-browser 0.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

SymptomWhat it means, what to do
lease_directory_untrustedThe host is not elevated. Restart AryaCode as administrator.
A tool returns TIMEOUT / lock_timeoutAnother 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 treeIt 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_consentBy 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 effectThe web lane restarts with the MCP. Start a new session; the settings page says so.
desktop_status shows accessibility not grantedGrant 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.152026/11/29 · 309 KB