Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.248 ·

Switching model over the SDK can also swap the system prompt

Over the SDK, set_model can also swap your custom system prompt from the next turn.

Use it now Notable Improvements
JSON All of v2.1.248
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
SDKArea: what it touches
ImprovementsKind: in v2.1.248,
What probably matters to youSection of the release
What

The set_model control request accepts an internal system_prompt field that replaces the custom system prompt (the same slot as --system-prompt) starting from the next turn. It applies only if the model change itself is accepted and the value is non-empty; older transports report success without applying it.

Evidence

@internal Replaces the custom system prompt (the --system-prompt / initialize systemPrompt slot) from the next turn on.

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundleset_modelsystem_prompt--system-prompt
Since it was published

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 Scale to many tools with tool search touched a line naming system_prompt after this was published. You can also add a system prompt section listing available tool categories. This gives the agent context about what kinds of tools are available to search for. Pass the text in the `systemPrompt` option of `query()` in TypeScript, or `syst… agent-sdk/tool-search see the edit
Confirmed since Anthropic's documentation has since written up system_prompt, on Agent SDK reference - Python. | `system_prompt` | `str \| SystemPromptPreset \| SystemPromptFile \| None` | `None` | System prompt configuration. Pass a string for a custom prompt, `{"type": "preset", "preset": "claude_code"}` for Claude Code's system prompt with optio… agent-sdk/python see the edit
Confirmed since Anthropic's documentation has since written up set_model, on Agent SDK reference - Python. | `set_model(model)` | Change the model for the current session. Pass `None` to reset to [Claude Code's default model](/docs/en/model-config) | agent-sdk/python 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
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up --system-prompt, on How Claude Code uses prompt caching.

See this entry in the whole of v2.1.248 →

Feedback