Skip to main content
← Back to list
01Issue
BugClosedSwamp Club
AssigneesNone

Swamp hooks not formatted properly for Kiro, Kiro doesn't pipe and details into it's PostToolUse hook

Opened by swampadmin · 3/29/2025

I saw that the new hook is created for kiro when I used swamp repo upgrade --tool kiro and noticed that the hook was not present in the UI. After mucking around with kiro a bit, it looks like there are two issues:

  1. Kiro wants a "toolTypes" property (an array of strings, supporting wild cards, so the base one we could start with is "toolTypes": ["*"] as part of the when property
  2. Kiro wants the extension to be swamp-audit.kiro.hook, not .json

Once those changes were made, the hook appeared as expected. Kiro makes the prompt available in the USER_PROMPT env variable, it does not pipe it into the hook via stdin (debugged and got it to work by having kiro write a wrapping script that piped it in)

02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.