GitHub - jerpint/clangine-de-poitrine: Plays angine de poitrine on spotify as long as claude is clauding

1 min read Original article ↗

Claude code plays Angine de Poitrine — Vol. II on Spotify as long as it's running. When the music stops, it means you need to do something (accept permissions, continue prompting, etc)

demo.mp4

Quick start

# 1. Install
git clone https://github.com/jerpint/clangine-de-poitrine.git ~/.clangine-de-poitrine
cd ~/.clangine-de-poitrine
chmod +x clangine

# 2. Install hooks into Claude Code
./clangine install

# 3. That's it — next time you use Claude Code, music plays while it thinks

How it works

Claude Code hooks trigger shell scripts:

  • UserPromptSubmitclangine play (you hit enter, music starts)
  • PostToolUseclangine play (resumes after permission was granted)
  • Stopclangine pause (Claude finishes, music stops)
  • Notificationclangine pause (Claude needs your attention)
  • PermissionRequestclangine pause (Claude needs permission)

Controls the Spotify desktop app via AppleScript (macOS).

Configuration

Create config.sh in the clangine directory:

CLANGINE_PLAYLIST="spotify:playlist:37i9dQZF1DX..."  # playlist or album URI
CLANGINE_SHUFFLE="true"                               # randomize track order

To get a playlist URI: Spotify → right-click playlist → Share → Copy Spotify URI.

If no playlist is set, it resumes whatever was last playing. If Spotify isn't open, clangine launches it automatically.

By default it plays Angine de Poitrine — Vol. II.