You're hacking on VS Code itself and need to launch a build from sources with Copilot already signed in, drive it with Playwright, and optionally attach a debugger to the renderer, extension host, or main process. This solves the annoying problem of port conflicts and profile pollution when testing UI flows or taking screenshots. It clones your authenticated profile to a throwaway temp dir (excluding workspace storage and caches but keeping auth tokens), picks free debug ports for every surface, and blocks until CDP is up before printing everything as JSON. The slim clone is smart about what matters for auth. If you've ever fought with multiple Code OSS instances stomping on each other's ports or wondered why your test instance lost its GitHub login, this is for you.
npx skills add https://github.com/microsoft/vscode --skill launch