launch
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
More from microsoft/vscode-copilot-chat
agent-customization
**WORKFLOW SKILL** — Create, update, review, fix, or debug VS Code agent customization files (.instructions.md, .prompt.md, .agent.md, SKILL.md, copilot-instructions.md, AGENTS.md). USE FOR: saving coding preferences; troubleshooting why instructions/skills/agents are ignored or not invoked; configuring applyTo patterns; defining tool restrictions; creating custom agent modes or specialized workflows; packaging domain knowledge; fixing YAML frontmatter syntax. DO NOT USE FOR: general coding questions (use default agent); runtime debugging or error diagnosis; MCP server configuration (use MCP docs directly); VS Code extension development. INVOKES: file system tools (read/write customization files), ask-questions tool (interview user for requirements), subagents for codebase exploration. FOR SINGLE OPERATIONS: For quick YAML frontmatter fixes or creating a single file from a known pattern, edit the file directly — no skill needed.
50install-vscode-extension
How to install a VS Code extension from an extension ID. Useful when the user wants to add new capabilities to their VS Code environment by installing extensions.
10get-search-view-results
Get the current search results from the Search view in VS Code
10project-setup-info-local
Provides information about how to setup various kinds of projects. Useful for initializing projects based on requirements and scaffolding the project.
8anthropic-sdk-upgrader
Use this agent when the user needs to upgrade Anthropic SDK packages. This includes: upgrading @anthropic-ai/sdk or @anthropic-ai/claude-agent-sdk to newer versions, migrating between SDK versions, resolving SDK-related dependency conflicts, updating SDK types and interfaces, or asking about SDK upgrade procedures. Examples: 'Upgrade the Anthropic SDK to the latest version', 'Help me migrate to the latest claude-agent-sdk', 'What's the process for upgrading Anthropic packages?'
5project-setup-info-context7
Provides information about how to setup various kinds of projects. Useful for initializing projects based on requirements and scaffolding the project.
1