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 22.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 22.11.2026the system prompt that the Claude Code CLI uses, with tool usage instructions and security and safety instructions
bestätigt 22.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.
bestätigt 22.11.2026Hook output: text your hooks return as additional
bestätigt 22.11.2026Context Available skills: the names and descriptions of the skills Claude can call
bestätigt 22.11.2026File-changed notes: a note that a file Claude edited earlier has since changed on disk
bestätigt 22.11.2026Claude Code introduces your CLAUDE.md files with a line telling Claude that the instructions override default behavior.
bestätigt 22.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 22.11.2026This differs from claude -p, which uses the Claude Code system prompt by default.
bestätigt 22.11.2026Default query() options enable both sources, so CLAUDE.md loads automatically.
bestätigt 22.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 22.11.2026Claude Code writes each request body to that directory.
bestätigt 22.11.2026