環境変数

CLAUDE_CODE_DISABLE_AUTO_MEMORY

自動メモリ(auto memory)機能を無効化、または強制的に有効化します。

使い方・用途

  • 1 を設定することで、Claudeが自動メモリファイルを読み書きすることを完全に禁止します。
  • 反対に、ベアモード(--bare)等であっても強制的にメモリを保持させたい場合は 0 を設定します。
英語原文(公式ドキュメントより)

Set to 1 to disable auto memory. Set to 0 to force auto memory on even when --bare mode or autoMemoryEnabled: false would otherwise disable it. When disabled, Claude does not create or load auto memory files