diff --git a/docs/notifications.md b/docs/notifications.md index 42bb5903..d6926d36 100644 --- a/docs/notifications.md +++ b/docs/notifications.md @@ -54,36 +54,9 @@ cmux notify --title "Done" --tab 0 --panel 1 ## Integration Examples -### Claude Code Hooks +### Claude Code -Add to `~/.claude/settings.json`: - -```json -{ - "hooks": { - "Notification": [ - { - "matcher": "idle_prompt", - "hooks": [ - { - "type": "command", - "command": "command -v cmux &>/dev/null && cmux notify --title 'Claude Code' --body 'Waiting for input' || osascript -e 'display notification \"Waiting for input\" with title \"Claude Code\"'" - } - ] - }, - { - "matcher": "permission_prompt", - "hooks": [ - { - "type": "command", - "command": "command -v cmux &>/dev/null && cmux notify --title 'Claude Code' --subtitle 'Permission' --body 'Approval needed' || osascript -e 'display notification \"Approval needed\" with title \"Claude Code\"'" - } - ] - } - ] - } -} -``` +See the [Claude Code documentation](https://docs.anthropic.com/en/docs/claude-code) for hook configuration. ### OpenAI Codex