
jev-desktop
Drive a desktop application from one plain-language goal, or resolve one intent at a time, without ever reading the accessibility tree. Use when automating a desktop app and you want to keep a 150-element JSON tree out of your context. Hand run.mjs a whole goal and it observes, decides and acts until the goal is met; hand act.mjs a single step when you want to keep the plan yourself. Covers which element, which operation, when to look deeper, and when to stop. Needs a clone of the agent-desktop repository and a TYPESAFEAPIKEY.
- Installs
- 602
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/vercel-labs/agent-desktop --skill jev-desktop- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads jev-desktop automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
jev-desktop
This skill requires a clone of the agent-desktop repository (the scripts live in scripts/jev/ and ship in no installed package) and a TYPESAFE_API_KEY.
Two entry points over the same screen reading. run.mjs takes a goal and drives
until it is met. act.mjs takes one step and hands the plan back to you. Neither
puts the tree in your context.
The loop
node scripts/jev/run.mjs --app Finder "open the Applications folder"
node scripts/jev/run.mjs --app TextEdit --cursor --text "A line to write." "write the supplied sentence into the document"
Each turn reads the screen, asks for one operation and a target for that operation in the same request, carries it out, and reads again. It prints one JSON line per turn and one when it stops (shown trimmed).
{"turn":{"step":1,"operation":"CLICK","target":"treeitem \"Applications\"",
"confidence":1,"ok":true,"delivery":"delivered_verified","changed":true}}
{"stop":"done","confidence":0.96}
The operations are CLICK, TYPE_TEXT, CHECK, UNCHECK, EXPAND,
COLLAPSE, SCROLL, DRILL, WIDEN, WAIT, DONE and BLOCKED. Only the
ones something on screen can receive are offered: DRILL for a region that
reports it holds more, WIDEN only after a DRILL. SCROLL always scrolls
down. delivery is waited for WAIT and looked for DRILL and WIDEN.
The target is asked once per operation. click_target is chosen from the
elements that advertise Click, type_text_target from those that advertise
SetValue, and so on. Only the head matching the chosen operation is read, so a
target can never be incompatible with the verb that acts on it.
Looking is an operation. A window is read with --skeleton first, so a dense
document costs the same first look as a small panel. A region that was cut off
reports how much it holds, and DRILL pins it as the root for later turns.
WIDEN gives the whole window back.
CHECK and UNCHECK instead of a toggle. Both are idempotent: a box already
in the wanted state stays there.
You supply the text. Nothing here writes a value, so a run never puts a
string on screen that you did not choose. Pass --text once per value and they
are consumed in order, or pass a function as the text option and it is asked
for each field with that field's description. When there is no value left to
give, TYPE_TEXT is not offered at all, so the run stops rather than inventing
one.
Text goes in by whichever route the application accepts. A direct value
write (set-value) is one verified call. Only when the application refuses it
and the refusal says a retry is safe does the value go through the clipboard and
a cmd+v paste (macOS only). The clipboard is put back when the run ends, or
emptied if it held anything but text. One key press per character is never used:
it drops characters and loses capitals.
What leaves the machine. Every turn posts a description of the screen to the
decision endpoint (TypeSafe's api.typesafe.ai by default, or whatever
TYPESAFE_BASE_URL points at): each element's role, its accessible name or description, up
to sixty characters of the value it holds, its state, the window title, and the
recent actions, excluding supplied text and detailed execution evidence. That is enough to send the contents of a private document or a
filled form to the configured remote service. Secure text fields are already
withheld by agent-desktop and never reach the request. Pass --no-values to
either script to withhold what every other field holds as well; targeting gets
harder, because a value is often the only thing that tells two unnamed rows
apart. The default is to include values. run.mjs redacts explicit supplied
strings from action turns and later recent-action history, including when later
target names or execution evidence repeat them. Live screen descriptions remain
separate: if the application displays that text, its accessible name or field
value may still reach the remote service under the settings above. act.mjs
preserves its exact executable argv in stdout, so that field can include a
value supplied with --text; stdout may also contain accessible names and
element paths. Choose the endpoint and output destination with that exposure in
mind.
A step that is hard to undo is not taken quietly. An ordinary step needs 0.70
confidence in its target, one rated destructive (0.50 or more) needs 0.90, and
below 0.55 nothing runs. When the bar is not met the run stops and names the
candidate it would have acted on, so you decide instead of it. act.mjs gets the
rating in its single request. run.mjs rates risk with a second model call
(counted toward the 80), only for targets at 0.70 up to 0.90, so by default a
destructive step at target confidence 0.90 or higher runs unrated. If that call
returns no number, the step counts as destructive. Pass --confirm-destructive
to run.mjs or act.mjs to stop for confirmation on every step rated
destructive, regardless of confidence.
--cursor makes the run watchable. It starts a session, shows a cursor that
travels to each element before the operation lands, and turns it off at the end.
If the session cannot start, the run continues without a cursor. The cursor is
drawn where the element is, so bring the application in front of your terminal or
it arrives behind it.
It stops on DONE, on BLOCKED, on a confidence too low for the risk, after 40
operations (WAIT, DRILL and WIDEN count), after 80 model calls (risk
ratings count), or after three turns in a row that changed nothing (WAIT turns
do not count). It also stops with action_failed when an operation fails, and
with nothing on this screen can be acted on when no element advertises an
action.
A screen with more actionable elements than a choice can carry says so, in the
request and in the turn it reports (truncated), and the policy is told to look
inside a region rather than call the goal impossible.
--root @ref starts inside a region when you already know which one.
One step at a time
You keep the goal, the plan and the memory. You send one sentence. You get back one small object.
node scripts/jev/act.mjs --app TextEdit --execute \
--text "Morning over the dock." "type this text into the main writing area"
{
"ok": true,
"intent": "type this text into the main writing area",
"app": "TextEdit", "window": "Untitled 3", "window_id": "w-4521", "surface": "sheet",
"element": { "ref": "@s1:e139", "role": "textfield", "name": "Save As:",
"where": "sheet \"save\" > group" },
"command": "set-value",
"argv": ["set-value", "@s1:e139", "poem.txt"],
"decision": "act",
"why": null,
"confidence": { "target": 0.99, "command": 0.88 },
"gates": { "present": 0.94, "destructive": 0.31, "needs_text": 0.87 },
"runner_up": [{ "ref": "@s1:e137", "what": "textfield", "p": 0.02 }],
"notes": [],
"executed": { "ok": true, "delivery": "delivered_verified" }
}
Calling it
| Flag | Meaning |
|---|---|
--app <name> | Required. |
--window-id <id> | Read one window of the app, by the id agent-desktop list-windows --app <name> reports. Needed only when the app has more than one visible window and none of them is focused, which otherwise fails with AMBIGUOUS_TARGET. The run stays on that window: a window the run opens elsewhere is not read. If the window closes after an action, run.mjs reports that turn and stops with window_closed. A --root or an open surface outside the window gives root_outside_window or surface_outside_window (a stop in run.mjs, the error in act.mjs). Every run.mjs stop reports the window it read in screen.window_id. run.mjs takes it too. |
--no-values | Withhold accessible field values from the decision request. Supported by both scripts; the default includes values. |
--execute | act.mjs only. Run the command when decision is act. Without it, nothing runs. |
--text "…" | Text the intent needs. Jev returns choices, never strings. run.mjs takes it repeatedly; act.mjs takes one value. |
--root @ref | Resolve inside one container instead of the whole window. |
--bin <path> | act.mjs only. agent-desktop binary. Defaults to the release build, then PATH. run.mjs reads AGENT_DESKTOP_BIN instead, with the same default. |
Environment: TYPESAFE_API_KEY is required (both scripts fail with
TYPESAFE_API_KEY unset). TYPESAFE_BASE_URL and TYPESAFE_MODEL are covered
below. JEV_VERIFY_MS sets the paste read-back deadline in ms (default 2000, 0
to 60000).
argv is the exact agent-desktop command. double-click and hover carry
--headed; scroll always goes down.
Phrase the intent as an action, not as an element. "type this text into the main writing area" resolves to type. "the main writing area" names no
operation and can resolve to focus. Describe the target the way a person would,
"the field holding the name the file will be saved under", not the way the tree
names it.
Reading decision
decision | What it means | What you do |
|---|---|---|
act | One element clearly matches and the confidence clears the bar for this action's risk. | Nothing. With --execute it already ran. |
confirm | The match is plausible but under the bar. | Ask the user, or re-phrase the intent and call again. |
abstain | Jev answered none, the element is probably not on this screen, or two elements fit equally. | The screen is not where you think. Open the surface you need, then call again. |
needs_text | The command takes text and none was supplied. | Call again with --text. |
why carries the reason in one sentence for every decision except act
(where it is null). runner_up shows what else it considered, which is usually
enough to tell a wrong screen from a vague intent.
What the script decides, not Jev
- Risk sets the bar. The answer says what; confidence says whether to act.
An ordinary action needs 0.70. One that Jev rates
destructiveat 0.50 or more needs 0.90: writing a file, deleting, sending, confirming a warning. Below 0.55 nothing acts at all. - The command is reconciled against the element. Both questions are
answered in parallel and neither sees the other, so code checks the chosen
verb against the element's advertised actions. A readonly combobox gets
click, neverset-value. A--textpayload with a non-text verb corrects the verb, because the caller supplying text is evidence Jev does not have. - An open surface wins. When a sheet, alert, menu or popover is up, the
script reads the window, then that surface, and offers the surface's elements
instead of the window's. In the window tree those
elements carry
offscreenand would all be dropped. - Disabled, hidden and action-less elements are never offered, nor a cell inside a treeitem (the row beside it acts). Everything else is, including unnamed rows: a row is told apart by the value it holds, and a Choice does better with the full list than with a shortlist.
How the request is shaped
act.mjs sends one call with five questions. They are answered in parallel, so
the speculative ones cost tokens and no latency.
| Question | Type | Asks |
|---|---|---|
target | choice | Which element the intent refers to, plus none. |
command | choice | Which of the 16 interaction verbs it asks for. |
present | noul | Is the thing on this screen at all? |
destructive | noul | Would this be hard to undo? |
needs_text | noul | Does this need text from the caller? |
A Choice accepts 255 options, so up to 254 elements go in one pass (both
scripts). When the first act.mjs pass lands under 0.70, the top five are
re-asked with richer descriptions. A screen with more than 254 elements says so
in notes; use --root @ref.
Deciding through OpenRouter
The decision endpoint is TYPESAFE_BASE_URL, defaulting to TypeSafe's native
https://api.typesafe.ai/v1/systemone. Configured endpoints must use HTTPS;
HTTP is allowed only for localhost or a literal loopback IP, which keeps local
test routers usable. URL credentials are rejected, and redirects fail closed so
the bearer key cannot be forwarded to another endpoint. Point it at OpenRouter's Decisions
router to use an OpenRouter key as TYPESAFE_API_KEY:
TYPESAFE_BASE_URL=https://openrouter.ai/api/alpha/decisions \
TYPESAFE_MODEL=typesafe/jev-1.13 \
TYPESAFE_API_KEY=sk-or-... \
node scripts/jev/run.mjs --app Finder "open the Applications folder"
TYPESAFE_MODEL may stay at its jev-latest default: against OpenRouter a bare
name is sent as the registered ~typesafe/<name> alias. Or pin a routed id such
as typesafe/jev-1.13. Do not set typesafe/jev-latest: OpenRouter answers
400 Model does not exist. OpenRouter's Decisions endpoint is alpha and may
change shape.
Known limits
act.mjsreads the screen once per call.run.mjsreads it before and after each action, and skips the read afterDRILLorWIDEN. Without a pinned region, each read takes a second snapshot when a sheet, alert, menu or popover is open. A read takes about 3 s on a dense app;--rootis far cheaper.act.mjsdoes not retry: a 429 ends the call.run.mjsretries 429, 503 and 529 twice, after 500 ms then 1000 ms, before it fails.- Held input is unavailable, so no sustained key and no drag with hold. See
crates/core/src/commands/input_hold_policy.rs. pressis not resolved here. It needs no element, so send it directly.
Files
| File | Holds |
|---|---|
scripts/jev/policy.mjs | The operations, how a screen is described, and when to stop. No application is touched here. |
scripts/jev/screen.mjs | Which elements a command can reach, which surface is open, how an element is described. Shared by both entry points. |
scripts/jev/desktop.mjs | The only code that speaks to agent-desktop. |
scripts/jev/run.mjs | The loop and its command line. |
scripts/jev/act.mjs | The single-step resolver. |
Checks
WAIT in run.mjs pauses 250 ms before the screen is read again. A failed operation stops the run at once as action_failed, keeping the error code and delivery state, and is never repeated. A failed focus, clipboard write or paste ends the run the same way. A binary whose failed set-value reports no error disposition fails with BINARY_TOO_OLD.
run.mjs exits 0 only when the run stops at done; every other stop, and any error ({"ok":false,"error":…}), exits 1, and a usage error exits 2. act.mjs exits 0 unless the executed command failed or was not executed (executed.code is NOT_EXECUTED when decision is not act); an error exits 1 and a usage error exits 2.
After a paste the field is read back. If it does not hold the requested text the run stops with TEXT_VERIFICATION_FAILED and does not type again. The read-back compares the exact string, so a field that normalizes text (trims, changes case or line endings) reports a failure even when the text landed. The read is retried until the JEV_VERIFY_MS deadline before it fails.
node scripts/jev/act.test.mjs
node scripts/jev/run.test.mjs
node scripts/jev/run.integration.test.mjs
node scripts/jev/evidence.test.mjs
Turns keep native steps, post_state and details for the caller; they are excluded from model history. A verified AlreadyInState step with outcome: "skipped" and delivery: "not_delivered" means no input was needed. A failed postcondition keeps ok: false and any nested action evidence.
FAQ
What does the jev-desktop skill do?
Drive a desktop application from one plain-language goal, or resolve one intent at a time, without ever reading the accessibility tree. Use when automating a desktop app and you want to keep a 150-element JSON tree out of your context. Hand run.mjs a whole goal and it observes, decides and acts until the goal is met; hand act.mjs a single step when you want to keep the plan yourself. Covers which element, which operation, when to look deeper, and when to stop. Needs a clone of the agent-desktop repository and a TYPESAFEAPIKEY.
How do I install jev-desktop?
Run npx skills add https://github.com/vercel-labs/agent-desktop --skill jev-desktop in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/jev-desktop/ (personal) or .claude/skills/jev-desktop/ (project).
Which AI agents can use jev-desktop?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is jev-desktop safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains jev-desktop?
It is published by vercel-labs in vercel-labs/agent-desktop. It has 602 recorded installs.
More from vercel-labs/agent-desktop
agent-desktop
vercel-labs/agent-desktop
Operate desktop applications on macOS, Windows and Linux through native accessibility trees, using the agent-desktop CLI. Use when an AI agent must see or act on a desktop GUI: click buttons, fill forms, read UI state, navigate menus, toggle checkboxes, scroll, drag, type text, press shortcuts, take screenshots, manage windows, use the clipboard, launch or close apps, read notifications. Triggers on: "click button", "fill form", "open app", "read UI", "computer use", "operate desktop", "accessibility tree", "snapshot app", "type into field", "navigate menu", "toggle checkbox", "take screenshot", "desktop automation", "agent-desktop", or any desktop GUI task on macOS, Windows or Linux.
agent-desktop-windows
vercel-labs/agent-desktop
Windows platform guide for the agent-desktop CLI. Lists per command group what works on Windows and what refuses, the first-contact gotchas (PowerShell ref quoting, minimized windows, headed-only input), and where to find shell surfaces, notifications, the cursor overlay, UIPI elevation, Chromium/Electron settle behavior and troubleshooting. Triggers on: "windows desktop automation", "UIA tree", "automate Windows app", "agent-desktop on Windows", "elevated window input blocked", "EACCESSDENIED", or any Windows GUI interaction task.
agent-desktop-macos
vercel-labs/agent-desktop
macOS platform guide for the agent-desktop CLI. Use for desktop automation on macOS: granting Accessibility and Screen Recording permission (TCC), what headed mode does on macOS (physical-first click, type and scroll), surfaces (menu, menubar, sheet, popover, alert), Notification Center, Chromium and Electron apps including launch --cdp, and fixing PERMDENIED, empty accessibility trees, ACTIONFAILED and APPUNRESPONSIVE.
agent-desktop-linux
vercel-labs/agent-desktop
Linux platform guide for the agent-desktop CLI. Lists per command group what works on X11 and on Wayland, how to check the AT-SPI accessibility bus, the first-contact gotchas (app names, Chromium and Electron flags, headed focus, blocked key combos), and where to find lifecycle, screenshot, clipboard, tray, notification and troubleshooting details. Triggers on: "linux desktop automation", "AT-SPI tree", "automate GNOME app", "agent-desktop on Linux", "accessibility bus not available", "empty supportedsurfaces", "wayland screenshot consent", or any Linux GUI interaction task.
agent-desktop-ffi
vercel-labs/agent-desktop
C-ABI bindings over agent-desktop's PlatformAdapter. Consumers (Python ctypes, Swift, Node ffi-napi, Go cgo, C++, Ruby fiddle) link libagentdesktopffi.{dylib,so,dll} and call ad functions directly instead of spawning the CLI binary per call. The canonical observe-act workflow is: adinit → adadaptercreate[withsession] → adsnapshot → read qualified refs (@s8f3k2p9:e5) → adexecutebyref → adfreestring → adadapterdestroy.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
ui-taste
uizze.sh
Give your coding agent better UI taste. Build and polish web and iOS interfaces with Uizze's anti-ui-slop playbooks and optional real-product references. Use for UI design, implementation, redesign, critique, or a final visual review in Claude Code, Codex, Cursor, or Copilot.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.