[Bug] Slash command autocomplete shows commands from uninstalled marketplace plugins
Describe the bug
Slash commands from plugins that are not installed appear in the / autocomplete menu. Commands are being picked up from the full marketplace catalog directory (~/.claude/plugins/marketplaces/) rather than only from the installed plugins cache (~/.claude/plugins/cache/).
Steps to reproduce
- Have at least one plugin marketplace configured
- Type
/in the Claude Code terminal - Observe commands from plugins not present in
installed_plugins.json
Expected behavior
Only commands from plugins listed in installed_plugins.json should appear in autocomplete.
Actual behavior
Commands from all plugins in the marketplace catalog directory appear, regardless of whether they are installed. For example, /security-review from the plugin-dev plugin appears in autocomplete despite plugin-dev not being installed.
Root cause (likely): Claude Code scans ~/.claude/plugins/marketplaces/ (the full marketplace catalog) for skills/commands in addition to, or instead of, only scanning ~/.claude/plugins/cache/ (installed plugins).
Environment
- OS: macOS Darwin 24.6.0
- Shell: zsh
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗