環境変数

CLAUDE_CODE_SIMPLE

1 を設定すると、最小限のシステムプロンプトと Bash、ファイル読み取り、ファイル編集の各ツールのみで実行する。--mcp-config からの MCP ツールは引き続き利用可能。フック、スキル、カスタムコマンド、サブエージェント、インストール済みプラグイン、MCP サーバー、自動メモリ、CLAUDE.md の自動検出を無効にする。--add-dir で渡したディレクトリ内のスキルは引き続き読み込まれる。OAuth トークンとキーチェーンの認証情報は読み込まれないため、Anthropic の認証は ANTHROPIC_API_KEY または --settings の apiKeyHelper から提供する必要がある。--bare を渡すのと同等。

使い方・用途

  • システムプロンプトとツールを最小構成にしたい場合に、hooks・skills・custom commands・subagents・plugins・MCP servers・auto memory・CLAUDE.md の自動読み込みをまとめて無効化する。
  • Bash・ファイル読み込み・ファイル編集だけの軽い実行環境で Claude Code を動かしたい場合に使う。
  • -mcp-config で指定した MCP ツールだけを使いたい場合に、他の設定の自動発見を抑制しつつ MCP ツールを残す。
英語原文(公式ドキュメントより)

Set to 1 to run with a minimal system prompt and only the Bash, file read, and file edit tools. MCP tools from --mcp-config are still available. Disables auto-discovery of hooks, skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md. Skills in a directory you pass with --add-dir still load. OAuth tokens and keychain credentials are not read, so Anthropic authentication must come from ANTHROPIC_API_KEY or an apiKeyHelper in --settings. Equivalent to passing --bare

関連ドキュメント

関連する変更履歴

v2.1.50(2件)

Fixed
CLAUDE_CODE_SIMPLEがスキル、セッションメモリ、カスタムエージェント、CLAUDE.mdのトークンカウントを完全に削除するように修正しました。
英語原文を表示
Fixed CLAUDE_CODE_SIMPLE to fully strip down skills, session memory, custom agents, and CLAUDE.md token counting

関連ドキュメント

Changed
CLAUDE_CODE_SIMPLEモードでは、MCPツール、アタッチメント、フック、CLAUDE.mdファイルの読み込みも無効になり、完全に最小限の体験を提供します。
英語原文を表示
CLAUDE_CODE_SIMPLE mode now also disables MCP tools, attachments, hooks, and CLAUDE.md file loading for a fully minimal experience.

関連ドキュメント

v2.1.49(1件)

Added
シンプルモード (CLAUDE_CODE_SIMPLE) がBashツールに加えてファイル編集ツールを含むようになり、シンプルモードでの直接ファイル編集が可能になりました。
英語原文を表示
Simple mode (CLAUDE_CODE_SIMPLE) now includes the file edit tool in addition to the Bash tool, allowing direct file editing in simple mode.

関連ドキュメント