環境変数

CLAUDE_CODE_EXIT_AFTER_STOP_DELAY

クエリループがアイドル状態になってから自動終了するまでの待機時間をミリ秒単位で設定します。

英語原文(公式ドキュメントより)

Time in milliseconds to wait after the query loop becomes idle before automatically exiting. Useful for automated workflows and scripts using SDK mode

関連する変更履歴

v2.0.35 (1件)

Added
Added CLAUDE_CODE_EXIT_AFTER_STOP_DELAY environment variable to automatically exit SDK mode after a specified idle duration, useful for automated workflows and scripts

関連ドキュメント