Strange coreaudiod memory usage
11:50–12:00
My coreaudiod process is already using 45 GB of memory. I suspect something in the command line is leaking.
Right now I’m strongly suspecting it’s the voice announcements in CC.

Sure enough, in the post https://www.reddit.com/r/ClaudeCode/comments/1n9wth1/why_does_running_claude_code_often_use_2040gb_of/ I also saw that someone added a hook to play sound effects, which caused a coreaudiod memory leak.
Now I need to remove Claude’s hook, and just configure things using my terminal’s own sound effects.
My terminal is Ghosty, so I’ll have to look into it.
First, uninstall peonping:
brew uninstall PeonPing/tap/peon-ping
Kept the previously downloaded sound pack /Users/rhett/.openpeon/packs/*
Then reconfigure based on the ghostty docs:
theme = Solarized Darcula
notify-on-command-finish = always
notify-on-command-finish-action = notify,bell
notify-on-command-finish-after = 1s
# 启用自定义音频 bell(必须 1.3.0+)
bell-features = audio,system,border,title
# 自定义音效路径(推荐先用系统自带,后面再换自己的)
# 格式:aiff/wav/mp3 均可
bell-audio-path = /Users/rhett/.openpeon/packs/ccg_china_dozer/sounds/Building_is_complete.mp3
bell-audio-volume = 1.0
And configured .claude/settings.json, keeping only the two hardcoded afplay hooks:
"hooks": {
"PermissionRequest": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "afplay /Users/rhett/.openpeon/packs/mambo_pack/sounds/review_this.mp3"
}
]
}
],
"Stop": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "afplay /Users/rhett/.openpeon/packs/mambo_pack/sounds/done.mp3"
}
]
}
]
},