What is a system prompt?

Before your first message, an AI app gives the model instructions you don’t see. What system prompts contain, with excerpts Anthropic publishes, and their limits.

Popo
On this page

Open a new chat and it looks empty. For the model it isn't. Before your first word, the app has already inserted a block of text: who the assistant is, how it should behave, today's date, what tools it has. That's the system prompt.

A model only continues a text, so this is the simplest way to steer it: write the beginning of the text yourself. The same model becomes a customer service agent, a coding tool or a tutor depending on what comes first.

What's in one

Most companies keep theirs private. Anthropic publishes the core ones used in the Claude apps, with their dates. The version for Claude Sonnet 5.5 dated 9 November 2026 runs to around 3,900 words, longer than most articles on this blog. Three passages:

On dates and knowledge

Claude's reliable knowledge cutoff, past which it can't answer reliably, is the end of Jun 2026. It answers the way a highly informed individual in Jun 2026 would if talking to someone from {{currentDateTime}}, and can say so when relevant.

On tone

Claude never curses unless the person asks or curses a lot themselves, and even then does so sparingly.

On formatting

Claude never uses bullet points when declining a task; the additional care helps soften the blow.
Quoted from Anthropic's published system prompt for Claude Sonnet 5.5, 9 November 2026. The highlighted part is a blank the app fills in when the chat starts.

The first shows how a model knows what day it is: it's told. Its knowledge comes from training and stops at a date. The current date is filled in by the app.

The other two show that much of what feels like an assistant's personality is written down in plain sentences. Change the sentences and you change the manner, without training anything.

Anthropic notes some limits on what it publishes. For current models it's one version, used in some chats with web search turned off; other chats use versions that aren't published. The prompts also don't apply to its API, where developers write their own.

Who gets the last word

System prompt and user message are both just text, so what happens when they conflict? Models are trained to rank them. OpenAI's researchers described this as an instruction hierarchy in 2024, having found that models often gave text from a developer, a user and a third-party web page the same weight. Training on examples of conflicts made GPT-3.5 much more robust, including against types of attack it hadn't seen.

  1. 1The provider’s rulesSet in training; can’t be changed by a prompt
  2. 2System promptWritten by whoever built the app
  3. 3Your messagesFollowed within the limits above
  4. 4Content it readsWeb pages, files: information, not orders

The order of priority models are trained to follow. It’s a tendency, not a lock.

A simplified order. The details differ between providers.

Training makes the higher level win most of the time. It's not enforcement in the way a file permission is. That gap is what prompt injection exploits.

Is it secret?

Treat it as though it isn't. Everything in the system prompt is in the text the model is reading, and people regularly get models to repeat it. Being told not to reveal it helps and doesn't guarantee anything. For anyone building an app, that means:

  • No passwords, keys or private data in a system prompt.
  • No security decisions either. "Only show orders to their owner" has to be enforced by the program that fetches the orders.

And if you get a chatbot to print its "system prompt", remember that a model can also invent one. A plausible text isn't proof that it's the real one.

Writing your own

You may already have one. ChatGPT's custom instructions, Claude's project instructions and similar settings are added to the text ahead of your messages. Some habits that help:

  • Say what you want, not only what you don't. "Answer in two paragraphs" works better than "don't be long".
  • Give the reason. "Metric units, because the readers are in Europe" lets the model handle cases you didn't list.
  • Keep it short. It's sent with every message and takes up part of the context window.
  • Look for contradictions. When instructions conflict, the result is unpredictable.