Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

launch

FreeRuns bundled scriptsNot checked

Launch Code OSS (VS Code from sources) into an isolated throwaway profile with unique debug ports so you can drive it with @playwright/cli AND attach a Node…

posit-devby posit-dev★ 4,361 GitHub stars

About this skill

Code OSS Dev - Launch + Debug

You're working on VS Code itself and you want to:

  1. Launch a Code OSS build from sources that is already signed in (Copilot, GitHub, etc.) so chat / agent flows work end-to-end.
  2. Drive it with @playwright/cli over CDP (UI automation).
  3. Optionally attach a debugger via dap-cli to set breakpoints in the renderer, extension host, or main process.
  4. Run multiple instances at once without port conflicts.

This skill provides a launcher that clones an authenticated user-data-dir to a throwaway temp folder, picks free ports for every debug surface, and prints them as JSON so you can pick them up programmatically.

The clone is slim: workspace storage, browser caches, file history, cached VSIX backups, and old logs are excluded by default. On macOS, auth tokens live in the OS keychain plus small files inside User/globalStorage - both of which are preserved. On Windows the GitHub session lives in the shared-data-dir instead, which the launcher seeds separately (see Windows authentication).

Prerequisites

  • macOS, Linux, or Windows.
    • macOS / Linux: the launcher is a bash script (scripts/launch.sh) and depends on rsync, nohup, and Node on PATH.
    • Windows: use scripts\launch.ps1 instead. It needs no extra tooling beyond Node on PATH, and works on both Windows PowerShell 5.1 and PowerShell 7+. Parse launcher output with ConvertFrom-Json. If Node is managed with fnm, put it on PATH first:
      fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression
      fnm use   # picks up the repo's .nvmrc
      
  • A VS Code checkout with node_modules/ installed (npm install if missing — do not symlink from a sibling worktree; that breaks builds in subtle ways).
  • A VS Code checkout with sources built. Run npm run compile once (one-shot) or npm run watch for incremental rebuilds. Both build the full client and all built-in extensions under extensions/. You must build the full product to run successfully, building just the client is not enough.
    • The launcher compiles only when outputs are missing; it does not detect stale dependencies or out/ files. After pulling, switching branches, or changing dependency manifests, run npm install when needed and rebuild before launching.
  • An authenticated Code OSS profile is recommended but not required. By default the launcher tries to seed from ~/.vscode-oss-dev on macOS/Linux or $env:USERPROFILE\.vscode-oss-dev on Windows, which is the user-data-dir the repo's launch.json configs use. Only pass --source-user-data-dir <path> (or set $CODE_OSS_DEV_AUTHED_USER_DATA_DIR) when you specifically want to seed from a different profile (e.g. your regular ~/Library/Application Support/Code install). If the source profile is missing, the launcher continues with an empty isolated profile.
  • @playwright/cli available (it's a devDependency in the vscode repo - npm install then use npx @playwright/cli).
  • For debugger work: dap-cli on PATH. If debugger support would be useful but the dap-cli skill is not present, prompt the user to install it from https://github.com/roblourens/dap-cli.
  • CSS selectors are internal implementation details. If a selector-based eval stops working, take a fresh snapshot, inspect the current DOM, and update the selector rather than assuming an old one still applies.

The launcher copies the source profile to a temp dir and never mutates the original. Each launch gets its own isolated --user-data-dir and --extensions-dir.

The launcher always sets files.simpleDialog.enable: true in the launched profile's User/settings.json. This is required for automation: VS Code's native OS file dialogs cannot be driven via @playwright/cli over CDP and are completely unreachable over SSH on headless macOS. The simple (quick-input) dialog can be navigated with press and clipboard paste. The override is per-launch and only affects throwaway profiles.

Before launching from an agent session, call get_current_session and pass its title as --session-title. For a regular editor window, the launcher writes that title into the throwaway profile's window.title setting. For an Agents window, it passes the title to the Command Center. This never modifies the source profile.

For unattended automation, pass --disable-workspace-trust so a trust dialog cannot block the flow or extension-host startup. The override is process-scoped and does not modify the source profile. Only use it with content you trust.

Launch

The launcher script lives next to this SKILL.md at scripts/launch.sh (macOS/Linux) or scripts\launch.ps1 (Windows). Resolve it relative to wherever this skill file is installed - do not hardcode an absolute path.

# LAUNCH=<dir-of-this-SKILL.md>/scripts/launch.sh
SESSION_TITLE=<title-from-get_current_session>
"$LAUN
Full SKILL.md on GitHub

Install launch in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

playwrightScripts/focus-chat-input.tsscripts/bootstrap/bootstrap-profile.ps1scripts/bootstrap/bootstrap-profile.shscripts/bootstrap/windows-process-tree-monitor.ps1scripts/cleanup/cleanup.ps1scripts/cleanup/windows-process-arguments.ps1scripts/launch.ps1scripts/launch.shscripts/monaco-paste.shscripts/monaco-paste.tsscripts/updateSettings.tsscripts/waitForCdp.ts

FAQ

What does the launch skill do?

Launch Code OSS (VS Code from sources) into an isolated throwaway profile with unique debug ports so you can drive it with @playwright/cli AND attach a Node debugger via dap-cli in the same session. Use when working on VS Code itself and you want to interact with the running workbench, automate chat or UI flows, test UI features, take screenshots, set breakpoints in the renderer / extension host / main process, or combine UI driving with debugging.

How do I install the launch skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the launch skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare launch with