Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.36 Home All releases olderv2.0.35 v2.0.37newer
Claude Code v2.0.36

Enhanced Plugin Hook Loading

What: Plugin loading now detects and prevents duplicate hook file loading How it works:

  • Uses realpathSync() to resolve canonical file paths (at line 275643 in BwQ())
  • Tracks loaded hook files in a Set to detect duplicates
  • In strict mode (default), duplicate hooks trigger errors with helpful messages
  • Automatically loads hooks/hooks.json if it exists, so manifest shouldn't reference it

Details:

  • New 5th parameter added to plugin loading function BwQ(A, B, Q, I, G = !0) where G controls strict mode (function signature at line 275505)
  • Strict mode enabled by default but can be disabled via marketplace entry's strict: false property (call site at line 275831)
  • Enhanced logging: "Loaded hooks from standard location for plugin..." (at line 275647)
  • Error message explains the issue: "The standard hooks/hooks.json is loaded automatically, so manifest.hooks should only reference additional hook files" (at lines 275696-275697)
  • Prevents common plugin authoring mistakes and duplicate hook registrations
  • Evidence: Function BwQ() at line 275505, duplicate detection at lines 275689-275707, Set tracking at line 275637

See this entry in the whole of v2.0.36 →