peeratop02/attention-sounds
attention-sound:一個 Claude Code 模組,當 Claude 需要你時播放音效,讓你在它工作時可以做其他事情。
一位 Reddit 使用者分享了 attention-sound,這是一個 Claude Code 外掛,當 Claude 需要你的輸入時播放可設定的音效,在背景執行任務時非常有用。安裝方式是透過 /plugin install attention-sounds --marketplace peeratop02/attention-sounds,倉庫位於 https://github.com/peeratop02/attention-sounds。
關於這個 mod
該使用者描述經常將任務委派給 Claude,將其置於背景,然後長時間忘記它。該模組會在 Claude 需要關注時播放你選擇的音效,這樣你就可以同時處理其他事情。它可以透過 /plugin install attention-sounds --marketplace peeratop02/attention-sounds 在 Claude 應用程式或終端機中安裝,原始碼位於 GitHub 上的 https://github.com/peeratop02/attention-sounds。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add peeratop02/attention-sounds claude plugin install attention-sounds@peeratop02
原文 / README
attention-sounds
▶ Watch the 36-second showcase with sound (the preview above is silent)
A Claude Code mod that plays a sound when Claude needs you, so you can do other things while it works.
| Event | Rings when |
| --- | --- |
| done | Claude finished its turn |
| permission | Claude waits for a permission answer |
| question | Claude asks you a question |
| attention | any other notification |
Each event can use its own sound, follow the default sound, or be muted. Picks are kept across sessions.
Install
At the prompt of a terminal claude session:
/plugin install attention-sounds --marketplace peeratop02/attention-sounds
Answer y to add the marketplace, then pick a scope. Installed at the user scope, it also loads in the desktop app's Code tab.
Use
/sound open the sound panel (or list picks)
/sound <event> <name> use that sound for the event
/sound <event> default follow the default sound
/sound <event> off mute the event
/sound sound <name> change the default sound
/sound test <name|event> hear a sound, or what an event plays now
/sound info the manual and every sound name
In the desktop app, /sound opens a panel: pick an event, pick a library, click a sound to hear it and use it.
In the terminal the panel takes the keyboard:
| Key | Does |
| --- | --- |
| arrows / Tab | move between sounds and buttons |
| Enter | hear the sound and use it |
| 1-5 | choose the event to edit (default, done, permission, question, attention) |
| n / b | next / previous library |
| t | test what the event plays now |
| d / m | follow the default / mute |
| Esc | close |
Update
claude plugin update attention-sounds@peeratop02
Then /reload-plugins in a running session, or start a new one.
Sounds
Ships with 18 interface sounds from Kenney (CC0), trimmed and re-encoded.
Add your own
- Run
/sound info. It prints the mod's sounds folder (Sounds folder: ...). - Make a folder inside it, for example
Mine/. Each folder shows up as a library in the panel. - Drop audio files in:
.m4a,.mp3,.wav,.aiffor.caf. The file name without its extension is the sound's name (Vine Boom.mp3becomesVine Boom). - Run
/soundagain. No restart needed.
Good sources: /System/Library/Sounds on macOS, Kenney and freesound for free packs, any soundboard site for memes.
Short clips that start at once work best. To cut silence from both ends and even out the volume with ffmpeg:
ffmpeg -i in.mp3 -af "silenceremove=start_periods=1:start_threshold=-45dB,areverse,silenceremove=start_periods=1:start_threshold=-50dB,areverse,loudnorm" "Mine/My Sound.m4a"
A plugin update replaces the installed folder, so keep a copy of your own sounds somewhere else.
Notes
- Tested on macOS only.
- Subagent turns and aborted turns stay silent.
Develop
claude plugin validate .
claude plugin test .
Licence
Code: MIT. Bundled sounds: CC0, by Kenney.
