Migrate VS Code-installed agent plugins to Copilot SDK-managed installations
Background
We are moving agent-plugin browsing from the Extensions view (@agentPlugins) to Browse in Chat Customizations (#340346, with installed-only Extensions sections restored in #341159). In the Copilot harness, new plugin installations are delegated to the Copilot SDK.
Plugins previously installed through the old Extensions-view experience were installed by VS Code and recorded in installed.json under its agent-plugins directory (~/.vscode/agent-plugins/installed.json). VS Code still reads that inventory through MarketplaceAgentPluginDiscovery and forwards those plugins to Copilot as client customizations. They have not thereby become SDK-managed installations.
The marketplace migration added in #341593 (following #341301) registers sources from chat.plugins.marketplaces with Copilot. It does not migrate the installed plugins recorded in installed.json.
Request
Provide an explicit migration path for existing VS Code-managed plugin installations to Copilot SDK-managed installations.
The flow should:
- Identify eligible installations from VS Code's
installed.jsonand resolve their SDK-supported installation sources. - Detect plugins already installed in Copilot and avoid duplicate installation.
- Install/adopt eligible plugins through the SDK, preserving applicable enablement decisions.
- Report unsupported sources and per-plugin failures, with safe retry behavior.
- Verify successful SDK ownership before stopping client forwarding for a migrated plugin, avoiding both missing and duplicate contributions.
- Define how old installation records and files are retained or cleaned up without breaking the Local harness or other consumers that still depend on VS Code-managed plugins.
Migration of marketplace registrations alone should not imply that installed plugins have been migrated. Keep the existing compatibility path for installations that have not successfully migrated.
Relevant code
src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.tssrc/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.ts—MarketplaceAgentPluginDiscoverysrc/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.ts—resolveCustomizationRefssrc/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.ts— existing marketplace-registration migration
What is going to happen to the Claude and Codex harnesses when this migration is complete? It seems some compatibility is already starting to break with the Claude and Codex harnesses with these changes, so I worry that this migration will completely break it.
Until now, I am able to use the same plugin installed directly in VS Code with the three Agent Host harnesses. But it seems that plugin installation via link is already breaking compatibility since #342430. Now the link installs it as a Copilot specific plugin, and there doesn't seem to be any alternative to this behavior (I opened issue #344698 for this).
Could you provide more information about how these changes will affect the different harnesses?