⌨️--system-prompt-snapshot Flag
Also known as claude --system-prompt-snapshot, --system-prompt-snapshot off
It says if a chat keeps the system prompt it started with.
Think of it like
It is like you keep the first copy of a note. Or you write a new one each time.
Example
Lucy is tuning the text she adds to the prompt. With --system-prompt-snapshot off, each --continue run uses her newest words, not the first ones.
Why it matters
Without it, changing the prompt flags on a resumed chat seems to do nothing.
Definition
Example code
bash
claude --continue --append-system-prompt "New draft rules" --system-prompt-snapshot offCommon mistake
Key takeaways
- 1Saved on first request. Then reused.
- 2off. Rebuild every time.
- 3Until compaction. Then rebuilt.