mirror of
https://github.com/gnekt/My-Brain-Is-Full-Crew.git
synced 2026-09-08 23:06:23 +00:00
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>
23 lines
977 B
Bash
Executable File
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
|