# --exclude-dynamic-system-prompt-sections

> It makes the prompt the same for each user.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --exclude-dynamic-system-prompt-sections, Exclude dynamic system prompt sections flag

## Think of it like

It is like each book has the same cover. The names are written inside.

## Definition

--exclude-dynamic-system-prompt-sections moves the parts of the system prompt that change per person into the first user message. Where auto memory lives is one such part. Then the rest of the prompt is the same for each person and machine. So the prompt cache can be shared by all of them. It only works with the default prompt, and is meant for -p.

## Example

Jack runs the same check for fifty people on fifty machines. With this flag, the prompt matches on all of them, so most of it is read from the cache.

## Example code

```bash
claude -p --exclude-dynamic-system-prompt-sections "Check the build"
```

Keep the prompt the same across machines.

## Why it matters

Cached prompt text is cheaper and faster, and here many runs can share it.

## Common mistake

Adding it with --system-prompt. It only works on the default prompt and is ignored then.

## Three principles

- **Per-user parts.** Move to the first message.
- **Same prompt.** Shared cache.
- **Default prompt only.** With -p.

## Related terms

- [Prompt Caching](https://learn.benibix.com/term/ai/prompt-caching)
- [--system-prompt Flag](https://learn.benibix.com/term/ai/system-prompt-flag)
- [Auto Memory](https://learn.benibix.com/term/ai/auto-memory)

## Taught in

- [System Prompt Flags](https://learn.benibix.com/learn/ai-claude-code-commands/system-prompt-flags): Claude Code Commands, 16/17

---

Source: https://learn.benibix.com/term/ai/exclude-dynamic-system-prompt-sections-flag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
