Files
My-Brain-Is-Full-Crew/hooks/notify.sh
nunziati 00f673fc9a Summary: Refactor agents/skills/hooks/mcp in agentic-platform-agnostic templates.
refactor: rename source CLAUDE.md → DISPATCHER.md (framework-neutral)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

refactor: convert agent frontmatter from tools: to neutral capabilities:

Replace Claude Code-specific `tools:` frontmatter with framework-agnostic
`mode: subagent` and `capabilities: [...]` in all 8 agent files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

refactor: add neutral hook trigger manifests (.hook.yaml)

refactor: hooks read neutral JSON schema (args.* instead of tool_input.*)

refactor: convert .mcp.json to neutral mcp/servers.yaml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 16:59:07 +02:00

23 lines
977 B
Bash
Executable File

#!/usr/bin/env bash
# =============================================================================
# Hook: Desktop Notification (Notification event)
# =============================================================================
# Sends a macOS/Linux desktop notification when Claude Code needs attention.
# Useful during long agent chains that can take several minutes.
#
# macOS: uses osascript (built-in)
# Linux: uses notify-send (install with: sudo apt install libnotify-bin)
# =============================================================================
INPUT=$(cat)
TITLE=$(echo "$INPUT" | jq -r '.args.title // "Second Brain Crew"' 2>/dev/null)
MESSAGE=$(echo "$INPUT" | jq -r '.args.message // "Claude needs your attention"' 2>/dev/null)
if [[ "$(uname)" == "Darwin" ]]; then
osascript -e "display notification \"$MESSAGE\" with title \"$TITLE\"" 2>/dev/null
elif command -v notify-send &>/dev/null; then
notify-send "$TITLE" "$MESSAGE" 2>/dev/null
fi
exit 0