launch

Launch Code OSS with isolated profiles and debug ports for Playwright automation and dap-cli debugging.

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill launch-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: launch
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/.agents/skills/launch
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill launch-cokistudios

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @playwright/cli, and includes scripts (resource) components.

What problem does it solve? Developing and testing VS Code itself requires a running Code OSS instance that is signed in, automatable via CDP, and debuggable across its renderer, extension host, main, and agent host processes—without port conflicts or profile contamination between concurrent instances. ## Core Features & Use Cases - Isolated Authenticated Profiles: Clones an authenticated user-data-dir into a throwaway temp folder with slim excludes, preserving Copilot/GitHub sign-in (including Windows shared-data-dir seeding) while never mutating the source profile. - Unique Debug Ports per Launch: Allocates free ports for CDP (renderer), extension host, main process, and agent host, printing them as JSON for programmatic pickup by @playwright/cli and dap-cli. - UI Automation Helpers: Ships a focus-chat-input Playwright script and a monaco-paste helper that reliably types into Monaco editors where fill/type fail, supporting parallel multi-instance sessions. - Use Case: Run two agents concurrently, each driving its own Code OSS window—one automating chat flows via Playwright over CDP while the other attaches dap-cli to the extension host port to hit breakpoints in a Copilot Chat extension. ## Quick Start Launch a Code OSS dev build with an isolated signed-in profile and unique debug ports, then attach Playwright to the CDP port so I can automate the chat UI.

Frequently Asked Questions about launch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate VS Code UI testing with Playwright?▼

Launch Code OSS with --remote-debugging-port, then attach @playwright/cli over CDP using a unique -s= session name. Use snapshot, press, and eval commands to interact with the workbench, and run-code with the focus-chat-input script to reach the chat input.

How to debug the VS Code extension host while driving the UI?▼

Attach dap-cli to the extHostPort from the launch JSON to set breakpoints in extension code, while simultaneously driving the same window with @playwright/cli over the cdpPort. Both tools can run against one instance in parallel.

Why does Playwright fill or type not work in VS Code Monaco editors?▼

Monaco's native-edit-context element ignores Playwright's default input pipeline, so fill and type silently fail. Use the monaco-paste.sh helper, which dispatches a ClipboardEvent paste with a DataTransfer payload, or send per-key press commands.

Can I run multiple Code OSS instances at the same time?▼

Yes, each launch picks fresh ports and its own temp user-data-dir, extensions-dir, and shared-data-dir, preventing the shared background process crash. Give each instance a unique PW_SESSION so Playwright daemons stay isolated.

Why does the launched Code OSS instance ask me to sign in on Windows?▼

On Windows the GitHub session is stored in the shared-data-dir, not the profile, so the launcher must seed both. Sign in once by running code.bat directly against the source profile, which writes the session for future launches to copy.

What are the prerequisites for launching VS Code from sources?▼

You need a vscode checkout with node_modules installed and a full build via npm run compile or npm run watch, plus an authenticated profile at ~/.vscode-oss-dev. Building only the client is insufficient because built-in extensions must also be compiled.