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

31 Der Harness

Alle Quellen

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