環境変数
CLAUDE_CODE_TOOL_MEMORY_CGROUP_EXCLUDE
Linux と WSL で、mcp や lsp などのプロセス種別をツールメモリ制限から除外するには、カンマ区切りのリストで設定します。none を設定するとすべての種別を制限し、all-new を設定すると Bash、PowerShell、Monitor ツールコマンドのみを制限します。Claude Code v2.1.246 以降が必要です。
使い方・用途
- 種別: none(すべての種別を制限)、all-new(Bash、PowerShell、Monitor のみ制限)、または mcp, lsp などの除外リスト
英語原文(公式ドキュメントより)
On Linux and WSL, set to a comma-separated list of the kinds of processes Claude Code excludes from the tool memory cap, such as mcp or lsp. Set none to cap every kind, or all-new to cap only Bash, PowerShell, and Monitor tool commands. Claude Code keeps Bash, PowerShell, and Monitor tool commands under the cap whatever you list. Requires Claude Code v2.1.246 or later