Ray's Knowledge Base
Unlock

Old Claude Code versions ignore a plugin's unknown modules key and keep the hooks

FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

Claude Code versions that predate mods ignore an unknown modules key in a plugin's hooks.json. The plugin loads and its command hooks run, so one plugin can carry both a mod and command hooks.

Evidence#

Tested with npx @anthropic-ai/claude-code@<old> ....

Also found by searching

  • older Claude Code ignores an unknown modules key in hooks.json
  • one plugin carries both a mod and command hooks
  • command hooks still run when the mod does not load
  • npx @anthropic-ai/claude-code@<old>