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
{{ message }}
Repository navigation
feat(cli): deliver Post Tool Use and Agent Stop hooks to Kiro #1347
Kiro receives plugin hooks for SessionStart only (cli/src/composition/tool-profiles/kiro.ts, cli/assets/hooks-runtime/host-kiro.cjs: "the one event whose payload was captured"). Kiro documents both other moments the framework uses (hook types):
Post Tool Use: "Triggers after the agent has invoked a tool, with access to tool results."
Agent Stop: "Triggers when the agent has completed its turn and finished responding to the user."
The gap is ours: no payload was captured for either, so nothing is delivered and every other event is dropped with a build warning.
Proposed solution
Capture one real Post Tool Use payload (a write) and one Agent Stop payload in a sandboxed run (throwaway HOME and project, free model, chats deleted) into scripts/__tests__/fixtures/hook-payloads/.
Map both in the Kiro profile and teach host-kiro.cjs to read them, from the captures only.
Whether Agent Stop can keep the turn going is "Not specified" in the docs: settle it by the probe, otherwise state it as a limit.
Acceptance criteria
Both payloads captured, with the Kiro version and invocation recorded.
readEvent returns PostToolUse and Stop on Kiro, tested from the fixtures.
docs/COMPATIBILITY.md Kiro limits updated to what the probe proved.
Delivered on next: #1363 (PostToolUse and Stop from captured kiro-cli 3.6.0 payloads), #1373 (a crashing script ends the turn), #1382 (UserPromptSubmit and SubagentStop), and the Kiro limits in docs/COMPATIBILITY.md (#1372).
Activity
blafourcade commentedon Nov 26, 2026
Delivered on
next: #1363 (PostToolUse and Stop from captured kiro-cli 3.6.0 payloads), #1373 (a crashing script ends the turn), #1382 (UserPromptSubmit and SubagentStop), and the Kiro limits in docs/COMPATIBILITY.md (#1372).