What
Moves per-machine sections (cwd, environment info, memory paths, git status) from the system prompt into the first user message to improve prompt cache reuse across users.
Usage
claude --exclude-dynamic-system-prompt-sectionsDetails
- Only applies when using the default system prompt (ignored with
--system-prompt) - Particularly useful for teams or CI environments where multiple users/machines share cached prompts
- Defaults to
false(disabled)
Evidence
CLI flag (search for "--exclude-dynamic-system-prompt-sections")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Added --exclude-dynamic-system-prompt-sections flag to print mode for improved cross-user prompt caching