# Computer control Working the apps on a Mac, a Windows or a Linux machine, the way a browser is worked through its accessibility tree: each window is read as the things in it, each with a reference, and pressed and filled by reference. A picture and a pointer are there for what the list does not say. Downloads for each system are at [control.praecise.com](https://control.praecise.com). What has been tried and what has not is in [What is not done](#what-is-not-done). --- # What it gives an agent | Function | What it does | |---|---| | `computer_control_accounts` | The apps it may use, each with a name and a mode. | | `computer_control_elements` | Read a window as elements, find by words, and click, hover, fill and scroll to an element by reference. Each answer says what appeared, went or changed. | | `computer_control_screen` | A screenshot of the window, zoom, and a pointer and keys by position. | | `computer_control_open` | Start an app or bring up its window. | | `computer_control_record` | Record a window as video, and take pictures from a recording. macOS, Windows, and Linux on X11. | One skill, `use-an-app`, and one agent, `app-operator`. --- # Use it ```ts import { defineConfig } from "@praecise/harness"; import { computerControl } from "@praecise/harness-environments/computer-control"; export default defineConfig({ plugins: [computerControl({ apps: ["TextEdit", "Numbers"] })], }); ``` ```sh praecise computer-control doctor # the helper, its permissions, the apps named praecise computer-control connect # find the machine praecise computer-control sync # list the apps praecise computer-control mode numbers draft ``` Only the apps named in `apps` are listed, read or opened. Nothing else on the machine is. --- # What may happen to an app Each app is an account and starts in `read`. | Mode | What an agent may do | |---|---| | `read` | Read the window's elements and text, and take screenshots. | | `draft` | Also type into fields, move between tabs and links, press what only moves about (Next, Back, Cancel, Search), scroll, and open the app. | | `act` | Also press what commits. Each such press waits for a person unless waived for that app. | What a press is comes from what is pressed: | Pressed | Taken as | Needs | |---|---|---| | A field, whatever it is called | `draft` | `draft` | | A name that removes: Delete, Remove, Erase, Empty, Reset | `destroy` | `act`, and always a person | | A name that pays: Pay, Buy, Checkout, Subscribe | `spend` | `act`, an `amount`, the app's limits, and a person above them | | A name that sends: Send, Reply, Post, Submit, Share | `send` | `act`, and a person unless waived | | A tab, link, row or option with no such name | `draft` | `draft` | | A button or menu item that only moves about | `draft` | `draft` | | Anything else, anything unnamed, a reference never read | `publish` | `act`, and a person unless waived | | A click or drag at a position | `publish` | `act`, and a person unless waived | | Return, or any chord but shift | `publish` | `act`, and a person unless waived | | A character, an arrow, Tab, Escape, Backspace | `draft` | `draft` | Once a window has been read in a conversation, what it showed is treated as written by someone else: sending, paying, removing and anything not known to be harmless all wait for a person, whatever the app waives. The words are English. An app in another language has its commit buttons taken as `publish`, which still needs a person, but removing and paying are not told apart from it. --- # The app on each system The machine is reached through Praecise Control, one small program per system. It is an app a person can see, in the menu bar on a Mac and in the corner of the taskbar on Windows and Linux. Its menu is where a person sees and manages everything it holds: | In the menu | What it does | |---|---| | Agents | How many programs are connected, the app each is using and since when. Pause refuses every request until Resume. Disconnect All closes them from this end | | Stored | How many recordings are kept and how much room they take of what is allowed. Show Recordings opens the folder. Delete All Recordings asks first | | Cache | How many things are remembered from windows, which is how a reference still means the same thing. Clear Cache forgets them; an agent reads again | | Permissions (Mac) | Whether Accessibility and Screen Recording are allowed, and the way to allow them | | Start when I sign in (Windows) | Whether the app starts with the session | The menu is the system's own on each: the menu bar's on a Mac, with named sections and symbols; Windows' own menu and question box, which each version of Windows draws its own way; and on Linux the menu the desktop draws for a tray icon, with nothing drawn by a toolkit of the helper's. So it looks as that version of the system does, without the helper deciding how. What the menu shows a helper also answers (`storage`, `sessions`, `clear`), for a person's own programs. An agent is not offered these. A harness does not start the app. It starts a relay, which passes what it is asked to the app and the app's answers back: ```ts computerControl({ apps: ["TextEdit", "Numbers"], helper: ["/Applications/Praecise Control.app/Contents/MacOS/praecise-control", "connect"], }); ``` | | The app | The relay a harness starts | |---|---|---| | macOS | `Praecise Control.app`, built by `helpers/macos/build-app.sh` | `Praecise Control.app/Contents/MacOS/praecise-control connect` | | Windows | `praecise-control.exe`, built by `helpers\\windows\\build.cmd` | `praecise-computer-helper.exe connect` | | Linux | `helpers/linux/praecise-computer-helper --app` | `praecise-computer-helper connect` | The app answers on a socket or pipe that only the signed-in person's programs can open. On a Mac and on Linux the relay starts the app if it is not running. On Windows the app has to be running in the signed-in session already, which its "Start when I sign in" menu item arranges; a relay started over SSH or by a service then reaches it. It keeps nothing on disk but that socket. Pictures are made when asked for and handed back; none is stored. [PROTOCOL.md](PROTOCOL.md) is what a helper answers. Each program also still runs by itself, answering on its own input and output, which is what `praecise-computer-helper` with no arguments does. Each helper was tried against a small real app with a field, a button that saves and then goes, a line of text and a checkbox (`tests/fixtures`), and what each can and cannot do is below. | | macOS | Linux | Windows | |---|---|---|---| | Read a window as elements | Accessibility API | AT-SPI, on X11 and Wayland | UI Automation | | Press and fill by reference, without the pointer | yes | yes | yes | | Picture of a window | ScreenCaptureKit | X11 only | PrintWindow, also behind another window | | Pointer and keys by position | posted to the app's process | X11, and only in a session of the helper's own | posted to the window under the position | | Chords | not acted on by an app that is not in front | yes, in its own session | refused, except shift with a character | | Menus | listed beside the window, read by reference | in the window | in the window | ## macOS [helpers/macos](helpers/macos/) is one Swift file, for macOS 14 and later. ```sh SIGN="Developer ID Application: Name (TEAM)" NOTARY_PROFILE=profile \\ computer-control/helpers/macos/build-app.sh /Applications ``` It builds for both kinds of Mac, in Swift 6, with one compiler job each at the lowest priority. It is distributed outside the Mac App Store, signed with a Developer ID and notarized: an app that works other apps through the Accessibility API cannot be sandboxed. It needs Accessibility and Screen Recording, which the person allows from its menu. They are granted to the signed app under its own name, so they survive an update. `doctor` says which is missing. Tried against TextEdit kept behind another app: reading, filling, pressing a button, typing, single keys, a picture and a zoom all worked, and nothing was brought to the front. What did not: a Command chord, and Select All pressed in the Edit menu by reference. Both act on whatever has the keyboard, and an app that is not in front has nothing that does. Replace what a field holds with `fill`. Where a piece of work needs such commands, run the apps in a second user session that is the agent's own. ## Linux [helpers/linux](helpers/linux/) is one Python file. It needs `python3-gi` and `gir1.2-atspi-2.0`, and `gir1.2-gtk-3.0` for pictures and held keys on X11. It has to be started inside the desktop session, where the accessibility bus is. Elements, pressing and filling work the same on X11 and Wayland. A pointer and keys by position on X11 can only be the one pointer and keyboard the session has, so they are refused unless the helper is started with `--own-session`, which says no person is working in that session. On Wayland they need the RemoteDesktop portal, and a picture needs the ScreenCast portal; neither is used yet, and both are refused there. Tried in a session of its own (Xvfb, a GTK 3 app) through the whole environment, with `tests/computer-control-real.test.ts`. ## Windows [helpers/windows](helpers/windows/) is one C# file, built with the compiler that is part of Windows. Nothing is installed. ``` computer-control\helpers\windows\build.cmd C:\tools\praecise-computer-helper.exe ``` The app has to run in the session of whoever is signed in. A helper started by itself over SSH or by a service can see no window, and says so; started with `connect` it reaches the app that can. No request can hold the app: one an app does not answer in twenty seconds is given up on and said to be. Only apps with a window of their own are listed; an app from the Store that is shown inside another process's frame is not. Tried against a Windows Forms app in the signed-in session with `tests/fixtures/windows-check.ps1`: 28 checks. --- # Recording `computer_control_record` records one app's window as video and gives back pictures taken from a recording, spread evenly through it. Watching is reading: it needs no more than the app being listed. Recordings stay on the machine, in one folder of the helper's own that only the person can open. They are kept for a day and within a size limit (2 GB unless `PRAECISE_CONTROL_RECORDINGS_BYTES` says otherwise), the oldest removed first, and a recording stops by itself at the length it was started with, at most ten minutes. | | Recording | |---|---| | Linux | X11, through FFmpeg, which has to be installed. Sound from the machine with `audio: true`. Tried through the whole environment: start, a second start refused, stop, three pictures. Sound was not tried | | macOS | ScreenCaptureKit, written by the system's own encoder; nothing to install. Sound from the app with `audio: true`. Tried against a window: start, a second start refused, stop, three pictures. Sound was not tried, and it was not tried through the environment | | Windows | Pictures of the window taken the way one picture is, one after another, written as a Motion-JPEG video (`.avi`) with nothing but what is part of Windows. No sound. Tried through the whole environment; Windows itself reads the file as a video of the right length | --- # Browsers [browser/extension](browser/extension/) is the Praecise Control extension for Chrome and other Chromium browsers. A person opens it, sees the web pages they have open, and presses "Use this tab" beside one. The browser shows its own bar saying the tab is being debugged for as long as that lasts. ```ts import { elements } from "@praecise/harness"; import { signedInBrowser } from "@praecise/harness-environments/computer-control/browser"; const screen = await signedInBrowser(); // waits for a tab to be offered export default elements(screen); ``` What holds it: - **One tab, one site.** The offer is for the site the tab is on. The agent cannot take it to another site, and it is cut off if the tab goes to one, is closed, or the person presses Stop. - **A short list of commands.** A picture, the page as a screen reader is told of it, the pointer, keys, and an address on the same site. The extension refuses anything else: nothing is evaluated in the page, and nothing is asked about cookies, storage or the network. - **This machine only.** The extension connects to 127.0.0.1, and the listening side accepts only this extension. Tried in a real Chromium with `tests/browser-real.test.ts`: offered from the extension's own popup, read, filled, pressed, pictured, refused another site, and cut off when stopped. Each step took well under a second. It is loaded unpacked for now (chrome://extensions, Developer mode, Load unpacked). ## Firefox and Safari [browser/extension-page](browser/extension-page/) is Praecise Control for the browsers that give an extension no debugger. It asks for nothing in advance: opening it on a tab and pressing "Use this tab" is what lets it into that tab, on that site. It reads the page from inside it, as a screen reader would be told of it, and acts with the events a page script can make. `signedInBrowser()` is the same call. What differs from Chrome: - A click, a filled field and a chosen option do what a person's would. A key does not, so the keys with an obvious meaning are carried out by hand (Return submits a form or presses what has the focus, Tab moves on, Backspace deletes, select all selects), and any other chord is refused. - A drag is refused. - A picture needs the tab to be the one in front in its window. - What a password field holds is never read. - It reads into a component's own tree where the page leaves that open. Tried in a real Firefox 158 through geckodriver (`tests/firefox-real.test.ts`) and in a real Chromium (`tests/browser-page-real.test.ts`). --- # From any agent `mcp.mjs` serves Praecise Control to whatever agent is asking. The agent is given the apps as tools: `computer_control_accounts`, `computer_control_elements`, `computer_control_screen`, `computer_control_record` and `computer_control_open`. A screenshot arrives as an image. Everything is still held to each app's mode. Set it up once, in a folder of its own: ```sh cp -r node_modules/@praecise/harness-environments/computer-control/app praecise-control && cd praecise-control npm install export PRAECISE_CONTROL_APPS="TextEdit,Numbers" npx praecise computer-control doctor npx praecise computer-control connect && npx praecise computer-control sync npx praecise computer-control mode textedit draft ``` `` below is `node /node_modules/@praecise/harness-environments/computer-control/mcp.mjs `. Three kinds of agent are served from the one app, and none of them is told apart by name: each is answered by how it asks. | The agent | How it asks | What it is given | |---|---|---| | Speaks the current revision of MCP (2026-07-28): praecise-harness, a Tenzro node, which say so with every request and open with `server/discover` | ``, or ` --http` | Each request handed to the app exactly as it came | | Opens with the earlier handshake: Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI | ``, or ` --http` | The handshake answered, and each request put to the app in the app's revision | | Calls functions the OpenAI way and is no MCP client: a loop over Chat Completions or Responses, a Tenzro node's `/v1/chat/completions` among them | ` --tools openai` for the definitions, ` --call ''` for each call its model makes | The tools as function definitions, and each result as text and pictures | Over HTTP it listens on this machine only, at `http://127.0.0.1:17346/mcp`. It refuses a request from a web page, and wants the token it keeps in `/.praecise/control-http.token` as a bearer. Nothing is pushed: a request is POSTed and answered. Each client's own way of being told, from its documentation as read on 26 Nov 2026: | Client | How | |---|---| | Claude Code | `claude mcp add --env PRAECISE_CONTROL_APPS=TextEdit,Numbers praecise-control -- `, or over HTTP: `claude mcp add --transport http praecise-control http://127.0.0.1:17346/mcp --header "Authorization: Bearer "`. Both tried with 2.1.323; the first with 2.1.332 as well: connected | | Codex | `codex mcp add praecise-control --env PRAECISE_CONTROL_APPS=TextEdit,Numbers -- `, or `[mcp_servers.praecise-control]` with `command`, `args` and an `env` table in `~/.codex/config.toml`. Not tried | | Cursor | `.cursor/mcp.json` or `~/.cursor/mcp.json`: `{"mcpServers":{"praecise-control":{"command":"node","args":["/mcp.mjs",""],"env":{"PRAECISE_CONTROL_APPS":"TextEdit,Numbers"}}}}`. Not tried | | VS Code | "MCP: Add Server" in the Command Palette, then "Command (stdio)". Not tried | | Gemini CLI | `gemini mcp add -e PRAECISE_CONTROL_APPS=TextEdit,Numbers praecise-control node /mcp.mjs `, or the same `mcpServers` shape in `~/.gemini/settings.json`. Not tried | | A Tenzro node, or anything else on the current revision | `` or ` --http`. Tried with requests made the way that revision makes them, not with a Tenzro node | | ChatGPT, and any assistant that calls from somewhere else | The public route, below: the assistant is given `https://praecise-control.app.praecise.cloud/mcp` and the person signs in with their Praecise account. Not tried with ChatGPT itself | Why there is a file for this at all: praecise-harness speaks the current revision of MCP and no earlier one, and most clients still open with the earlier handshake. Claude Code 2.1.332, the latest on the day, was refused by `praecise mcp` and connected through `mcp.mjs`. `mcp.mjs` answers the handshake and passes each request to the app unchanged; the harness is as it was. ## The public route For an assistant that is not on the computer, nothing is opened on the computer. The computer connects out to a relay and stays connected, the assistant calls the relay, and the relay passes each request to that computer and the answer back. ```sh --cloud ``` That signs the person in with their Praecise account, in their own browser, and connects this computer to `https://praecise-control.app.praecise.cloud`. Stopping the program ends it. The sign-in is kept in the keychain on a Mac, or in a sealed file under `PRAECISE_VAULT_KEY` anywhere else. The assistant is then given `https://praecise-control.app.praecise.cloud/mcp`. It finds where to send its person from there, the person signs in to their Praecise account, and the consent page lists that person's connected computers. The one they pick is the only one that assistant's token is good for. What holds it: - **The person's account decides.** An assistant has a token the person gave it, for one computer. The computer has a token of the person's own. The relay checks both against the account service's keys, and passes nothing between two different people. - **The relay keeps nothing.** No request, answer or picture is written anywhere on it, and when the computer disconnects there is nothing of it left there. - **The app still decides.** A request that arrives this way is held to each app's mode exactly as one made on the computer is. - **It ends where the person ends it:** stopping the program, or ending the assistant's connection on their account page. The relay is `relay/server.mjs`, with nothing to install beside Node, and runs as the site `praecise-control` on Praecise Cloud. The account service knows it as the service "Praecise Control". Anyone can run a relay of their own against an account service of their own: it needs its address, the account service's, and a secret the two share. Tried: the whole route against a stand-in for the account service (`tests/control-relay.test.ts`), and the account service's own consent flow with the relay's question (its tests). The live relay answers the account service's signed question and refuses an unsigned one, and the live account service leads the computer's program to its sign-in. Not tried: a person signing in and an assistant reaching their computer through the live route, and ChatGPT itself. A press that needs a person is refused over MCP with a line saying so. The harness does not take an approval over MCP, on purpose: a message from a client must not be what approves something. Where the client itself asks its person before each tool call, an app's sending and publishing can be waived for that app, by a person: ```sh npx praecise computer-control waive textedit publish send npx praecise computer-control waive textedit none ``` Removing and paying cannot be waived, and once a window has been read in a conversation everything that commits waits for a person whatever is waived. `waive` needs a harness later than 1.2.1. --- # What a helper answers A helper is a small program for one system. It is started once and spoken to in lines of JSON on its standard input, and answers on its standard output, one line each: ``` {"id": 1, "method": "read", "params": {"app": "com.example.mail", "filter": "interactive"}} {"id": 1, "result": [...]} {"id": 2, "error": "e7 is no longer in the window; read it again"} ``` Anything it has to say that is not an answer goes to standard error. ## Rules - **One window.** Every method but `hello` and `apps` takes `app`, the id `apps` gave. It works that app's main window and nothing else. - **Window pixels.** Every position and box is in the pixels of what `screenshot` returns for that window, from its top left. The helper does any scaling, both ways. - **Roles in one vocabulary.** `role` is the lower-case ARIA name where there is one: `button`, `link`, `textbox`, `searchbox`, `combobox`, `checkbox`, `radio`, `switch`, `slider`, `tab`, `menuitem`, `option`, `listitem`, `row`, `cell`, `heading`, `text`, `image`, `window`. The environment decides what a press is from the role and name, so a helper that passes the system's own role names through weakens the guard. - **A reference is one thing.** `ref` names the same element for as long as it is there. `locate` and every method that takes a `ref` look the element up as it is now and answer with an error if it has gone, is hidden, or has a different role or name than when it was read. A reference is never taken to mean whatever is in its place. - **Menus that are not in the window** are listed beside it in a full `read` as one `menubar` holding a `menuitem` for each, by name only. `read` with one's `ref` gives what is in it. They are pressed, never pointed at: `locate` puts them outside the window. - **Leave out the layout.** Unnamed containers are left out and what is in them kept. - **Refuse, do not fall back.** A method the system cannot perform for this app is an error that says so. A helper does not quietly do it another way that takes the person's pointer or brings a window to the front. ## Methods | Method | Params | Result | |---|---|---| | `hello` | | `{ system, user, host, can, needs }`. `system` is `macos`, `windows` or `linux`. `can` lists which of `activate`, `fill`, `press`, `release`, `hold` it has. `needs` is `[{ name, ok, fix }]`: what it needs from the system and whether it has it. | | `apps` | | `[{ id, name }]`: what is installed or running. The environment shows an agent only the ones it was told of. | | `open` | `app` | Start the app, or bring up its window. | | `window` | `app` | `{ width, height, title }` of its main window, in screenshot pixels. An error if it has none. | | `screenshot` | `app`, `region?` | `{ mime, data }`, base64. With `region` (`{ x, y, width, height }`), that part enlarged. | | `read` | `app`, `filter?`, `depth?`, `ref?` | Elements: `{ ref, role, name?, value?, states?, box?, children? }`. `filter: "interactive"` is a flat list of what can be pressed or typed into. `ref` reads one element and what is in it. | | `locate` | `app`, `ref` | The element as it is now, brought into view, with `box`. | | `activate` | `app`, `ref` | Press the element without the pointer. | | `fill` | `app`, `ref`, `value` | Replace what a field holds. | | `click` | `app`, `at`, `button`, `count`, `modifiers` | | | `move` | `app`, `to` | | | `drag` | `app`, `from`, `to`, `modifiers` | | | `scroll` | `app`, `at`, `by` (`{ dx, dy }` in clicks of the wheel), `modifiers` | | | `type` | `app`, `text` | | | `key` | `app`, `combo` (`"Return"`, `"ctrl+s"`) | | | `cursor` | `app` | `{ x, y }` | | `press`, `release` | `app`, `button` | Hold a button down, and let it go. | | `hold` | `app`, `combo`, `seconds` | | A helper that lists `record` in `can` also answers: | Method | Params | Result | |---|---|---| | `record_start` | `app`, `seconds?` (the longest it may run), `audio?`, `fps?` | `{ recording, seconds, width, height }`. One recording per app at a time. | | `record_stop` | `recording` | `{ recording, path, mime, bytes, seconds }`. The file stays on the machine. Asked again of one that has ended, it says where the file is. | | `frames` | `recording`, `count?` | `{ recording, seconds, frames: [{ mime, data, name, at }] }`: pictures spread evenly through it. | Recordings are kept in one folder of the helper's own, for a day and within a size limit, the oldest removed first. A helper that cannot keep within that refuses to start. What a person sees in the app's menu, a helper also answers, for a program at their own terminal. The environment does not offer these to an agent. | Method | Params | Result | |---|---|---| | `storage` | | `{ folder, bytes, limit, elements, recordings: [{ name, bytes, at }] }`: what is kept on disk, and how many things are remembered from windows. | | `sessions` | | `[{ since, app, last }]`: the programs connected to the app now, with the app each last asked about. | | `clear` | `what`: `recordings` or `cache` | `{ removed }`. A recording that is still running is left. | `states` are words from: `disabled`, `focused`, `checked`, `partly checked`, `pressed`, `expanded`, `collapsed`, `selected`, `required`, `invalid`. --- # Computer control for agents: state of the frontier Researched 26 Nov 2026, for an environment that lets a harness agent use a Mac, a Windows or a Linux machine the way Claude Code uses Chrome. "Anthropic", "Microsoft" and "Apple" items are from their own pages. "Paper" items are from the paper named. "Community" items are project READMEs and write-ups, not verified here. ## What "the way Claude Code uses Chrome" is Claude's Chrome control is better than plain computer use for four reasons, and each is a property we can reproduce on a desktop: 1. **Elements, not pixels.** The page is read as an accessibility tree in which every element has a reference (`link "Getting started" [ref_2]`), and a click names the reference. Coordinates remain as the fallback (Anthropic, `browser_toolset_20260801`). 2. **Reading is separate from looking.** `read_page` (filters `interactive` / `all`, `depth`, a subtree by `ref`, 50,000 character cap), `find` (20 matches) and `get_page_text` answer most questions without an image. 3. **The person's own session.** An extension plus a native messaging host drives the signed-in browser, with permission asked per site. 4. **Several actions in one turn**, run in order, stopped at the first failure. Anthropic's desktop toolset (`computer_toolset_20260801`, 17 members) has only the fourth. It is screenshots and coordinates; its page describes no element references. Claude Code's own desktop control is macOS only in the CLI, takes the screen (other apps are hidden, one session holds a lock), and tiers apps: view only for browsers, click only for terminals and IDEs, full for the rest. ## What the harness has today `computer(screen)` over a `Screen` (screenshot, click, drag, scroll, type, key, zoom, wait, batch halt), sent as an endpoint's native computer tool where it names one. `browserScreen` is the one screen that ships: a headless Chromium on its own profile, driven over the DevTools protocol by coordinates. The call is `effect: "write"` and its output is untrusted. Missing: any element channel (read, find, references), any desktop driver, apps and windows as things an agent can name, the browser toolset as a native tool, and the person's signed-in browser. ## Findings **1. Three channels on one machine beat pixels (paper: Hybrid Computer Use, Microsoft Research, arXiv 2610.41432, 30 Oct 2026).** Programmatic (shell, files), semantic (accessibility tree with references) and visual (screenshot and pointer), chosen by the model with no separate planner. Against a screenshot driver on OSWorld 2.0 with the same model: partial score 72.4 against 68.8, tool calls 78 against 112, input tokens 0.94M against 2.18M. On OSWorld 1.0, removing the visual channel changed the score within run-to-run variation (66.1 against 65.6); removing the semantic channel cost about 3 points and 5 steps. The element channel carries the work and vision is the fallback. Gains differ by model; Claude's step counts barely moved. **2. The details that make references safe (same paper).** A reference is resolved against the live element before each action and a replaced or ambiguous one fails (`stale_ref`) and is never redirected. Coordinate input is refused if the window layout changed since the last screenshot. Each action returns its effect and a diff of the tree, so a screenshot is only taken when asked for. Up to 64 actions per call. **3. Working without taking the person's pointer is possible on all three, by different means.** | | Read elements | Act on elements | Pointer and keys | See | Out of the person's way | |---|---|---|---|---|---| | macOS | AXUIElement | AX actions (`AXPress`, set value) | CGEvent posted to one process; app dependent | ScreenCaptureKit, one window | A second user session is the robust route (community: backseat). Virtual displays and SkyLight are private API. | | Windows | UI Automation | UIA patterns (Invoke, Value, Toggle, ExpandCollapse) need no focus | SendInput (takes the foreground) | Windows.Graphics.Capture, one window | A separate session under its own account. Microsoft's Agent Workspace is this, in private preview, off by default. | | Linux | AT-SPI | AT-SPI actions | RemoteDesktop portal and libei on Wayland; XTEST reaches only XWayland windows | ScreenCast portal over PipeWire | A second headless session (community, GNOME). KDE, GNOME and COSMIC each differ. | Apple publishes no agent API for the whole system; App Intents and Xcode's MCP tools are what is public, and reports of system-wide MCP in macOS 27 conflict. OpenAI's Codex (16 Apr 2026) is the shipped proof of background control with a separate cursor and several agents at once on macOS. **4. Pixel control is unsafe as it stands (papers: RedTeamCUA, OS-Harm, MirrorGuard).** Injected instructions succeeded 42.9% of the time against one Claude computer-use agent and 7.6% against the most resistant agent tested. Adding the accessibility tree to screenshots cut that substantially. A check on each proposed action took one agent from 30.0% to 1.8% on OS-Harm. Adaptive attacks do better than fixed benchmarks, so these are lower bounds. Anthropic's advice is a dedicated machine or container, no credentials, an allowlist and a person confirming consequential actions. **5. Scores are saturating on the old benchmark and not on the new one.** OSWorld- Verified leaders are reported at 86 to 90% against a human 72.4%; trackers disagree on the order. OSWorld 2.0 (long tasks) is near 20 to 35% binary completion. ## What follows for us The opening is the one nobody has shipped as a product: the browser toolset's element model on the desktop, on three systems, behind one contract, with a guard that knows what is being pressed. A pixel click cannot be classified. An action on a button whose role and name are known can. **In the harness (general, so both benefit):** - Extend `Screen` with optional `read`, `find` and `act` on a reference, a target that is a reference or a point, `stale` failures, a diff with each action, and `apps` / `windows`. A screen without them stays complete, as today. - Send it as an endpoint's native browser toolset where the endpoint names one, as `computer` is today, and as ordinary functions everywhere else. - Give `browserScreen` the element channel through the DevTools accessibility domain. This is the smallest step and is testable now. - Refuse coordinate input after a layout change. **In this repository, one environment:** - Apps are the accounts. `discover` lists them, each starts in `read` (see only), `draft` allows typing and navigating, `act` allows what commits. This is Claude Code's three tiers, held by the guard that already exists. - Each element action is given one of the six kinds from its role and name (a Send button sends, a Delete item destroys, a Pay button spends), and anything unclear publishes, which needs a person. What is read from a screen taints what follows. - The sign-in is `local`: the system permissions found, not granted by us. `doctor` lists what is missing (Accessibility and Screen Recording on a Mac, the portal on Linux, the session on Windows). - One small native helper per system speaking one protocol, signed. A Mac's permissions attach to the signature, and Windows lets only a signed, installed program drive elevated windows. - A second session as the unattended mode on each system, and the person's own session as the attended one. - The signed-in browser through an extension and native messaging. Chrome no longer opens the debugging port on a default profile. ## Order, and where it stands | Step | State | Caution | |---|---|---| | 1. Element channel in `Screen` and `browserScreen` | Built in the harness as `elements(screen)`: read, find, text, click, hover, fill, scroll to, what changed after each action, stale references refused. Checked against a real Chromium | An endpoint's own browser toolset is not declared natively yet; it also wants tabs | | 2. This environment | Built against a stand-in helper: apps as accounts, the three modes, each press classified, the protocol in PROTOCOL.md | The words that classify a press are English | | 3. macOS helper | Written. Tried against TextEdit behind another app: reading, filling, pressing, typing, single keys, a picture and a zoom work and nothing comes to the front. A Command chord and an Edit-menu command do nothing in an app that is not in front | Not signed. Work that needs such commands wants a second user session | | 4. Linux helper | Written. Tried through the whole environment against a GTK app in a session of its own: reading, modes, filling, pressing, stale references, a picture, pointer, typing and chords | Wayland has no picture or pointer yet (portals); pointer on X11 only with `--own-session` | | 5. Windows helper | Written. 28 checks against a Windows Forms app in the signed-in session: reading, filling, pressing, stale references, a picture behind other windows, posted clicks and typing | Chords are refused; must run in the signed-in session; Store apps in a shared frame are not listed | | 6. Browser extension | Written for Chrome and other Chromium browsers as Praecise Control: one offered tab on one site, a short list of commands, cut off when it leaves the site or is stopped. Tried in a real Chromium | Loaded unpacked; not in a store. Safari and Firefox have no debugger to rest on and need another design | | 7. Measure | Not started | OSWorld 2.0, Windows Agent Arena, MacAgentBench for work; RedTeamCUA and OS-Harm for safety; same model with and without the element channel. A skip is not a pass | Not built from the list above: refusing coordinate input after a window's layout changes. A window that changes size is treated as a new screen, which covers resizing and nothing else. ## Praecise Control, as a product (owner, 26 Nov 2026) What was decided: the helpers and extensions ship as one product named Praecise Control. On each system it is an app a person can see, in the menu bar or the taskbar, that says what an agent is using and stops it. There is an extension of our own for Chrome, Safari and Firefox. Each follows the rules of the place it is distributed. It keeps nothing that grows without bound. An agent can do what a person can: press, fill, type, drag, scroll. What the helpers and the extension already do toward that: every action above is there; nothing is written to disk by any of them, so there is no cache; an agent sees only the apps named and the one tab offered. What the research says about distribution, and how sure it is: | Where | Finding | Source | |---|---|---| | Mac App Store | A sandboxed app cannot rely on controlling other apps through the Accessibility API. Apple's own engineers point such apps to Developer ID signing and notarization outside the store | Apple Developer Forums replies; the guideline text itself was not read | | Chrome Web Store | The narrowest permissions that do the job, each one justified; powerful permissions and new developers are reviewed longer. Policy changes on data collection are enforced from 1 Aug 2026 | Chrome's program policies and its 2026 policy post; nothing found that names the debugger permission | | Firefox | No debugger API for extensions. Firefox has dropped the DevTools protocol for WebDriver BiDi | Third-party write-ups; Mozilla's own pages not read | | Safari | An extension ships inside a Mac app. No debugger API | Not confirmed from Apple's pages in this pass | | Microsoft Store | Desktop apps are packaged as MSIX and signed by the store. Nothing found on driving other apps' windows | Microsoft Learn; the policy text was not read for this | Where that stands: 1. The Mac app: built as a menu bar app for both kinds of Mac and signed with the company's Developer ID. It answers through its relay. Not notarized: no notary credential is stored on the Mac that built it. Its permissions have to be allowed by a person from its menu. 2. The Windows app: built as an app in the corner of the taskbar, with a relay. The whole environment was run through it from another machine over SSH. 3. The Linux app: built, with a relay that starts it. The whole environment was run through it in a session of its own. Its icon was not seen: there was no panel. 4. Firefox and Safari: one extension, `browser/extension-page`, that reads and works the page from inside it. Tried in a real Firefox and a real Chromium. For Safari it is wrapped in a small Mac app by Apple's converter, built and signed, and not yet run in Safari. 5. Icons are drawn from the Praecise mark. Store listings and installers: not started. 6. For Claude Code, Codex and other MCP clients: `mcp.mjs`. Claude Code connects; the others are documented from their own pages and not tried. 7. Recording a window and taking pictures from a recording: macOS and Linux on X11. Windows not written. Before any of these is submitted, read the store's current policy text itself. The table above is not enough to submit on. ## Not confirmed - Current leaderboard order, and Agent Workspace's status after its preview notes. - How Claude's extension keeps references (community sources only). - Which Mac apps ignore events posted to a process; to be measured per app. - The paper's per-system API list and several figures were read from a truncated page; check the PDF before quoting. ## Sources - https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool - https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool - https://code.claude.com/docs/en/computer-use and https://code.claude.com/docs/en/chrome - https://arxiv.org/abs/2610.41432 (Hybrid Computer Use) - https://arxiv.org/abs/2505.21936 (RedTeamCUA), https://arxiv.org/abs/2506.14866 (OS-Harm), https://arxiv.org/abs/2601.12822 (MirrorGuard), https://arxiv.org/abs/2506.16042 (OSWorld-Human) - https://support.microsoft.com/en-us/windows/ai/ai-features/experimental-agentic-features - https://developer.apple.com/wwdc26/guides/macos/ - https://openai.com/index/codex-for-almost-everything/ - https://yutori.com/leaderboards/osworld-verified - Community: github.com/akshithio/backseat, github.com/minghinmatthewlam/computer-use-mcp, github.com/Kasempiternal/agentcontroller, github.com/Virtual0ps/computer-use-linux, github.com/zavora-ai/computer-use-mcp/pull/49 --- # What is not done - **The Mac app is signed and not notarized.** Notarizing needs a credential stored on the Mac that builds it. The Windows app is not signed and has no icon of its own. Nothing has an installer. - **No menu was seen or pressed.** What each menu item does was tried through what a helper answers; the menus themselves, and the Linux icon, were not looked at. - **Wayland** has elements, pressing and filling, and no picture or pointer. - **Each helper was tried against one small app.** Which real apps ignore posted events, or describe themselves poorly to assistive technology, is not known. - **On a Mac the environment was not run end to end**, only the app and its relay. On Windows and Linux it was, through each app. - **It needs a harness later than 1.2.1**, for `elements()` and for an action whose kind depends on the call. Both are on the harness's main branch and not on npm. - **The Safari app is built and signed, and has not been run in Safari.** Its project is in `browser/safari`, made by Apple's converter from `browser/extension-page`, and `browser/safari/build.sh` builds it. Turning it on in Safari is a person's to do. - **The Firefox and Safari extension's own button was not pressed.** It was tried in a real Firefox and a real Chromium with the extension let into every page in advance; the press that lets it into one tab cannot be made by a test. - **No extension is in a store.** - **It has not been measured.** The benchmarks to run are listed in FRONTIER.md.