You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project where I use Claude, we have some hooks. It doesn't seem like eco reads or honors these hooks.
I understand there's bound to be some conflicts between my Claude hooks and my eca hooks
@slipset can you give an example of what is not working? @zikajk is doing some improvements to hooks feature in editor-code-assistant/eca#201 to be as compatible with claude, but I wanna understand your case.
Activity
ericdallo commentedon Nov 18, 2025
@slipset can you give an example of what is not working?
@zikajk is doing some improvements to hooks feature in editor-code-assistant/eca#201 to be as compatible with claude, but I wanna understand your case.
slipset commentedon Nov 18, 2025
In our project, in
.claude/settings.jsonwe have the following:{ "hooks": { "PostToolUse": [ { "matcher": "Edit|MultiEdit|Write", "hooks": [ { "type": "command", "command": "jq -r '.tool_input.file_path' | { read file_path; pnpm prettier --ignore-unknown --no-error-on-unmatched-pattern --write \"$file_path\"; }" }, { "type": "command", "command": "jq -r '.tool_input.file_path' | { read file_path; if [[ \"$file_path\" =~ \\.(js|jsx|ts|tsx)$ ]]; then pnpm eslint --fix \"$file_path\" 2>/dev/null || true; fi; }" } ] } ] } }I see that this is not run when I use eca, because I'm getting prettier errors in CI :)
ericdallo commentedon Nov 18, 2025
@slipset I'm not entirely sure what you bash does, but you can have access to the path the same way like this (ref):
WDYT?
slipset commentedon Nov 18, 2025
I guess, and I fully appreciate that it might be out of scope, that I'd expect the Claude I invoke through eca to pick up these hooks?
I'd rather not have to replicate these settings for eca.
ericdallo commentedon Nov 18, 2025
ah yes, the hooks are not fully compatible between eca and claude, but it should look similar tho.
zikajk commentedon Dec 3, 2025
@slipset I am going to write a documentation how to handle CC hooks. Yours are good example, stay tuned.