expand-hook-system#489
Open
zikajk wants to merge 1 commit into
Open
Conversation
f44c22c to
141579b
Compare
Add `preCompact`, `postCompact` and `subagentStart` hooks; subagents now fire `subagentStart` instead of `chatStart`, and both `postRequest` and `subagentPostRequest` run for subagents. - Add `/hooks` command and an optional `description` field in hook config; prefix plugin hooks with `plugin-name::`. - Expand hook contracts: `response` replaces `prompt`, plain-text `tool_response`, `continue:false` everywhere, `followUp`, `replacedOutput`, standalone `systemMessage`, and exact-string matchers. - Add `tool_call_id` to `preToolCall`/`postToolCall` input, plus `cwd`, `session_id`, `eca_executable`, `full_model`, `variant` and `follow_up_active` to hook input data. - Fix `postToolCall continue:false` leaking across turns (now prompt-id scoped), `chatStart` `additionalContext` being dropped, and `preRequest` exit-2 not naming the blocking hook.
141579b to
0269a05
Compare
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.
Add
preCompact,postCompactandsubagentStarthooks; subagents now firesubagentStartinstead ofchatStart, and bothpostRequestandsubagentPostRequestrun for subagents.Add
/hookscommand and an optionaldescriptionfield in hook config; prefix plugin hooks withplugin-name::.Expand hook contracts:
responsereplacesprompt, plain-texttool_response,continue:falseeverywhere,followUp,replacedOutput, standalonesystemMessage, and exact-string matchers.Add
tool_call_idtopreToolCall/postToolCallinput, pluscwd,session_id,eca_executable,full_model,variantandfollow_up_activeto hook input data.Fix
postToolCall continue:falseleaking across turns (now prompt-id scoped),chatStartadditionalContextbeing dropped, andpreRequestexit-2 not naming the blocking hook.I added a entry in changelog under unreleased section.
This is not an AI slop.