Search the documentation
3 pages for excludedynamicsections.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…em prompt. To make the system prompt identical across sessions, set `excludeDynamicSections: true` in TypeScript or `"exclude_dynamic_sections": True` in Python. The per-session context moves into th…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…oolean } \| { type: 'preset'; preset: 'claude_code'; append?: string; excludeDynamicSections?: boolean; snapshot?: boolean }` | `undefined` (minimal prompt) | System prompt configuratio…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ng and extended thinking breaking mid-session for SDK sessions using `excludeDynamicSections`: the first message is no longer re-rendered each request * Fixed entitled users being told a model is re…