launch
Installation
SKILL.md
VS Code Extension Automation
Automate VS Code Insiders with the Copilot Chat extension using agent-browser. VS Code is built on Electron/Chromium and exposes a Chrome DevTools Protocol (CDP) port that agent-browser can connect to, enabling the same snapshot-interact workflow used for web pages.
Prerequisites
agent-browsermust be installed. It's available in the project's devDependencies — runnpm install. Usenpx agent-browserif it's not on your PATH, or install globally withnpm install -g agent-browser.code-insidersis required. This extension uses 58 proposed VS Code APIs and targetsvscode ^1.110.0-20260223. VS Code Stable will not activate it — you must use VS Code Insiders.- The extension must be compiled first. Use
npm run compilefor a one-shot build, ornpm run watchfor iterative development. - CSS selectors are internal implementation details. Selectors like
.interactive-input-part,.monaco-editor, and.view-lineare VS Code internals that may change across versions. If automation breaks after a VS Code update, re-snapshot and check for selector changes.
Core Workflow
- Build the extension
- Launch VS Code Insiders with the extension and remote debugging enabled
- Connect agent-browser to the CDP port
- Snapshot to discover interactive elements
- Interact using element refs
- Re-snapshot after navigation or state changes