Feature request: auto-update plugins on CLI startup via marketplace flag
Summary
When a marketplace defines plugins, there is no way to signal that installed plugins should be kept up to date automatically. Users must manually run copilot plugin update <name> to get the latest version, which means teams shipping plugin updates have no guarantee consumers are on the current version.
Proposal
Add an optional autoUpdate flag at the marketplace level in marketplace.json:
{
"name": "my-org",
"metadata": {
"autoUpdate": true
},
"plugins": [...]
}
When autoUpdate is true, the CLI would check for plugin updates on startup (or periodically, e.g. once per day) and pull the latest for all installed plugins from that marketplace.
Why marketplace-level rather than per-plugin?
- Simpler mental model — org admins opt in once for all their plugins
- Avoids inconsistent states where some plugins are stale and others are fresh
- Marketplace owners are already the trust boundary for plugin distribution
Considerations
- Startup latency: A background check + async pull would avoid blocking the CLI. Could also be throttled to once per 24h with a local timestamp cache.
- Opt-in: This should be opt-in (default
false) so existing marketplaces are unaffected. - Offline/CI: Should gracefully no-op if the network is unavailable.
Use case
We maintain an internal org marketplace with skills that evolve frequently (e.g., Confluence page generators, ticket readiness checks). When we ship an update, we currently have to Slack the team and ask everyone to manually run the update command. An auto-update flag would remove that friction entirely.
Alternatives considered
- Shell profile hooks (
~/.zshrc) — brittle, not portable, hard to enforce across a team - Cron jobs — requires per-machine setup, easy to forget
copilot plugin update --allon startup — would work but is less granular than marketplace-level control
If the autoupdate flag in marketplace.json is implemented, I really hope that such a change will be compatible with Claude. Having a marketplace compatible between both Claude and Copilot has great value.
As a short-term solution to this, we've included a sessionStart hook with our plugin that will run the update command. This should mean the plugin is updated on session start and resume, and seems to work (at least in VSCode chat).
We're not sure if there are any obvious problems with this approach. We suspect that the previous version of the plugin (or at least some parts of it) would still be used for the initial prompt, and perhaps for the rest of the session.
This is what it looks like:
{
"version": 1,
"hooks": {
"sessionStart": [
{
"type": "command",
"bash": "copilot plugin [name]@[marketplace]",
"powershell": "copilot plugin update [name]@[marketplace]",
"cwd": ".",
"timeoutSec": 10
}
]
}
}
This is a basic version, although we've considered that it could be made for sophisticated, e.g. changing the exit code if the plugin is updated, so that the user is warned/notified.
+1 — this would remove real friction for teams shipping internal plugins.
We maintain a PM plugin that evolves frequently. Every time we ship a fix we have to Slack the team to run copilot plugin update, and even then it's a no-op unless they also run copilot plugin marketplace update <marketplace> first (see #3627 — plugin update restores from the local cache instead of re-fetching). So consumers silently run stale versions with no signal they're behind.
An opt-in marketplace-level autoUpdate flag (once-per-day, async, offline no-op as proposed) would solve the distribution-lag problem cleanly. The per-marketplace trust boundary makes sense for org admins.
One ask: whatever the mechanism, it needs to actually re-fetch from GitHub rather than the local marketplace cache — otherwise it inherits the #3627 no-op behavior.
This appears to be resolved as of GitHub Copilot CLI v1.0.88. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.