環境変数

CLAUDE_CLIENT_PRESENCE_FILE

PCの使用状態を示すマーカーファイルのパスを指定することで、そのファイルが存在する間はモバイル端末へのプッシュ通知を抑制します。

使い方・用途

  • PCでの作業中にモバイル端末へ重複して届く不要な通知を停止し、開発の集中力を維持します。
  • スクリーンロック解除時にファイルを作成し、ロック時に削除するスクリプトと組み合わせることで、離席時のみ通知を受け取る運用が可能です。
  • 通知を送信するたびにファイルの有無を確認するため、リアルタイムに通知の要否を判断できます。
英語原文(公式ドキュメントより)

Path to a file that an external tool, such as a screen-lock listener, creates when you unlock your screen and deletes when you lock it. While the file exists, Claude Code skips Remote Control mobile push notifications, so you stop getting pushes while you are actively using the computer. When the file is absent or unreadable, notifications are sent as normal. Claude Code checks the file once per push-triggering event rather than polling it. Requires Claude Code v2.1.181 or later

関連する変更履歴

v2.1.181(1件)

Added
CLAUDE_CLIENT_PRESENCE_FILE 環境変数を追加し、PC 作業中にモバイルへのプッシュ通知を抑制できるようにしました
英語原文を表示
Added CLAUDE_CLIENT_PRESENCE_FILE environment variable: point it at a marker file to suppress mobile push notifications while you're at the machine

変更前

PC で作業していてもモバイル端末にプッシュ通知が届き、煩わしく感じることがありました。

変更後

指定したファイルが存在する間、モバイル通知を抑制できるようになりました。

ユーザーへの恩恵

集中して PC 作業をしている際に、不要な通知を受け取らずに済みます。

関連ドキュメント