---
title: "System prompt"
url: https://eldan.ai/glossary/system-prompt
canonical: https://eldan.ai/glossary/system-prompt
locale: en
language: en
published: 2026-11-23
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"System prompt.\" Eldan.ai, 23 November 2026. https://eldan.ai/glossary/system-prompt."
---

# System prompt

> A system prompt is the developer-written part of a prompt that sets the model's role, rules and output format for the whole conversation. Models give it extra weight, but it is guidance, not enforcement. A determined user or a hostile document can still talk the model out of following it.

A good system prompt states the task, the audience, the allowed tools and the format of the answer, and says what to do when the input is out of scope. It is also the first place people look for secrets, so assume that its content can be extracted.

**Common mistake.** Relying on the system prompt as a security boundary, for example “never reveal the admin password”. A request in the prompt is not an access control.

**In practice.** Keep secrets and permissions in code. Use the system prompt for behaviour and style, and test it with adversarial inputs.

## Related terms

- [Prompt](https://eldan.ai/glossary/prompt)
- [Prompt injection](https://eldan.ai/glossary/prompt-injection)
