33 pages for systemprompt.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
compaction-background
Claude Developer Platform · in the page
build-with-claude/compaction-background
…short conversation compacts. const compactAtTokens = 2500; const systemPrompt = "You help design a recipe app's data model. Keep answers short."; const questions = [ "What are the main ent…
compaction-keep-recent-turns
Claude Developer Platform · in the page
build-with-claude/compaction-keep-recent-turns
…short conversation compacts. const compactAtTokens = 2500; const systemPrompt = "You help design a recipe app's data model. Keep answers short."; const keepTurns = 2; const questions = […
compaction-on-demand
Claude Developer Platform · in the page
build-with-claude/compaction-on-demand
…short conversation compacts. const compactAtTokens = 2500; const systemPrompt = "You help design a recipe app's data model. Keep answers short."; const questions = [ "What are the main ent…
compaction-thinking-blocks
Claude Developer Platform · in the page
build-with-claude/compaction-thinking-blocks
…-2026-09-04", "thinking-binding-controls-2026-08-01" ]; const systemPrompt = "You help plan a recipe app's release. Keep answers short."; // With "error", a thinking block that fails the che…
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…l = Model.ClaudeOpus5_5; var effort = Effort.Xhigh; const string systemPrompt = "You are a helpful general-purpose agent. Answer the user's request directly."; const int requestTimeoutSeconds…
Request 2 caches its request content (not the response)
Claude Developer Platform · in the page
build-with-claude/prompt-caching
…``csharp C# AnthropicClient client = new(); List<TextBlockParam> systemPrompt = [ new TextBlockParam { Text = "You are an expert software engineer with deep knowledge of d…
migration
Claude Developer Platform · in the page
managed-agents/migration
…| | `system_prompt` (typescript: `systemPrompt`) and the `CLAUDE.md` hierarchy | A single `system` (csharp, go: `System`; ruby: `system_`) string o…
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…l defaults"). > [!TIP] > > You can also inject context directly via `systemPrompt` without using CLAUDE.md files. See [Modify system prompts](https://code.claude.com/docs/en/agent-sdk/modifying-syste…
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…m/docs/en/agent-sdk/user-input.md#handle-tool-approval-requests) | | `systemPrompt` | `system_prompt` | The agent's instructions | [Modifying system prompts](https://code.claude.com/docs/en/agent-sdk/…
Migrate to Claude Agent SDK
Claude Code CLI · in the page
agent-sdk/migration-guide
…set: const presetResult = query({ prompt: "Hello", options: { systemPrompt: { type: "preset", preset: "claude_code" } } }); // Or use a custom system prompt: const customResult = query({…
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…e starting points for it: * **Minimal default**: when you don't set `systemPrompt` in TypeScript or `system_prompt` in Python, the SDK uses a minimal prompt that covers tool calling but omits the res…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…ols: list[str] = field(default_factory=list) system_prompt: str | SystemPromptPreset | SystemPromptCustom | SystemPromptFile | None = None mcp_servers: dict[str, McpServerConfig] | str | Path…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…: "acceptEdits"` to auto-approve file changes. Other options include `systemPrompt`, `mcpServers`, and more. See all options for [Python](https://code.claude.com/docs/en/agent-sdk/python.md#claudeagen…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…er-facing response, include an instruction to do so in the prompt or `systemPrompt` option you pass to the main `query()` call. > > In v2.1.210 and later, Claude Code [scans the final message for inst…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…hat kinds of tools are available to search for. Pass the text in the `systemPrompt` option of `query()` in TypeScript, or `system_prompt` in Python. Use the `claude_code` preset with `append`, which a…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…set, such as `mcpServers`, `hooks`, `canUseTool`, `settingSources`, `systemPrompt`, and `plugins`, is fixed for the life of the spare, so keep one spare per distinct set of those options and prewarm…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…_code.llm_request` | Only the system prompt text you provide via the `systemPrompt` SDK option or `--system-prompt` and `--append-system-prompt` flags. Emitted once per session rather than per request…
Understanding MCP clients
Model Context Protocol · in the page
docs/2024-11-05/learn/client-concepts
…ntelligencePriority: 0.9 // Need complex trade-off evaluation }, systemPrompt: "You are a travel expert helping users find the best flights based on their preferences", maxTokens: 1500 } ``` #…
Understanding MCP clients
Model Context Protocol · in the page
docs/2025-03-26/learn/client-concepts
…ntelligencePriority: 0.9 // Need complex trade-off evaluation }, systemPrompt: "You are a travel expert helping users find the best flights based on their preferences", maxTokens: 1500 } ``` #…
Understanding MCP clients
Model Context Protocol · in the page
docs/2025-06-18/learn/client-concepts
…ntelligencePriority: 0.9 // Need complex trade-off evaluation }, systemPrompt: "You are a travel expert helping users find the best flights based on their preferences", maxTokens: 1500 } ``` #…
Understanding MCP clients
Model Context Protocol · in the page
docs/2025-11-25/learn/client-concepts
…ntelligencePriority: 0.9 // Need complex trade-off evaluation }, systemPrompt: "You are a travel expert helping users find the best flights based on their preferences", maxTokens: 1500 } ``` #…
Understanding MCP clients
Model Context Protocol · in the page
docs/2026-07-28/learn/client-concepts
…ntelligencePriority: 0.9 // Need complex trade-off evaluation }, systemPrompt: "You are a travel expert helping users find the best flights based on their preferences", maxTokens: 1500 } ``` #…
Understanding MCP clients
Model Context Protocol · in the page
docs/draft/learn/client-concepts
…ntelligencePriority: 0.9 // Need complex trade-off evaluation }, systemPrompt: "You are a travel expert helping users find the best flights based on their preferences", maxTokens: 1500 } ``` #…
SEP-2322: Multi Round-Trip Requests
Model Context Protocol · in the page
seps/2322-MRTR
…elligencePriority": 0.8, "speedPriority": 0.5 }, "systemPrompt": "You are a helpful assistant.", "maxTokens": 100 } } } ``` The client would then send the responses in…
Sampling
Model Context Protocol · in the page
specification/2024-11-05/client/sampling
…"intelligencePriority": 0.8, "speedPriority": 0.5 }, "systemPrompt": "You are a helpful assistant.", "maxTokens": 100 } } ``` **Response:** ```json theme={null} { "jsonrpc":…
Sampling
Model Context Protocol · in the page
specification/2025-03-26/client/sampling
…"intelligencePriority": 0.8, "speedPriority": 0.5 }, "systemPrompt": "You are a helpful assistant.", "maxTokens": 100 } } ``` **Response:** ```json theme={null} { "jsonrpc":…
Sampling
Model Context Protocol · in the page
specification/2025-06-18/client/sampling
…"intelligencePriority": 0.8, "speedPriority": 0.5 }, "systemPrompt": "You are a helpful assistant.", "maxTokens": 100 } } ``` **Response:** ```json theme={null} { "jsonrpc":…
Schema Reference
Model Context Protocol · in the page
specification/2025-06-18/schema
…d-signature-symbol">;</span><br /> <span class="tsd-kind-property">systemPrompt</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-sig…
Sampling
Model Context Protocol · in the page
specification/2025-11-25/client/sampling
…"intelligencePriority": 0.8, "speedPriority": 0.5 }, "systemPrompt": "You are a helpful assistant.", "maxTokens": 100 } } ``` **Response:** ```json theme={null} { "jsonrpc":…
Multi Round-Trip Requests
Model Context Protocol · in the page
specification/2026-07-28/basic/patterns/mrtr
…What is the capital of France?" } } ], "systemPrompt": "You are a helpful assistant.", "maxTokens": 100 } } } ``` #### InputResponses An [`InputResponses`](…
Sampling
Model Context Protocol · in the page
specification/2026-07-28/client/sampling
…: 0.8, "speedPriority": 0.5 }, "temperature": 0.1, "systemPrompt": "You are a helpful assistant.", "includeContext": "thisServer", "maxTokens": 100 } } ``` **Client result…
Multi Round-Trip Requests
Model Context Protocol · in the page
specification/draft/basic/patterns/mrtr
…What is the capital of France?" } } ], "systemPrompt": "You are a helpful assistant.", "maxTokens": 100 } } } ``` #### InputResponses An [`InputResponses`](…
Sampling
Model Context Protocol · in the page
specification/draft/client/sampling
…: 0.8, "speedPriority": 0.5 }, "temperature": 0.1, "systemPrompt": "You are a helpful assistant.", "includeContext": "thisServer", "maxTokens": 100 } } ``` **Client result…