settings.json
autoMemoryEnabled
型
boolean既定値true記述場所どの設定ファイルでも可有用なコンテキストを ~/.claude/projects/<project>/memory/ に自動保存する機能を有効にする(保存先は git リポジトリから導出され、worktree 間で共有される)。CLAUDE_CODE_DISABLE_AUTO_MEMORY 環境変数でも設定できる(1 で無効化、0 で有効化)。See https://code.claude.com/docs/en/memory#storage-location
記述例
{
"autoMemoryEnabled": false
}使い方・用途
- ローカルセッションでは自動的に有効になる auto memory を、セルフホスト環境のセッションなど既定で無効になる場面で明示的に有効化したいときに使う
- セッション中に
/memoryの切り替えでは一時的な設定しか残らないため、ユーザー設定に永続的に書き込みたいときに使う - auto memory を無効化した場合にサブエージェントの
memoryフィールドが効かなくなるため、サブエージェントの永続メモリを使いたいときに有効化しておく
英語原文(公式ドキュメントより)
Enable automatic memory saves that capture useful context to ~/.claude/projects/<project>/memory/ (derived from the git repository, shared across worktrees). Also configurable via CLAUDE_CODE_DISABLE_AUTO_MEMORY environment variable (set to 1 to disable, 0 to enable). See https://code.claude.com/docs/en/memory#storage-location