#!/usr/bin/env bash # Run git with the commit AUTHOR named after the agent: `Claude ($BEADS_ACTOR)`. # Why GIT_AUTHOR_NAME and not `-c user.name`: .agents/skills/wave/agent-rules.md. set -euo pipefail if [ -z "${BEADS_ACTOR:-}" ]; then echo 'agent-git: BEADS_ACTOR is unset; refusing to author as the owner' >&2 echo 'usage: BEADS_ACTOR= scripts/agent-git commit|merge ...' >&2 exit 2 fi GIT_AUTHOR_NAME="Claude ($BEADS_ACTOR)" exec git "$@"