settings.json

hooks.Notification

型array

通知が発生した際にトリガーされるフック。

使い方・用途

  • Claude がユーザーの入力を待っているときや、認証に成功したときなどにデスクトップ通知を送信して作業効率を高めます。
  • 独自の通知スクリプトや外部サービスへの転送設定により、ターミナルを監視していなくても進捗を把握できます。
英語原文(公式ドキュメントより)

Hooks that trigger on notifications

関連ドキュメント

関連する変更履歴

v2.1.295(1件)

Fixed
claude remote-control セッションで、スマホのメッセージ直後、/config トグルなし、または Claude Code の内部から開始した場合に、PushNotification がプッシュが送られなかったと言う問題を修正
英語原文を表示
Fixed PushNotification saying a push was not sent in claude remote-control sessions right after a phone message, without the /config toggle, or when started from inside Claude Code

v2.1.293(1件)

Fixed
claude remote-control で開始したセッションにおいて、PushNotification が「Remote Control 無効」と報告する問題を修正した
英語原文を表示
Fixed PushNotification reporting "Remote Control inactive" in sessions started with claude remote-control

v2.1.246(1件)

Fixed
サンドボックスの「Network request outside of sandbox」権限プロンプトが待機中の間に Notification フックが発火しない問題を修正した
英語原文を表示
Fixed the Notification hook not firing while the sandbox "Network request outside of sandbox" permission prompt is waiting

関連ドキュメント

v2.1.233(1件)

Fixed
Claude Desktop や VS Code 上で実行した際に、権限プロンプトに対して Notification フックが発火しない問題を修正した
英語原文を表示
Fixed Notification hooks not firing for permission prompts when running under Claude Desktop or VS Code

関連ドキュメント

v2.1.198(1件)

Added
claude agents 内でバックグラウンドエージェントの通知機能が追加されました。入力待ちやタスク完了時にNotificationフック(agent_needs_input / agent_completed)がトリガーされるようになります。
英語原文を表示
Added background agent notifications in claude agents — sessions that need input or finish now fire the Notification hook (agent_needs_input / agent_completed)

変更後

エージェントの状況を常に監視する必要がなくなり、必要なタイミングでのみ作業に介入できるため、マルチタスクの効率が大幅に向上します。

関連ドキュメント

v2.1.152(1件)

Fixed
リモートコントロールが有効なSDKホストセッションにおいて、PushNotificationツールが「モバイルプッシュが送信されませんでした(リモートコントロールが無効です)」と誤って報告する問題を修正
英語原文を表示
Fixed the PushNotification tool incorrectly reporting "Mobile push not sent (Remote Control inactive)" in SDK-hosted sessions when Remote Control is enabled

変更後

プログラムからClaude Codeを実行したり、CI/CDパイプラインなどの外部ツールからプッシュイベントを送信したりする際の通知機能の信頼性が向上します。

v2.0.37(1件)

Changed
Hooks: Added matcher values for Notification hook events