Dokumentationerreichbar
Anthropic, Modifying system prompts
code.claude.com (externe Seite)
Die Seite des Agent SDK zum Systemprompt: das Preset claude_code, ein eigener Prompt und die Wege dazwischen über CLAUDE.md, Ausgabestile und angehängten Text.
geprüft 17.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 14.10.2026:
A system prompt is the initial instruction set that shapes how Claude behaves throughout a conversation.
bestätigt 17.11.2026the system prompt that the Claude Code CLI uses, with tool usage instructions and security and safety instructions
bestätigt 17.11.2026System reminders are messages Claude Code adds to the conversation during a session to give Claude context, such as the contents of your CLAUDE.md files or a note that a file changed on disk.
steht dort nicht mehrHook output: text your hooks return as additional
bestätigt 17.11.2026Context Available skills: the names and descriptions of the skills Claude can call
bestätigt 17.11.2026Claude Code introduces your CLAUDE.md files with a line telling Claude that the instructions override default behavior.
bestätigt 17.11.2026the SDK uses a minimal prompt that covers tool calling but omits the rest of the claude_code preset’s content, including its security and safety instructions
bestätigt 17.11.2026This differs from claude -p, which uses the Claude Code system prompt by default.
bestätigt 17.11.2026Default query() options enable both sources, so CLAUDE.md loads automatically.
bestätigt 17.11.2026The SDK message stream doesn’t include system reminders, so reading the messages your code receives won’t show you what Claude saw.
bestätigt 17.11.2026Claude Code writes each request body to that directory.
bestätigt 17.11.2026