環境変数

CLAUDE_CODE_SYNC_PLUGIN_INSTALL

非対話モード(-p)において、最初のクエリ実行前にプラグインのインストール完了を待機させます。

使い方・用途

  • プラグインがバックグラウンドでインストールされてしまい、初回ターンで利用できない問題を回避するために使用します。
  • CI 環境などで、特定のプラグインがロードされていることを保証した上で処理を開始したい場合に有効です。
英語原文(公式ドキュメントより)

Set to 1 in non-interactive mode (the -p flag) to wait for plugin installation to complete before the first query. Without this, plugins install in the background and may not be available on the first turn. Combine with CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS to bound the wait