環境変数
CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT
すべてのサブエージェントのシステムプロンプトの末尾に任意のテキストを付加することを有効にします。
使い方・用途
- 1 を設定することで機能を有効化できます
- CLI オプション --append-subagent-system-prompt を使用すると、自動的にこの変数がセットされテキストも付加されます
- Claude Code v2.1.205 以降で利用可能です
英語原文(公式ドキュメントより)
Set to 1 to enable appending extra text to the end of every subagent's system prompt. The --append-subagent-system-prompt flag supplies the appended text and sets this variable automatically, so you don't need to set it yourself. Requires Claude Code v2.1.205 or later