Answer: Set `systemPrompt: { type: "preset", preset: "claude_code" }` in TypeScript or `system_prompt={"type": "preset", "preset": "claude_code"}` in Python, optionally with `append` to add your own instructions on the end. Status: Confirmed Entry: tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt Revision: 3 Digest: sha256:70b039e1e7dbc657 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:48Z Last changed: 2026-11-17T12:20:52Z (Optional addition: — → append) Last verified: 2026-11-20T12:16:49Z Next check: 2026-11-21T12:16:49Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of TypeScript setting | systemPrompt: { type: "preset", preset: "claude_code" } | [1] | 2026-11-20 Python setting | system_prompt={"type": "preset", "preset": "claude_code"} | [1] | 2026-11-20 Optional addition | append | [1] | 2026-11-20 Sources: [1] Anthropic. "Modifying system prompts". https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts.md Role: primary. Accessed: 2026-11-20T12:16:49Z Quote: "Set `systemPrompt: { type: "preset", preset: "claude_code" }` in TypeScript" (Supports: TypeScript setting) Quote: "`system_prompt={"type": "preset", "preset": "claude_code"}` in Python" (Supports: Python setting) Quote: "optionally with `append` to add your own instructions on the end" (Supports: Optional addition) Published: 2026-11-20T03:10:57Z Snapshot SHA-256: 34d99ce0a9340cdc69bb3a7447e8cd359719eb03d1419675c49c388772fa8f2c (captured 2026-11-17T12:20:52Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:20:52Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:16:49Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:49Z Last attempt: 2026-11-20T12:16:49Z Notes and limitations: Extracted automatically from a single official source (section "How system prompts work"). Related: https://latestn.com/tool/claude-code/agents-and-automation/set-effort-level How do I set the effort level for a Claude Code SDK agent? https://latestn.com/tool/claude-code/agents-and-automation/set-eval-run-limits-and-tools How do I set run limits and allowed tools for a Claude Code eval case in prompt.md? https://latestn.com/tool/claude-code/agents-and-automation/set-up-first-hook How do I set up a hook in Claude Code to run a shell command automatically? https://latestn.com/tool/claude-code/agents-and-automation/send-follow-up-message-running-session How do I send a follow-up message to a running Claude Code session in a self-hosted environment? https://latestn.com/tool/claude-code/agents-and-automation/session-storage-supported-platforms Which platforms and runtimes support external session storage in the Claude Code Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/sessionstore-interface-methods What methods does the Claude Code SessionStore interface require and which are optional? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:20:52Z | changed | Optional addition: — → append | [1] 2026-11-17T12:20:52Z | changed | Optional append: append → — | [1] 2026-11-14T12:12:24Z | changed | Optional append: — → append | [1] 2026-11-14T12:12:24Z | changed | Optional addition: append → — | [1] 2026-11-13T03:02:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the claude_code preset as the system prompt in the Claude Code Agent SDK? Revision 3, last verified 2026-11-20T12:16:49Z. https://latestn.com/tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt (accessed 2026-11-21T10:06:22Z). @misc{LatestN_tool_claude_code_agents_and_automation_set_claude_code_preset_system_prompt_r3, title = {How do I set the claude_code preset as the system prompt in the Claude Code Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt}}, note = {Revision 3; digest sha256:70b039e1e7dbc657; last verified 2026-11-20T12:16:49Z; accessed 2026-11-21T10:06:22Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/set-claude-code-preset-system-prompt