NachschlagenQuellenregister

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 10.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 10.11.2026
  • the system prompt that the Claude Code CLI uses, with tool usage instructions and security and safety instructionsbestätigt 10.11.2026
  • System 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.bestätigt 10.11.2026
  • Hook output: text your hooks return as additionalContextbestätigt 10.11.2026
  • Available skills: the names and descriptions of the skills Claude can callbestätigt 10.11.2026
  • Claude Code introduces your CLAUDE.md files with a line telling Claude that the instructions override default behavior.bestätigt 10.11.2026
  • the 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 instructionsbestätigt 10.11.2026
  • This differs from claude -p, which uses the Claude Code system prompt by default.bestätigt 10.11.2026
  • Default query() options enable both sources, so CLAUDE.md loads automatically.bestätigt 10.11.2026
  • The SDK message stream doesn’t include system reminders, so reading the messages your code receives won’t show you what Claude saw.bestätigt 10.11.2026
  • Claude Code writes each request body to that directory.bestätigt 10.11.2026

31 Der Harness

Alle Quellen

↑↓ auswählenEnter öffnenDie Suche läuft im Browser. Nichts wird übertragen.