環境変数
CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS
内蔵されているExploreおよびPlanサブエージェントを無効化し、汎用ツールや直接のファイル読み込みに切り替えます。
使い方・用途
- 「1」に設定することで、特定のサブエージェントの使用を制限し、検索ツールや直接的なファイル操作による探索・計画を強制します
- 特定の名前(Explore/Plan)を持つカスタムサブエージェントには影響しません
- Claude Code v2.1.198以降で利用可能です
英語原文(公式ドキュメントより)
Set to 1 to disable the built-in Explore and Plan subagents. Claude explores with its search tools or the general-purpose subagent instead, and plan mode reads files directly rather than launching Explore and Plan agents. Custom subagents named Explore or Plan are unaffected. To remove every built-in subagent type in the Agent SDK or non-interactive mode, use CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS instead. Requires Claude Code v2.1.198 or later