You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
claude-code template: init-plugins.sh moves every plugin to its marketplace's HEAD on each run, unpinned, before the sandbox firewall #248
Since #158, claude-code/.devcontainer/init-plugins.sh runs claude plugin marketplace update and then claude plugin update for every plugin, on every run. That fixed the frozen-plugin problem. But it now pulls whatever each marketplace's default branch holds at that moment, with no pin, no delay and no review step. In the sandbox variant this happens before the firewall is up.
Plugins are third-party code that runs inside Claude Code, with the same access as the agent. That includes the gh login persisted on the ~/.config/gh volume.
Where
claude-code/.devcontainer/init-plugins.sh: the "~/.claude is a persistent volume" block, marketplace update followed by a plugin update loop over PLUGINS.
The marketplaces (anthropics/claude-plugins-official, umputun/ralphex, GoogleChrome/modern-web-guidance, AgriciDaniel/claude-seo, cloudflare/skills, rubberduck-studio/typescript-native-lsp) are added by owner/repo with no ref.
claude-code/.devcontainer/claude-sandbox/devcontainer.json:postCreateCommand runs init-plugins.sh, and only then does postStartCommand run init-firewall, as the comment there says.
Why it matters
A compromised or broken plugin release reaches every container on its next rebuild, automatically. One poisoned push to any of the six marketplaces' default branches is enough.
The sandbox's network restriction doesn't cover this step. The update runs while the container still has unrestricted egress, so the firewall can't help even when its allow-list would have blocked a plugin host.
It's inconsistent with how downstream projects treat other dependencies. At least one downstream project pins exact npm versions and refuses any release younger than 7 days (minimumReleaseAge), yet takes plugin code at HEAD.
In the sandbox, update after the firewall is up, so the allow-list governs it, or skip the update step there entirely.
Pin marketplaces to a reviewed ref, if claude plugin marketplace add supports a ref or tag (unverified). Bumping the ref then becomes a reviewable change, like any other dependency bump.
Add a release-age delay if the plugin CLI ever exposes version metadata. I didn't find one; noting it for parity with package managers.
Option 1 is the smallest change that keeps #158's benefit: plugins still update when asked, but never as a side effect of a rebuild.
Activity
test(claude-code): assert which marketplaces auto-update, not which a…