What
Plugins are add-ons you can install into Claude Code. When downloading a plugin fails because access to its repository was refused, Claude Code now reports a specific error, plugin-repository-refused, instead of the generic "Failed to download/cache plugin" error.
- The error says that Anthropic-managed git refused access to the plugin's repository or submodule, and names the repository host, owner and name.
- It gives one of three reasons, each with its own advice: not in session, no GitHub connection, or other.
- A one-time system warning is shown, and repeats with the same source and text are dropped.
- This path only applies when a helper check (
sg()) passes.
Why
If a plugin is blocked, you now see why and what to try, rather than a vague download failure. This applies to sessions where git access goes through Anthropic, such as cloud sessions.