Random co-author signoff for commits and PRs via Claude Code

2 min read Original article ↗
# INSTRUCTIONS:
# 1. place this bash script in the folder: /Users/<you>/.claude/hooks/signoff.sh
# 2. add this to your CLAUDE.md: Never use the default "Co-Authored-By: Claude" signoff. Instead, run `~/.claude/hooks/signoff.sh "<model>"` (e.g. `signoff.sh "Opus 4.6"`) and use its output as the signoff on every commit and PR.
# Restart your Claude Code session if needed, its loaded on start.
# Enjoy! https://github.com/Reebz
#!/bin/bash
# Random co-author signoff for commits and PRs
# Model is passed as $1, defaults to "Opus 4.6"
# Example: "Co-Authored-By: Jeffrey "The Dude" Lebowski (Opus 4.6) <noreply@anthropic.com>"
model="${1:-Opus 4.6}"
names=(
"Ace Irwin Ventura Sr."
'Anthony Edward "Tony" Stark'
"Austin Danger Powers"
"Bartholomew J. Simpson"
"Borat Margaret Sagdiyev"
"Buddy Hobbs-Elf"
"Buffy Anne Summers"
"Captain Jack Sparrow"
"Derek Zoolander"
"Dr. Peter Venkman Ph.D. Ph.D."
"Dwight Kurt Schrute III"
"He-Man, Prince of Eternia"
'James Duncan "Jim" Halpert'
'Jeffrey "The Dude" Lebowski'
"Katniss Everdeen"
'Landon "Happy" Gilmore'
"Leslie Barbara Knope"
"Lisa Marie Simpson"
'Lt. Franklin "Frank" Drebin Sr.'
'Marjorie Jacqueline "Marge" Bouvier Simpson'
"Michael Gary Scott"
"Mr. Bean"
"Mrs. Euphegenia Doubtfire"
"Napoleon Dynamite"
"Natalia Alianovna Romanova"
"Princess Fiona of Far Far Away"
"Queen Elsa of Arendelle"
"Rachel Karen Green"
"Regina George"
'Ronald Joseph Aaron "Ron" Burgundy'
'Ronald Ulysses "Ron" Swanson'
"Sterling Malory Archer"
"Wade Winston Wilson"
"Walter Hartwell White"
)
name="${names[$((RANDOM % ${#names[@]}))]}"
echo "Co-Authored-By: $name ($model) <noreply@anthropic.com>"