Computer use for the Pi coding agent — Windows apps, browsers and desktops through native UI trees, screenshots and real input.
TypeScript accessibilityagent-toolsai-agentbrowser-automationcomputer-usecuadesktop-automationelectronpipi-coding-agentpi-extensionpi-packageplaywrighttypescriptui-automationvisionwebview2windowswindows-automationwsl
Document Windows browser loader setup (#198)
alexshpunt-clanker[bot]4c790a2486fb
diff --git a/.pi/skills/develop-computer-use/SKILL.md b/.pi/skills/develop-computer-use/SKILL.mdindex af7c968..a15e289 100644--- a/.pi/skills/develop-computer-use/SKILL.md+++ b/.pi/skills/develop-computer-use/SKILL.md@@ -26,7 +26,7 @@ Do not use a project `.pi/settings.json` override with `extensions: []` plus a ppi --mode rpc --no-session --approve --no-mcp --offline```- Require exit code zero and no extension load errors. The `computer-mode`, `computer-images` and `computer-visuals` commands must each appear once and name the worktree's `src/index.ts`. Missing or duplicate commands are a failure. This checks loading, not native Windows behavior.+ Require exit code zero and no extension load errors. The `computer-mode`, `computer-settings` and `computer-setup` commands must each appear once and name the worktree's `src/index.ts`. Missing or duplicate commands are a failure. This checks loading, not native Windows behavior.7. Only after startup passes, reload with `pi_extension_dev_reload_self` and explicit acceptance of state loss. Put the worktree, the swapped settings line and the exact live verification steps in the continuation. Follow the `pi-feature-verification` skill: exercise the changed behavior, inspect agent-facing results, and capture the real viewport with `inspect_tui` when the result is visible. Do not rely on old runtime state or window references after reload.## Restore global loadingdiff --git a/docs/setup.md b/docs/setup.mdindex 4b95be0..e332684 100644--- a/docs/setup.md+++ b/docs/setup.md@@ -14,6 +14,8 @@ The package carries the Windows runtime, so no driver download or executable conThe driver, Windows Node and remote browser worker are prepared automatically when needed. A configured remote machine also receives the package-compatible driver and worker automatically on first use and after an update. Downloads are checked before use.+When Pi runs in WSL, browser startup installs the pinned TypeScript loader with Windows npm into the Windows user's `PiComputerUse` cache. If Windows npm is unavailable, the pinned Windows Node distribution supplies it. First use needs network access; later launches reuse the cache.+Optional parts such as Firefox, perception, MXC and the VS Code bridge install with `/computer-setup PART [MACHINE]`. The user runs the command or explicitly approves that part before the agent installs it. `/computer-setup browser` and `/computer-setup machine <alias> [name]` remain available for manual preparation.## Choose a mode