Windows TerminalでClaude Code実行時に通知センター表示
Claude Codeの処理が終わったタイミングでWindowsへ通知する設定をしたときの覚書。 Geminiと対話。 環境: Windows 11 Pro 25H2, PowerShell 7.6.3 1. BurntToastをインストール Windowsターミナルがアクティブ状態でも通知してほしいので、BurntToastをインストールする。 参考: Windos/BurntToast: Module for creating and displaying Toast Notifications on Microsoft Windows 10. > Install-Module -Name BurntToast -Scope CurrentUser -Force 通知テストのコマンド。 > New-BurntToastNotification -Text '処理が完了しました。成果物を確認してください。' 画像を表示しない通知。 > Submit-BTNotification -Content (New-BTContent -Visual (New-BTVisual -BindingGeneric (New-BTBinding -Children (New-BTText -Content '処理完了'), (New-BTText -Content '画像表示領域のないクリーンな通知です。')))) 2.Claude CodeのHooks(フック)機能を使う ユーザーの確認を待っているパターンと、タスクが完了したパターンで通知を分ける。 Claude CodeはWindowsの標準的なシェルインターフェースで立ち上げるので、通知テストするときはcmd.exeで動作確認する。 cmdで動作確認 > pwsh.exe -NoProfile -Command "New-BurntToastNotification -Text '💡 cmdからのテスト', 'PowerShell 7経由での通知です。'" Claude Codeの設定ファイル(~/.claude/settings.json)を編集する。 Gemini先生から言われた下記内容を追...