claude-configs/hooks/notify-subagent-done.sh
Cal Corum 2698f6a1af Add mcp-tui-driver MCP server, subagent notification hook
- Add tui-driver MCP server to .mcp.json for TUI app testing
- Add mcp__tui-driver__* wildcard permission to settings.json
- Add notify-subagent-done.sh hook
- Update plugin configs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 18:40:50 -06:00

14 lines
492 B
Bash
Executable File

#!/bin/bash
# Voice notification for Claude Code SubagentStop events
# Reads hook event JSON from stdin, extracts agent details, posts to voice server
INPUT=$(cat)
TYPE=$(echo "$INPUT" | jq -r '.agent_type // "Background agent"')
# Make agent type human-readable (replace hyphens with spaces)
FRIENDLY_NAME=$(echo "$TYPE" | tr '-' ' ')
curl -s -X POST http://localhost:8888/notify \
-H "Content-Type: application/json" \
-d "{\"message\": \"The ${FRIENDLY_NAME} agent has finished\"}"