fix: Fix three bugs making hookify plugin non-functional#29522
Closed
0xLeathery wants to merge 1 commit intoanthropics:mainfrom
Closed
fix: Fix three bugs making hookify plugin non-functional#295220xLeathery wants to merge 1 commit intoanthropics:mainfrom
0xLeathery wants to merge 1 commit intoanthropics:mainfrom
Conversation
, #20747) Fix broken Python imports by changing `from hookify.core.X` to `from core.X` since PLUGIN_ROOT points directly to the hookify directory. Use absolute path for rule file discovery so rules load from any CWD. Add hookSpecificOutput with additionalContext to warning responses so the model sees warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Feb 28, 2026
This was referenced Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
from hookify.core.Xtofrom core.Xin all hook scripts andrule_engine.py, sinceCLAUDE_PLUGIN_ROOTpoints directly to thehookify/directory andcore/is a direct childos.path.expanduser('~')for an absolute path to~/.claude/so rules load regardless of CWDhookSpecificOutputwithadditionalContextto warning responses so the model receives warning messages, not just the UIFixes #28299, #20749, #20747
Test plan
ast.parse)from core.config_loader import load_rules, extract_frontmatter, Rulesucceeds from plugin rootfrom core.rule_engine import RuleEnginesucceeds from plugin rootHookify import error: No module named 'hookify'~/.claude/and verify it loads from a non-$HOMEworking directoryadditionalContext🤖 Generated with Claude Code