Repository navigation
|
I installed the plugin using the following commands: After installation, I asked Claude Code to run npm run dev, but the hook did not trigger as expected. I checked the documentation and noticed that the hook configuration uses a matcher like: It seems that this matcher syntax is not supported, which might be why the hook is not working in my case. |
Replies: 3 comments
|
same issue here |
|
That report was valid for older ECC hook configs. Claude Code's matcher support is much narrower than the old expression-style examples implied. Current main / If
If this still reproduces on current main, open an issue with the installed |
|
Worth making the failure loud before changing config: run Quick check that holds for either matcher flavour:
No I build install-time gates that validate config like this and report three states (pass / warn / block) instead of failing silently — happy to wire one into the plugin install step if that is useful. |
That report was valid for older ECC hook configs.
Claude Code's matcher support is much narrower than the old expression-style examples implied. Current main /
v1.8.0no longer relies ontool == ... && tool_input ...matcher expressions for the core hooks. The repo now uses simple event matchers likeBash,Edit,Write, andStop, and does the real filtering inside script files. That change was part of the recent hook reliability pass.If
npm run devstill does nothing on your machine, the first things to check are:ECC_DISABLED_HOOKSis not disabling the relevan…