Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

可否在kiro的某些事件增加hook type

Open jiangweibo240617 opened this issue 10 months ago • 3 comments

Feature Description

执行完成、等待输入、等待确认、执行失败、执行异常等一切需要人来操作后才能继续执行的。这样等待kiro执行的过程,我可以去喝杯咖啡

Use Case

目前来看,貌似只支持文件新增、删除等,当我尝试让kiro建立hook时,他会失败

Image

Additional Context

No response

jiangweibo240617 avatar Jan 05 '26 04:01 jiangweibo240617

Creating hook: kiro执行完成、等待输入、等待确认、执行失败、执行异常等一切需要人来操作后才能继续执行的,都执行curl -H "X-Priority: 5" -d "kiro {event_body}" ntfy.sh/*****, {event_body}用中文描述

这个是当时的命令

jiangweibo240617 avatar Jan 05 '26 04:01 jiangweibo240617

Hey @jiangweibo240617 , Thanks for the feedback! Kiro 0.9 added several new hook trigger types beyond file events: promptSubmit, agentStop, preToolUse, and postToolUse. agentStop fires when execution completes, and preToolUse/postToolUse let you intercept tool invocations before and after they run — with filtering by category (read, write, shell, web) or tool name. See the 0.9 changelog for details. Closing this as addressed — feel free to open a new issue if you have additional needs.

AnilMaktala avatar Feb 09 '26 21:02 AnilMaktala

Hey @jiangweibo240617 , Thanks for the feedback! Kiro 0.9 added several new hook trigger types beyond file events: promptSubmit, agentStop, preToolUse, and postToolUse. agentStop fires when execution completes, and preToolUse/postToolUse let you intercept tool invocations before and after they run — with filtering by category (read, write, shell, web) or tool name. See the 0.9 changelog for details. Closing this as addressed — feel free to open a new issue if you have additional needs.

好的,谢谢。我已经在使用了。如果再加一个等待用户授权的事件就更好了

3339543290 avatar Feb 10 '26 02:02 3339543290