Claude Code users stay on stale plugin files because `version` is not bumped between releases
Every plugin.json pins "version", and changes land on master between releases without changing it. Claude Code uses that version as the update key, so an installed plugin is never refreshed until the string changes. claude plugin update and the marketplace auto-update both report:
✔ php-fixer is already at the latest version (2.0.0).
while the cached copy differs from master. Per the Claude Code docs (Versions and updates), a pinned version keeps users "on the cached copy until its author changes the string", no matter how many commits follow.
Current state (master at 6b7c462)
Commits that changed a plugin after its version was last set:
- php-fixer 2.0.0 (set in 86ce444): 4380f7d (the whole
dresscodeskill), 5ebda49, e8cb848, 8f0a214, 860826b, c80d732. Anyone who installed 2.0.0 right after 86ce444 has nodresscodeskill and the old hook. - nette-lint 1.4.0: ee9eeb5, 86ce444, e8cb848 (hooks)
- nette-dev 1.4.0: 86ce444, c8ca3f4 (
php-coding-standardsskill)
Codex refreshes the marketplace by git revision, so Codex users get these commits and Claude Code users don't. The same plugin version then has different content depending on the agent and on the day it was installed.
The only workaround on the user side is to uninstall and install the plugin again.
Possible fixes
-
Omit
versionfromplugin.json. For a plugin in a Git-hosted marketplace, Claude Code then uses the commit SHA as the version, so every push reaches users through the normal auto-update, the same way it does in Codex. The cost: any commit in the repo (even tests-only) counts as an update of all four plugins, and the version no longer signals a BC break such as php-fixer 2.0.0. -
Keep
versionand bump it with every change of a plugin, enforced by CI: fail when files underplugins/<name>/differ from the last release whileplugins/<name>/.claude-plugin/plugin.jsonkeeps the same version. Releases stay meaningful, but every user-facing commit needs a bump.
Option 1 matches how the repo is developed now (frequent small commits straight to master). Option 2 fits if releases are meant to be the unit users receive. I'm happy to send a PR for either.
Supersedes #8.