HN 표시: Clangine-de-Poitrine
hackernews
|
|
📦 오픈소스
#claude
#show hn
#spotify
#음악
#자동화
#showhn
#개발팁
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
오픈소스 프로젝트 'Clangine-de-poitine'은 Claude Code 작동 중에 스포티파이 음악이 재생되도록 하여 사용자에게 작업 상태를 직관적으로 알려주는 도구입니다. AI가 응답을 생성할 때는 음악이 흘러나오고, 작업이 완료되거나 권한 승인 등 사용자의 개입이 필요한 경우에는 음악이 일시 정지되도록 훅(Hook) 스크립트를 활용합니다. 이 시스템은 macOS 환경에서 애플스크립트를 통해 스포티파이 데스크톱 앱을 제어하며, 기본적으로 'Angine de Poitrine — Vol. II' 앨범이 재생되지만 사용자가 원하는 플레이리스트 URI로 설정 변경도 자유롭게 가능합니다.
본문
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) # 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 Claude Code hooks trigger shell scripts: UserPromptSubmit →clangine play (you hit enter, music starts)PostToolUse →clangine play (resumes after permission was granted)Stop →clangine pause (Claude finishes, music stops)Notification →clangine pause (Claude needs your attention)PermissionRequest →clangine pause (Claude needs permission) Controls the Spotify desktop app via AppleScript (macOS). 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.
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유