#!/usr/bin/env bash
set -euo pipefail

if grep -qi "Co-Authored-By: Claude" "$1"; then
  printf 'ERROR: commit message contains an AI co-author line (Co-Authored-By: Claude)\n' >&2
  printf 'Remove the co-author line before committing.\n' >&2
  exit 1
fi
