settings.json
autoMemoryDirectory
自動メモリを保存するカスタムディレクトリのパスを設定します(プロジェクト設定による上書き不可)。
使い方・用途
- プロジェクトをまたいで記憶を共有するための自動メモリ保存先を、デフォルトの場所以外の特定のストレージや同期ディレクトリに変更したい場合に使用します。
- セキュリティ上の理由から、リポジトリにコミットされた設定ファイルによるパスのリダイレクトを無視し、ユーザーまたはポリシーの設定を優先します。
英語原文(公式ドキュメントより)
Custom directory path for auto-memory storage. Supports ~/ prefix for home-directory expansion. Ignored if set in checked-in project settings (.claude/settings.json) for security. Defaults to ~/.claude/projects/<sanitized-cwd>/memory/ when unset. See https://code.claude.com/docs/en/memory