From ec967be1de6588ec32bc1c6bad1ab968e4ca0f50 Mon Sep 17 00:00:00 2001 From: Shayan Rais Date: Sat, 4 Apr 2026 18:34:13 +0500 Subject: [PATCH] =?UTF-8?q?add=205=20new=20hook=20sound=20mappings=20?= =?UTF-8?q?=E2=80=94=20TaskCreated,=20StopFailure,=20CwdChanged,=20FileCha?= =?UTF-8?q?nged,=20PermissionDenied?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- .claude/hooks/scripts/hooks.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.claude/hooks/scripts/hooks.py b/.claude/hooks/scripts/hooks.py index 74a3130..e6cfb9d 100644 --- a/.claude/hooks/scripts/hooks.py +++ b/.claude/hooks/scripts/hooks.py @@ -3,7 +3,7 @@ Claude Code Hook Handler ============================================= This script handles events from Claude Code and plays sounds for different hook events. -Supports all 22 Claude Code hooks: https://code.claude.com/docs/en/hooks +Supports all 27 Claude Code hooks: https://code.claude.com/docs/en/hooks Special handling for git commits: plays pretooluse-git-committing.mp3 @@ -44,13 +44,18 @@ HOOK_SOUND_MAP = { "SessionEnd": "sessionend", "Setup": "setup", "TeammateIdle": "teammateidle", + "TaskCreated": "taskcreated", "TaskCompleted": "taskcompleted", "ConfigChange": "configchange", "WorktreeCreate": "worktreecreate", "WorktreeRemove": "worktreeremove", "InstructionsLoaded": "instructionsloaded", "Elicitation": "elicitation", - "ElicitationResult": "elicitationresult" + "ElicitationResult": "elicitationresult", + "StopFailure": "stopfailure", + "CwdChanged": "cwdchanged", + "FileChanged": "filechanged", + "PermissionDenied": "permissiondenied" } # ===== AGENT HOOK EVENT TO SOUND FOLDER MAPPING =====