Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pi-agent-computer-use

Latest version: v0.2.3

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: alexshpunt
108 Stars
9 Forks
11 Versions
1.9K Downloads
TypeScript Repo language

Scan summary

pi-agent-computer-use was last scanned on 25 Nov 2026 at version 0.2.3. Risk score 40 of 100 (medium). High-severity rules fired.

  • Releases: 11 versions; the latest 4 were published within 2 days (24 and 25 Nov 2026).
  • Findings: 1 rule fired in version 0.2.3 (1 high). The score describes this version only.
  • Downloads: 1,914 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.3 LATEST 25 Nov 2026 1 rule fired
0.2.2 24 Nov 2026 1 rule fired
0.2.1 24 Nov 2026 1 rule fired
0.2.0 24 Nov 2026 Not shown
0.1.5 9 Nov 2026 Not shown

Rules fired in 0.2.3: 1

Findings

1 High

Findings for v0.2.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Windows security tampering combined with other techniques

The package combines two or more of these: requesting administrator rights while hiding the window, adding Windows Defender exclusions or disabling protection, disabling Smart App Control, and downloading and running a program. Each has narrow legitimate uses; together they suggest an attempt to evade or weaken the machine's protection.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.2.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

npm version npm downloads CI status MIT license

Pi package Works with Pi Agent IDE Platform: Windows and WSL

Ask your agent to do something on your computer, for example "open Paint and draw a house", "fill in this form in my browser" or "check what the settings window says". It finds the window, reads its controls and screenshot, acts, and reads it again to see whether it worked.

Demo: an agent paints a picture in GIMP

We give a Pi agent this reference picture and an empty canvas in GIMP on another Windows machine, and ask it to paint a copy. It paints every mark itself with GIMP's tools: filled selections, soft shading inside them, tapered pen strokes for the line art, hatching and hand-drawn lettering. Along the way it compares its canvas with the reference and fixes the biggest differences. The animation above is a 61-minute run of gpt-6.1-sol, sped up about 120 times.

We run it with different models. Click a painting to see it next to the reference and watch the full time-lapse:

The agent follows a painting skill that breaks the work into stages and gives it a tested GIMP toolkit. demo/gimp-painting has the prompt and the script that sets up the machine, records the screen and makes the time-lapse, so you can repeat the run with another model or picture.

Summary

Pi Agent Computer Use gives the Pi coding agent one interface for every Windows app, browsers included. The agent finds a window, reads its accessibility tree and screenshot, and then types, clicks, drags or runs a browser action. Input always targets the latest thing the agent saw, and every result says what was delivered and what is still unknown.

Work How
Find windows, apps and displays Search or Read computer:machine/local/windows, /apps and /displays
See a window Read computer:window/... for its UI tree, short element hints and a screenshot
Act on what it saw computer_click, computer_type and the other input tools on the window, by ref, locator or point
Work in web pages Playwright snapshots and actions in browsers it opens or attaches to
Check the result computer_wait, change lists and fresh Reads
Work away from your desktop Windows Sandbox, isolated agent sessions and other machines over SSH

Native capture and input come from our fork of Cua Driver, alexshpunt/cua. It adds the Windows features computer use needs and upstream doesn't have yet: held brush paths, key holds, input timelines with pen pressure, window management, strict UI Automation actions, pausing while you use the mouse and more. FORK.md lists them all. Playwright handles web pages.

With Pi Agent IDE or without it

Every action has its own tool with typed fields: computer_open, computer_click, computer_type, computer_wait, computer_browser and so on. They stay out of the tool list until the agent looks for them with tool_search, so a session that never touches the computer pays nothing for them.

If you have Pi Agent IDE, looking goes through its read, search and delete tools, so the agent uses the same tools for files and windows, and the results show up in the IDE's tool panels. Without the IDE, computer use adds computer_read, computer_search and computer_delete instead. Both modes take the same addresses and work from Codemode scripts. Pi Agent IDE projects its Read and Search values for scripts; standalone tools return their own values. Each Pi session picks the mode itself, so you don't configure anything. Computer-address help in the shared tools loads on demand too; Computer resources explains discovery.

YOLO and Safe mode

Computer use is built for an agent you trust with your desktop. In YOLO mode, the default, the agent can read and operate any window you point it at, read whole displays, attach to browsers that are already running and start programs by path. You get the most out of it this way.

YOLO also means the agent can click and type anywhere you could. If a misclick would fuck up something you care about, switch to Safe mode with /computer-mode safe, or give the agent a sandbox. In Safe mode the agent only sees and touches windows it opened itself, and it can't read displays or start arbitrary programs. Safe mode is an ownership policy for this extension, not an OS security boundary. It does not restrict shell tools, files, networking, the clipboard, shared application state or what an authorized app can do.

UI structure and screenshots

A window Read returns the app's UI Automation tree: roles, names, values, enabled state and bounds. Each element gets a short hint such as 1:a, and the hints are drawn on the screenshot too, so the agent can point at a button by its hint instead of guessing coordinates.

From there the agent can:

  • search the tree of an observation without capturing again;
  • inspect, scope or highlight one element, or read its full text;
  • ask for only the image, only the ui, or both (full);
  • see what each action changed: the UI rows, and a small picture of the window or page with the changed areas outlined and numbered, the one at the input first, plus enlarged before/after crops of them;
  • read only what changed since the last read with changes;
  • run ocr on canvases and games, or regions for icons and text areas found by Cua perception;
  • name a viewport, a rectangle of a window such as a game canvas, with computer_view: it shows that part at the window's own resolution, follows the window, takes clicks at points of its image and reports what changed only there;
  • crop one element at full resolution;
  • record a short sequence of frames with computer_record to watch an animation or a progress bar, then pick the frames it needs;
  • watch a window or a viewport in the background while acting on it, such as panning a panorama by dragging: each action's receipt names the frames it covered, and stopping returns a contact sheet with the actions marked, change statistics and the frames as files;
  • read a window's state to see whether the app is hung and how much memory it uses.
Input

Input goes to a window by its address and targets an element by a ref from the latest read, a Playwright locator, or a point. It can:

  • type literal text, press keys and chords, and hold several keys at once;
  • click, double and triple click with any button, right-click, hover and scroll by wheel detents;
  • drag in straight lines or draw continuous brush strokes through many points;
  • run a timeline of timed key, button, mouse and pen events, with raw relative mouse motion for pointer-locked apps and pen pressure and tilt;
  • invoke, select or set values through UI Automation, and open menu items by their labels.

Input goes to the agent's window in the background, so your pointer and focus stay put and several agents can work at once. What the agent sees as an element it presses through UI Automation. Points, keys, text and drags go to the window's handle as window messages, with modifiers held only in that window's own key state. An app can ignore such messages; the agent then repeats the action with the focus taken for that one action, and the tool does so by itself where the driver knows the window needs it (WPF and XAML pointer input, Blender). Foreground input brings its window to the front and runs at once, even while you use the computer. On Windows, automatic foreground return requires supported evidence that the receiver read every inserted event. Hover and foreground coordinate scrolling do not automatically restore focus or move the pointer back. Receipts report uncertainty without replaying input. To keep foreground UI work off the human desktop, use a sandbox or an isolated session.

Press Escape three times within a second to stop agents on your desktop that have the shortcut enabled. Their input stops at once, and they refuse to act until you run /computer-mode safe or /computer-mode yolo in their sessions. An agent's own Escape doesn't count. Sandboxes and isolated sessions keep running.

The shortcut is enabled by default. Open /computer-settings to change it globally or for a trusted project. Restart Pi and reconnect remote machines for the change to take effect. The setting applies to local and connected human desktops in this Pi session; disabling it removes their triple-Escape emergency stop.

Several Pi sessions can use the same desktop. Their actions take turns: a string one agent types or a drag it makes finishes before another agent's next action starts.

Results and checks

Every action returns a receipt. delivered means it went through, refused means nothing was sent, and unknown means it may have reached the app, so the agent reads again before doing anything else instead of repeating it. Each action also says what it changed in the window, or that nothing changed, so the agent sees the effect without reading the window again. computer_wait waits for UI conditions or checks them once. In Codemode the receipts are plain objects, so a script chains actions and branches on outcome without parsing text.

Browsers and apps built on them

Web pages go through Playwright, with aria snapshots, element refs, locator actions and Playwright's waiting. The agent can:

  • open its own Chrome, Edge or Firefox with a throwaway profile, or with a persistent agent profile for sites that need a login;
  • attach to a Chrome or Edge that is already running, including your own profile if you let it;
  • attach to browsers inside Electron, CEF and WebView2 apps, and to VS Code's built-in browser through the included Pi Browser Bridge;
  • switch tabs, answer JavaScript dialogs, upload and download files, run page code and read the console and network log.

The browser's toolbar, tabs and system dialogs are still ordinary windows, so the agent can use native input there as well.

Sandboxes, sessions and other machines
  • Windows Sandbox gives agents a disposable Windows desktop with a real mouse and networking enabled. Windows runs one per machine, so all agents on the machine share it: each sees only the apps it starts there, their clicks, drags and keys take turns, and each agent's windows show as live tiles on the desktop of the sandbox's machine, also when Pi runs elsewhere. Screen zones, which give each agent its own part of the sandbox screen (up to four agents), are off unless .pi/computer-use.json sets "sandbox": {"zones": true}. The sandbox stops 10 minutes after its last agent leaves. The extension maps its runtime and control files read-only and a private output folder writable. Requested imports are read-only unless writable is set; export is writable.
  • Sandbox setup turns Smart App Control off only inside the disposable guest. The driver requires a bearer token, and the identity service requires mutual proof. Their traffic crosses temporary guest ports and host-loopback relays.
  • An isolated agent session is a temporary Windows user session on the same machine with its own desktop, clipboard and keyboard. It has no pointer device, so clicks and drags often don't reach apps there. Several can run at once. Its network policy allows ingress and egress. Runtime and control files go into the temporary user's private workspace; user folders are not shared automatically. Each session streams its windows and the agent's cursor to a loopback hub on its host machine, and the machine shows them as live tiles on the human's desktop, under all windows; Ctrl+Alt+Space raises them over all windows (Session tiles, Session window streams).
  • In verified Windows checks, their foreground UI stayed off the human desktop. This is desktop separation, not hostile-code containment or protection from a local administrator.
  • Browsers the agent opens use throwaway profiles that get deleted when the session closes.
  • Another Windows machine with WSL can be controlled over its existing SSH connection. Temporary loopback listeners and SSH forwards carry control traffic; the extension does not configure a new externally reachable host listener.
Files, clipboard and recordings

Each session has its own folder on the controlled machine for files an app opens or saves. In YOLO mode the agent can also read and write the clipboard, record the screen to video, and record what the machine plays, optionally with a transcript.

Computer visuals

The agent's cursor carries the Pi session's name, or the project folder's name until the session has one, so you can tell agents apart. A card beside each action names it and shows the text being typed, except into password fields.

Open /computer-settings to change the access mode, Escape stop, screenshot settings and visual preferences. Choose Project or Global first. Global settings apply across projects, while settings in a trusted project override individual global values. Select inherit to clear an override; for numeric values, enter inherit. The selected setting shows its effective value and source. Global preferences are stored in the Pi agent directory as computer-use-settings.json; project preferences are stored in .pi/computer-use-settings.json. A mode selected with /computer-mode remains in effect on its session branch, even when a scoped default differs. Existing session-branch visual preferences remain the fallback where no scoped value is set. An existing .pi/computer-use.json escapeStop remains a project override until changed in the panel. Screenshot changes affect future captures. A preview shows the final operation image; it does not prove delivery to a model.

Platforms

Computer use works on Windows 11 x64, with Pi running on Windows itself or in WSL, on the same machine or on another one over SSH. Linux and macOS aren't supported: window control there isn't verified, so no runtime ships for them and computer use refuses with a clear message. Some features need more: Windows Sandbox needs a Windows edition that has it, and isolated sessions need Windows 11 24H2 or newer.

The extension uses our Cua Driver fork, whose driver also targets Linux and macOS. Support for those desktops may be possible, but it needs integration and validation, including for features currently specific to Windows. Contributions and testing on other platforms are very welcome. Please open an issue, share your findings, or send a pull request.

This is experimental and changes often, so interfaces and behavior may still move around.

Installation

Install Pi on Windows or in WSL, then install the package:

pi install npm:pi-agent-computer-use

Or install it directly from GitHub:

pi install git:github.com/alexshpunt/pi-agent-computer-use

To try it for one session without changing your settings:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm pi-agent-computer-use

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229