The Decoder / One term

What is a system prompt?

A system prompt is the standing instruction a model reads before your message: who it is, how to behave, what it may and may not do, written once by the app maker or by you and sent silently with every conversation.

By Mstimaj Numbers checked 30 September 2026 Updated 30 September 2026 Level AI Fluency Tool Claude

Sign in to save your place and mark this done. Free, no card.

A folded note card standing on a dark desk in front of an empty chair, the card lit from above

Every chat with an AI starts with a message you did not write. The app puts it there: the model's name, the date, the rules of tone and safety, the tools it can use, the reply format. That is the system prompt. It sits above your words and shapes every reply. Custom instructions in ChatGPT, project instructions in Claude, and a CLAUDE.md file in a coding project all add your own lines to it.

Key facts

  • 1system prompt per conversation, sent again with every message you type
  • 0system prompts that make the model remember between chats; it is re-read, not learned
  • 3places you can write your own: custom instructions, a project, a file the tool reads such as CLAUDE.md
  • ~1,000sof tokens a vendor's default system prompt can take before you type a word; Anthropic publishes its Claude prompts in its release notes
  • Anthropic system prompt release notes and prompt engineering guide; OpenAI custom instructions help; Claude Code memory documentation; checked 30 September 2026

System prompt vs prompt: what is the difference?

Your prompt is the message you type. The system prompt is the frame around it. The model reads both, in that order, and treats the system prompt as the more authoritative voice, which is why an app can make the same model formal, playful, cautious or terse without changing the model. In the API a developer writes the system prompt directly. In a chat app the vendor writes it, and gives you a small box to add to it. In a coding tool such as Claude Code, part of it comes from files in your project folder, which is what makes the tool behave differently in each project.

Where the layers of instruction come from
Layer Who writes it Where it lives You can change it?
Vendor system prompt The app maker Sent with every chat, mostly hidden No
Custom instructions or profile You, once Account settings Yes
Project instructions You, per project The project in the app Yes
CLAUDE.md or AGENTS.md You, per folder A text file in the project Yes, with any editor
Your message You, every time The chat box Yes
Order the model reads them in ORDER THE MODEL READS THEM IN 1. Vendor system prompt first 2. Custom instructions second 3. Project or CLAUDE.md third 4. Conversation so far fourth 5. Your new message last
Earlier layers set the frame for later ones. Your message is read last, inside everything above it.

What is a custom instruction in ChatGPT?

A paragraph or two you write once, in settings, that the app appends to its system prompt in every new chat. People use it for the things they are tired of repeating: I run a small bakery in Connecticut, keep answers short, no bullet points, British spelling. Claude has the same idea in projects and in its profile preferences. The instruction is not remembered by the model. It is pasted in each time, which is exactly why it works every time.

What is CLAUDE.md?

A plain text file that Claude Code reads from your project folder at the start of every session and treats as standing instructions. It is a system prompt you keep in the folder next to the work: how the project is laid out, which commands run the tests, what the tool must never do, the house style. The tool also reads one from your home folder, for rules that apply everywhere. Codex reads an equivalent file called AGENTS.md. Writing one is the single biggest improvement a beginner can make to a coding agent, and it is a text file, so there is nothing to install.

Why does the same prompt give different answers?

Two reasons. The system prompt around your words may differ: the same question in ChatGPT and in a company’s support bot has a different frame, so the answer differs. And the model itself is sampling: at each word it picks from a spread of likely next words rather than always the single most likely one, so two runs of an identical prompt diverge. Apps expose that as a temperature setting. Turn it down and answers repeat; turn it up and they vary. Neither is a bug. It is how the text gets produced.

Ask what did not make sense

Comments go through our own form and are read before they appear. Links are not allowed; describe it in words.

Comments are read before they appear.

The newsletter

Get the next term.

One email when something goes up. The argument, the film and the term, nothing else. One click to leave.

Have a question now? Ask Mstimaj, she knows the archive.