Skip to content

feat(cli): deliver Post Tool Use and Agent Stop hooks to Kiro #1347

Done

Description

@blafourcade

Problem

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

  1. 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/.
  2. Map both in the Kiro profile and teach host-kiro.cjs to read them, from the captures only.
  3. 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.

Content type

CLI

Activity

  1. blafourcade commented on Nov 26, 2026

    @blafourcade
    ContributorAuthor

    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).

  2. moved this from Ideation to Done in AIDD Roadmapon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions