A system prompt is the instruction set applied before every conversation with an assistant you have built. It is where behaviour, scope and format live, and its defining property is repetition: every line in it is applied thousands of times, including the ones that are wrong.
How does it differ from a user prompt?
Position and persistence. It sits at the start of the input, before anything the user says, and it is resent with every request. Models are trained to give it more weight than user messages, though the difference is a tendency rather than a guarantee.
In consumer chat products the equivalent is custom instructions, which behave the same way with less control.
What belongs in one?
- Scope. What this assistant is for, and what it should decline.
- Behaviour. How to handle uncertainty, missing information and out-of-scope requests.
- Format. The default shape of a response.
- Tone. Demonstrated with a short example rather than described.
- Tools. When to use each one and when not to.
What is the most important line?
What to do when it does not know. Left unspecified, an assistant answers anyway, which is the single most damaging behaviour in a deployed product.
Something explicit works better than a general instruction to be accurate: if the answer is not in the supplied material, say so and offer to pass the question to a person, rather than inferring it.
What should not go in one?
Anything task-specific, which belongs in the user prompt where the task is. Long lists of edge cases, which dilute each other. Elaborate personas, which make output stranger rather than better and persist into every serious interaction.
Also anything confidential. System prompts leak, through direct extraction and through models paraphrasing their instructions, and treating one as secret is a poor security assumption.
How long should it be?
Shorter than most people write. Beyond a few hundred words, instructions start competing and compliance becomes inconsistent, and a bad answer cannot be traced to a line.
The trimming test applies here more than anywhere: remove a line, run your test cases, and see whether anything changes. Most lines in a long system prompt turn out to be doing nothing.
How do you handle several assistants sharing one?
By separating what is common from what is specific. A shared base covering tone, safety and format, with a short per-assistant section on top, is easier to maintain than four full prompts that have drifted apart.
The failure to avoid is copying a prompt to create a variant. Six months later there are four versions, three of which are missing a fix that was applied to one, and nobody knows which is current.
Does it override user instructions?
Usually, and not reliably enough to depend on for anything that matters. Users can talk models past system instructions, and content the model reads can inject instructions of its own.
Anything that must not happen belongs in code around the model rather than in a sentence inside it.
How do you test one?
With fixed cases covering normal use, edge cases and deliberate misuse. Include attempts to take it off topic and attempts to extract the prompt itself, since both will occur within days of launch.
Re-run the whole set after any change to the prompt or the model, because providers update models under the same name and behaviour drifts.
Does it belong in one block or several?
Several, with clear headings, once it is more than a few lines. Scope, behaviour, format and tools as labelled sections are easier to maintain and easier for the model to follow than a paragraph containing all of them.
It also makes the trimming test practical, since you can remove a whole section and see what breaks rather than picking at sentences. Most system prompts that have been in service for a year have at least one section nobody can justify.
What is the most common mistake?
Adding instructions after every bad answer without removing anything. Six months of that produces a two-page prompt where half the lines address problems that no longer occur, and the accumulated weight makes the ones that matter less reliable.