eca icon indicating copy to clipboard operation
eca copied to clipboard

Hooks improvements

Open zikajk opened this issue 1 year ago • 4 comments

Enhance ECA's existing 4 hook types (preRequest, postRequest, preToolCall, postToolCall) with structured feedback, without breaking existing hook scripts.

Scope:

  • JSON output parsing from hooks
  • Feed stderr to LLM on exit code 2 (for preToolCall)
  • Tool input modification via updatedInput field
  • Backward compatible with existing plain-text hooks

Motivation

  • This https://github.com/bhauman/clojure-mcp-light/tree/main/commands is a good example how to profit from those changes.
  • TBD Subagents can also profit from this

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

zikajk avatar Nov 08 '25 08:11 zikajk

@ericdallo Could you please update clients to not show Output or the Error when they are empty (to remove clutter)?

zikajk avatar Nov 08 '25 19:11 zikajk

Yes, I think makes sense

ericdallo avatar Nov 08 '25 19:11 ericdallo

Done @zikajk

ericdallo avatar Nov 09 '25 01:11 ericdallo

Done in #225

ericdallo avatar Dec 01 '25 13:12 ericdallo