#!/bin/bash # subagentStart: log subagent launch, allow fix-lint and other subagents HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)" # shellcheck source=lib.sh . "${HOOKS_DIR}/lib.sh" input=$(cat) subagent_type=$(echo "$input" | jq -r '.subagent_type // "?"') prompt_preview=$(echo "$input" | jq -r '.prompt // ""' | head -c 120) log_event "subagentStart" "type=$subagent_type prompt_preview=${prompt_preview}..." echo '{"decision":"allow"}' exit 0