Skip to content

feat(claude-code): auto-update the vendor-maintained plugin marketplaces - #294

Open
gatezh wants to merge 5 commits into
claude-code/drop-superpowersfrom
claude-code/vendor-marketplace-autoupdate
Open

gatezh wants to merge 5 commits into
claude-code/drop-superpowersfrom
claude-code/vendor-marketplace-autoupdate

Conversation

@gatezh

@gatezh gatezh commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

What

Turns on plugin auto-update for the two vendor-maintained marketplaces, cloudflare/skills and GoogleChrome/modern-web-guidance, through the image's managed settings. Refs #248.

Why

Claude Code auto-updates claude-plugins-official by default and leaves every other marketplace off. Plugins from the vendor marketplaces therefore stayed at whatever version init-plugins.sh last installed: one container still had cloudflare 1.0.0 with 1.0.4 published. The image is the only thing that reaches every container, so the setting belongs in its managed settings, next to the existing gatezh entry. A managed extraKnownMarketplaces entry with autoUpdate is the documented way to set this for a fleet (org docs). claude plugin marketplace add has no auto-update flag.

This is a deliberate, narrow exception to #248. The two vendors are companies already trusted with account access through their own plugins and MCP servers, the same trust model as the official marketplace. The three community marketplaces (umputun/ralphex, AgriciDaniel/claude-seo, rubberduck-studio/typescript-native-lsp) stay on deliberate updates, which is #248's concern.

Changes

  • claude-code/.devcontainer/managed-settings.json: extraKnownMarketplaces entries for cloudflare and googlechrome with autoUpdate: true. Their sources match what init-plugins.sh registers. No enabledPlugins change: init-plugins.sh still decides what gets installed.
  • claude-code/verify-image.sh: asserts both entries, and that no marketplace outside gatezh, cloudflare and googlechrome has autoUpdate: true. A managed entry that only registers a marketplace still passes.
  • claude-code/README.md: a "Which plugins update on their own" paragraph under Bundled plugins. It covers which marketplaces update, why the community ones don't, and how a project opts out: /plugin refuses the toggle once managed settings set it, so the way out is a managed-settings.d drop-in.

Notes

  • Same-name entries: init-plugins.sh also adds both marketplaces at user scope. The managed entry replaces the user entry whole (managed is the highest scope), so autoUpdate applies. Probed in the published 2.1.332 image with this file mounted: marketplace add exits 0, writes an identical github source, and known_marketplaces.json marks both declaredByManagedSettings. Claude Code uninstalls plugins only when a managed entry declares a different source for a name, so existing ~/.claude volumes keep their plugins.
  • Timing: auto-update runs only in interactive sessions, up to ten minutes after the first message; claude -p runs never update. The new versions load at the next launch or after /reload-plugins. DISABLE_AUTOUPDATER, DISABLE_UPDATES or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC would turn the whole pass off; none is set.
  • Sandbox: both plugins live inside their marketplace repos ("source": "./"), so updates fetch only from github.com, which the firewall allows.
  • claude-code template: declare marketplaces and disabled plugins in settings instead of init-plugins.sh loops #297: if marketplace declarations move to the template's project settings with autoUpdate unset, the managed entries still win for these two. claude-code template: declare marketplaces and disabled plugins in settings instead of init-plugins.sh loops #297's "leave autoUpdate unset" advice needs this exception noted.
  • claude-code template: init-plugins.sh moves every plugin to its marketplace's HEAD on each run, unpinned, before the sandbox firewall #248 stays open: it's about init-plugins.sh moving every plugin to HEAD on each run, which this doesn't change.
  • Checks: jq parses the JSON; bash -n and shellcheck -S warning are clean; verify-image.sh default passes in the published image with the edited files mounted. The auto-update assertion fails when an autoUpdate: true entry for ralphex is added, and passes when that entry has no autoUpdate.
  • Wiki: no page describes plugin update behaviour.

Managed settings turn on auto-update for cloudflare/skills and
GoogleChrome/modern-web-guidance, matching the default for
claude-plugins-official. Their plugins drifted for weeks between manual
init-plugins.sh runs (cloudflare sat at 1.0.0 with 1.0.4 published).
The community marketplaces stay on deliberate updates per #248.
verify-image.sh asserts both entries and that no other marketplace was added.
…re declared

The #248 risk is a community marketplace with autoUpdate on. A managed
entry without it defaults to off for third-party marketplaces, so the
check now fails only on an unreviewed autoUpdate: true.
…date

With autoUpdate set in managed settings, /plugin refuses the toggle, so
the only per-project way out is a managed-settings.d drop-in. Drop-in
entries replace the image's entry whole and must repeat source.
@gatezh
gatezh changed the base branch from master to claude-code/drop-superpowers November 27, 2026 20:22
@gatezh
gatezh added this pull request to stack #321 November 27, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant