Claude Code v2.1.311 ·
Claude Code refuses to load plugin hook code it cannot verify
Loading a plugin's hook code now fails when it cannot be proved genuine or when a verified module would be reloaded from disk
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
PluginsArea: what it touches
ImprovementsKind: in v2.1.311,
ImprovementsSection of the release
What
Plugins are add-ons for Claude Code, and some supply hook code that runs at set moments. Loading that code now fails in two cases:
- none of the copies Claude Code holds can be proved genuine
- a module already proved genuine would be loaded again from disk
Unloading a sealed plugin now also removes it from Claude Code's list of known plugins.
Why
This tightens the checks that plugin code is what it should be. A plugin that fails them will not load its hooks.
See this entry in the whole of v2.1.311 →