環境変数

CLAUDE_CODE_SIMPLE

1 を設定すると、最小限のシステムプロンプトと標準ツール(Bash、ファイル読み書き)のみを使用するシンプルモードで実行します。

使い方・用途

  • スキル、セッションメモリ、カスタムエージェント、CLAUDE.md などの自動読み込みを無効化し、スクリプトからの呼び出しを高速化したい場合に使用します。
  • トークン消費を抑えつつ、ファイルの直接編集や Bash 操作のみに機能を絞り込みたい環境に最適です。
  • --bare フラグを指定した際と同じ動作を環境変数から制御できます。
英語原文(公式ドキュメントより)

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, plugins, MCP servers, auto memory, and CLAUDE.md. The --bare CLI flag sets this

関連する変更履歴

v2.1.50 (2件)

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.

関連ドキュメント

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

関連ドキュメント

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.

関連ドキュメント