Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.328 ·

System prompt is rebuilt per model in background and headless sessions

Detached background agents and headless runs now rebuild the system prompt for each model through a renderSystemPrompt callback

Group of 2 You'll notice Improvements
JSON All of v2.1.328
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.328,
ImprovementsSection of the release

Unclear It is not clear whether a custom or appended system prompt still reaches a session after it is moved to the background.

What

The system prompt is the standing set of instructions Claude Code gives the model. In two places it used to be built once and reused. It is now rebuilt through a renderSystemPrompt callback:

  • When the main conversation is detached to run in the background, its query now rebuilds the system prompt for each model. Tools are worked out first, and the custom and appended system prompts (customSystemPrompt and appendSystemPrompt) are no longer passed in this path.
  • The headless engine, which runs Claude Code without its interactive screen, now passes a callback that takes the tools, the MCP clients (connections to add-on tool servers) and the model in use, and rebuilds the prompt.

Why

The instructions can now follow a change of model or tools during a session, so a background or headless session may behave differently after a model switch or fallback. If you rely on a custom or appended system prompt, check how a backgrounded session behaves.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether a custom or appended system prompt still reaches a session after it is moved to the background.

See this entry in the whole of v2.1.328 →

Feedback