Update agent desktop

From SkillfulAgents/SuperAgent · View interactive version

Update agent desktop is an AI agent skill from the GitHub repository SkillfulAgents/SuperAgent. Bump the agent-desktop CLI that runs agents' computer use on the host, and regenerate the agent-facing computer-use guides from its bundled skills. Use when a new agent-desktop release is out, when computer use misbehaves after an agent-desktop change, or when the version-stamp test in scripts/gener

How to use this skill

Skill file

Update agent-desktop

Computer use runs the agent-desktop npm package on the host (src/shared/lib/computer-use/). The agents' tools are generated from each command's --help (agent-desktop-tools.ts, one copy in src/shared/lib/computer-use/ and one in agent-container/src/tools/), and their guides from the skills that ship inside the same version (agent-container/docs/computer-use.md + computer-use/). A bump touches all of them, in one change.

1. Pick the version

2. Read the changelog between the two versions

Look for, and fix in the same change:

3. Install and regenerate

npm install agent-desktop@<version> --save-dev --save-exact
npm run docs:computer-use        # from the binary's `skills get` + each command's --help
git diff --stat agent-container/docs/ src/shared/lib/computer-use/agent-desktop-tools.ts agent-container/src/tools/agent-desktop-tools.ts

It stays a dev dependency: no bundle imports it. The packaged app runs the copy extraResources puts in the bundle, and a run from source finds the package's binaries in node_modules. In dependencies it fails npm run check:runtime-deps, which allows only packages a shipped bundle imports.

The generator falls back to the release tag on GitHub when the binary cannot run here; that source has no --help, so computer-use/flags.md is left out and the guides keep pointing at --help. Regenerate from the binary before merging.

Review the guide diff as an agent would read it: new commands to map in the header, advice that now contradicts what the app decides (input mode, sessions, cursor, refused flags, OS permissions: the app checks them before a call runs and asks the user, so no guide may tell an agent to check or grant one; generate-computer-use-docs.test.ts fails on leftovers).

4. Verify

npm run typecheck
npm run lint
npx vitest run src/shared/lib/computer-use scripts/generate-computer-use-docs.test.ts src/main/agent-desktop-resources.test.ts src/main/mas-build-config.test.ts
npm --prefix agent-container test -- computer-use system-prompt-vars

Then drive one app end to end in the dev app (snapshot → click → snapshot, with the cursor on), and rebuild the agent image so the new guides ship: npm run build:container.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.