/plugin install <name>@<marketplace> ignores marketplace suffix when name exists in another marketplace
Summary
/plugin install <name>@<marketplace> installs from the wrong marketplace when the plugin name also exists in another registered marketplace. The @<marketplace> suffix appears to be decorative — resolution is purely by plugin name, and the default/first marketplace wins.
Repro
- Register two marketplaces that both catalog a plugin with the same name. Example:
claude-plugins-official(auto-registered) catalogsremember./plugin marketplace add Digital-Process-Tools/claude-marketplace(also catalogsremember).
- Run
/plugin install remember@dpt-plugins. - Inspect
~/.claude/plugins/installed_plugins.json.
Expected
Registry key: remember@dpt-plugins
Install path: ~/.claude/plugins/cache/dpt-plugins/remember/<version>/
Actual
Registry key: remember@claude-plugins-official
Install path: ~/.claude/plugins/cache/claude-plugins-official/remember/<version>/
Content is fetched from the correct upstream repo (same commit SHA either way), but the marketplace attribution is wrong, so /plugin marketplace update subsequently routes through the unintended marketplace.
Related: speculative re-clone on reload
After manually renaming the registry key to remember@dpt-plugins and moving the files, /reload-plugins re-creates the cache/claude-plugins-official/remember/<version>/ dir, presumably because the Anthropic marketplace's catalog still lists the plugin. The orphan dir then accumulates on every reload.
Repro attempted with fully scrubbed state
- Uninstalled the plugin via
/pluginUI. - Removed the DPT marketplace via
/plugin marketplace remove dpt-plugins. - Manually deleted
cache/<marketplace>/remember/directories andmarketplaces/dpt-plugins/. - Verified
installed_plugins.jsonhad norememberentry andknown_marketplaces.jsonhad nodpt-pluginsentry. - Re-added DPT marketplace and ran
/plugin install remember@dpt-plugins.
Result: same incorrect namespace attribution.
Environment
- Claude Code CLI on macOS (darwin 25.4.0)
- Plugin:
rememberv0.5.0 from https://github.com/Digital-Process-Tools/claude-remember
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗