AI 101

System prompts, in plain English

The invisible instruction sheet at the top of every agent conversation — what it contains, why it's long, and how to read one.

By the end of this page — you know where the system prompt sits, the six blocks it usually contains, why agent system prompts are thousands of tokens long, and how to find one for reading.

Every conversation with a chat or an agent starts with a message you never wrote: the system prompt. It’s the instruction sheet pinned to the top of the context, sent before your first question, and usually given higher priority than anything that follows.

Where it sits

┌────────────────────────────────────────┐
│ SYSTEM  →  "You are a careful code    │  ← the harness writes this
│            reviewer. Never edit files. │
│            Reply in French. …"        │
├────────────────────────────────────────┤
│ USER    →  "review this function"     │  ← you
├────────────────────────────────────────┤
│ ASSISTANT→ "Done, two issues found…"  │  ← the model
└────────────────────────────────────────┘

What’s usually in it

BlockPurposeTypical line
🎭 RoleWho the model is supposed to be“You are a senior backend engineer”
🗣️ Tone & formatHow it should talk and structure answers“Be concise. Use markdown tables for comparisons”
🧰 Tool policyWhich tools exist, when to use them“Use read_file before suggesting an edit”
🛡️ Safety rulesHard limits“Never run destructive commands without confirmation”
📌 Task stateThe current goal, constraints, files in play“Working in D:/IA/site-ia, do not touch layouts/”
🧠 Memory pointersWhere to look for long-term notes“Check TASK.md at session start”

Why agent system prompts are huge

A chatbot might ship with a 200-token system prompt. A serious coding agent carries thousands to tens of thousands of tokens on every single call: tool definitions, project conventions, security policy, examples of good and bad behaviour.

It's not free — Every call re-sends that whole sheet. More tokens in = more [tokens billed](/fundamentals/apis-pricing/), less room left in the [context window](/glossary/context-window/), and more surface for [prompt injection](/agents/agent-security/). Prompt engineering is partly the art of saying more with less.

You can read them

Most apps expose their system prompt somewhere (a /system command, a settings panel, or the raw request in network logs), and the prompting-vs-fine-tuning article explains why reading one is a legitimate way to learn how a product is built.

The system prompt is a strong suggestion, not a wall — It shapes the model strongly — it is the cheapest lever in the whole stack. But the model is still predicting tokens: a determined user (or a malicious page) can talk it out of some rules. That's exactly what [agent security](/agents/agent-security/) is about.