Skip to content

Fix hooks location for Claude Code discovery#2

Merged
bendrucker merged 2 commits into
mainfrom
fix-hooks-location
Jan 13, 2026
Merged

Fix hooks location for Claude Code discovery#2
bendrucker merged 2 commits into
mainfrom
fix-hooks-location

Conversation

@bendrucker

@bendrucker bendrucker commented Jan 12, 2026

Copy link
Copy Markdown
Owner

Fixes hook loading by moving hooks from .claude-plugin/hooks/ to the repository root. Claude Code expects hooks at <plugin_root>/hooks/, not nested inside .claude-plugin/. Debug logs showed "Loaded hooks from standard location" pointing to the root-level path.

Changes

  • Move hook.ts and hooks/ from .claude-plugin/ to repository root
  • Remove hooks reference from plugin.json (uses standard location)

Claude Code expects hooks at <plugin_root>/hooks/hooks.json, not inside
.claude-plugin/. This was causing hooks to silently fail to load.

Also adds integration test script for verifying hook functionality.
@bendrucker bendrucker merged commit d1c343c into main Jan 13, 2026
1 check passed
@bendrucker bendrucker deleted the fix-hooks-location branch January 13, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant