Bug
The plugin fails to load with this error:
Failed to load hooks from .../hooks/hooks.json: Duplicate hooks file detected:
./hooks/hooks.json resolves to already-loaded file .../hooks/hooks.json.
The standard hooks/hooks.json is loaded automatically, so manifest.hooks should
only reference additional hook files.
Cause
In .claude-plugin/plugin.json, the manifest declares:
"hooks": "./hooks/hooks.json"
But Claude Code auto-loads hooks/hooks.json by convention when it exists in the plugin directory. Declaring it again in the manifest causes a duplicate load error.
Fix
Remove the "hooks" field from plugin.json — the file will still be picked up automatically.
Affected version: 2.0.0-alpha
Bug
The plugin fails to load with this error:
Cause
In
.claude-plugin/plugin.json, the manifest declares:But Claude Code auto-loads
hooks/hooks.jsonby convention when it exists in the plugin directory. Declaring it again in the manifest causes a duplicate load error.Fix
Remove the
"hooks"field fromplugin.json— the file will still be picked up automatically.Affected version:
2.0.0-alpha