Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Modifying system prompts changedagent-sdk/modifying-system-prompts

Nearest release: v2.1.335, published 9 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 2 Dec 2026 12:11 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 12:37 UTC.

Upstream edited
Recorded here
Lines+5added
Lines−3removed
From line 322 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits23to this page, all time

The whole hunk

from line 322, old and new numbered
/
lines
from line 322
322322 
323323> [!NOTE]
324324>
325> Claude Code splits the prompt only when it calls the Claude API directly or runs on [Claude Platform on AWS](https://code.claude.com/docs/en/claude-platform-on-aws.md). In every other configuration, such as Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, or an [LLM gateway](https://code.claude.com/docs/en/llm-gateway-connect.md), it sends the whole prompt as one block, the same as passing one string. The same happens whenever you set [`CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`](https://code.claude.com/docs/en/llm-gateway-protocol#disable-pre-release-capabilities).
325> Outside the Claude API and [Claude Platform on AWS](https://code.claude.com/docs/en/claude-platform-on-aws.md), such as on Amazon Bedrock or an [LLM gateway](https://code.claude.com/docs/en/llm-gateway-connect.md), splitting the prompt requires Claude Code v2.1.334 or later. You also need v2.1.334 or later when pre-release capabilities are off, such as after you set [`CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`](https://code.claude.com/docs/en/llm-gateway-protocol#disable-pre-release-capabilities). The TypeScript Agent SDK bundles Claude Code v2.1.334 or later from v0.3.334.
326326 
327To split the prompt, import `SYSTEM_PROMPT_DYNAMIC_BOUNDARY` from `@anthropic-ai/claude-agent-sdk` and pass it as its own array element between the two parts. The SDK sends the strings before the marker as one text block and the strings after it as a second block, each with its own cache breakpoint. In the example below, a support agent loads its triage instructions from a file and receives details about one ticket on each request, so the instructions stay cached while the ticket details change:
327To split the prompt, import `SYSTEM_PROMPT_DYNAMIC_BOUNDARY` from `@anthropic-ai/claude-agent-sdk` and pass it as its own array element between the static part and the per-request part. The SDK sends the strings before the marker as one text block and the strings after it as a second block, each with its own cache breakpoint.
328 
329In the example below, a support agent loads its triage instructions from a file and receives details about one ticket on each request:
328330 
329331```typescript TypeScript theme={null}
330332import { readFile } from "node:fs/promises";
Feedback