{
  "_doc": "Wires kiro-cli writes to vonage-git-ai for AI attribution. Setup: `vgai install-kiro-hooks` — https://github.com/vonage-technology/vonage-git-ai. Requires kiro-cli >= v3; `kiro-cli --resume` skips hook loading (kirodotdev/Kiro#7139), start a fresh session and `/chat` to resume.",
  "version": "v1",
  "hooks": [
    {
      "name": "git-ai-pre-write",
      "trigger": "PreToolUse",
      "description": "Before kiro writes a file: flush pending dirty content as human-attributed and stash the path for the matching PostToolUse (vonage-git-ai)",
      "matcher": "fs_write|str_replace",
      "action": {
        "type": "command",
        "command": "~/.vonage-git-ai/hooks/kiro-cli-hook.sh",
        "timeout": 10
      }
    },
    {
      "name": "git-ai-post-write",
      "trigger": "PostToolUse",
      "description": "After kiro writes a file: send a git-ai agent-v1 checkpoint marking the new content as AI-authored by kiro (vonage-git-ai)",
      "matcher": "fs_write|str_replace",
      "action": {
        "type": "command",
        "command": "~/.vonage-git-ai/hooks/kiro-cli-hook.sh",
        "timeout": 10
      }
    }
  ]
}
