What
A session now carries the --system-prompt and --append-system-prompt values you typed alongside the finally-resolved prompts, so cloud and remote session setup can tell which came from your command line.
Evidence
appendSystemPrompt: e.appendSystemPromptCli
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundle--system-prompt--append-system-prompt
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Fullscreen rendering touched a line naming --append-system-prompt after this was published.
* Rules you passed with [`--allowed-tools` or `--disallowed-tools`](/docs/en/cli-reference#cli-flags), and your `--agent`, `--agents`, `--append-system-prompt`, and `--system-prompt-snapshot` flagsfullscreen see the edit
Added since
A small documentation edit on CLI reference touched a line naming --system-prompt after this was published.
If you start Claude Code in [bare mode](/docs/en/headless#start-faster-with-bare-mode), by passing `--bare` or setting `CLAUDE_CODE_SIMPLE=1`, recording stays off unless you pass `--system-prompt-snapshot on`. Before v2.1.268, sessions tha…cli-reference see the edit
Confirmed since
Anthropic's documentation has since written up --system-prompt, on How Claude Code uses prompt caching.
* In sessions signed in with a claude.ai or Console account, and other sessions that [fetch feature flags](/docs/en/env-vars#features-that-need-feature-flag-fetching), the resumed conversation keeps the system prompt it started with by def…prompt-caching see the edit
Confirmed since
Anthropic's documentation has since written up --append-system-prompt, on How Claude Code uses prompt caching.
The system prompt is the one layer a resume can treat two ways. It would change after a [Claude Code upgrade](#upgrading-claude-code) or with different [`--append-system-prompt`](/docs/en/cli-reference#system-prompt-flags) text on the resu…prompt-caching see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up --append-system-prompt, on How Claude Code uses prompt caching.