@agimon-ai/doompi-computer-use
Session scoped semantic computer control through the DoomPi Desktop capability.
Package details
Install @agimon-ai/doompi-computer-use from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@agimon-ai/doompi-computer-use- Package
@agimon-ai/doompi-computer-use- Version
0.0.1-alpha.20- Published
- Sep 18, 2026
- Downloads
- 1,255/mo · 625/wk
- Author
- agiflow-ai
- License
- MIT
- Types
- extension
- Size
- 574.3 KB
- Dependencies
- 7 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./dist/extensions/pi.mjs"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@agimon-ai/doompi-computer-use
Session-scoped semantic computer control through the DoomPi Desktop capability.
Requirements
- Node.js 22.19.0 or newer
- DoomPi Desktop with Computer Use available
@earendil-works/pi-coding-agent0.85.0
Install
pi install npm:@agimon-ai/doompi-computer-use
Use
Enable the default-off Computer Use minor mode in the cockpit. Its Activity section then lists eligible Desktop targets, lets you select one, and starts the activation and confirmation flow. Only one session can hold a live Desktop run.
The computer-use minor mode exposes Activate, Deactivate, and Doctor actions. /computer-use reports the current state.
While active, the package exposes three tools:
computer_stateobserves the authorized window and returns a semantic snapshot.computer_actionperforms one semantic press, focus change, value change, or scroll against a current snapshot.computer_execruns a trusted, explicitly allowed local TypeScript script with JSON input, then returns a fresh observation.
Computer scripts are trusted Node.js code and are not sandboxed. Configure exact allowed paths with DOOMPI_COMPUTER_USE_SCRIPT_PATHS and review every script before allowing it. See Author computer scripts for the execution contract, limits, and an example.
All three tools and their model guidance remain unavailable during setup and are exposed only after the native grant becomes active. The Activity section shows activation status, busy ownership, stop controls, and completed recording or trace metadata. Browser clients cannot call observation or action routes.
Public API
import { activateComputerUseExtension, createComputerUseSessionClient } from '@agimon-ai/doompi-computer-use';
The session-scoped server facet owns the agent and hub routes. Their host-issued context tokens remain opaque and session-bound inside the request broker.
Development
pnpm fixcode
pnpm typecheck
pnpm test
pnpm build
License
MIT
Direct plugin entries live in src/extensions. Controllers coordinate host APIs, commands, and mode actions. Models own computer-use state and projections; named services own Desktop transport, scripts, and configuration dependencies. Flat src/exports exposes reusable helpers and types.
The Pi entry declares a live minor-mode collection so the global opt-in controls catalog presence. Its tool restriction is reactive and the helper owns all registration changes. Session startup begins availability polling; onStop cancels the timer and final disposal clears status. The server declares its session mode, activity, tools, commands, and API alongside hub channel factories.