AI GLOSSARY · PROMPTS AND INSTRUCTIONS

System prompt

Markdown version

Definition

A system prompt is the instruction text an application gives a language model ahead of the user's messages, setting its role, tone and rules. It guides behavior but is not an enforced control.

Also called: system prompts, Claude system prompt, what is a system prompt, system message, system instructions.

In plain language

A system prompt is the briefing a new employee gets before the first customer walks in: who you are, how to speak, what to avoid. An app can supply that briefing when it prepares a model request. Whether it is reused, rebuilt or changed depends on the application and settings. You usually do not see it. Chat apps and coding tools often add their own, and your own messages come after it. Its limit is that it is only text the model reads. The model can still ignore it, misread it or be talked around it, so it is not a lock. When included, it occupies context space; token usage, caching and the service's plan determine any billing effect.

Technical definition

In a chat-style request, the system prompt is a separate input that precedes the conversation turns. Anthropic's Messages API takes it in a top-level system parameter, not inside the messages array; OpenAI's text guides describe developer messages and an instructions parameter that rank above user messages. These interfaces give instructions a documented role or priority. That does not establish a universal internal implementation or make prompt text a security boundary; host permission and sandbox controls are separate. Claude Code documents that CLAUDE.md files are context, not enforced configuration.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    agent-instruction-files 46/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Project-specific repository instruction files checked against the repository; actual loading depends on the agent and file rules.
    Why it exercises the concept
    This is a related standing-instruction example, not the application's system prompt itself. The skill audits project guidance; it does not enforce permissions.
  2. Guide · Illustrative, not executed

    CLAUDE.md vs AGENTS.md: Which Agents Read Which File

    What you see
    A comparison of how Claude Code loads CLAUDE.md and how Codex loads AGENTS.md, with a decision rule and a way to keep a single source of truth.
    Why it exercises the concept
    It shows that standing instructions reach each agent through different files and load rules, so where a rule lives decides whether the model sees it.
  3. Coding tool · Illustrative, not executed

    Claude Code

    What you see
    Claude Code's memory documentation says CLAUDE.md files are context, not enforced configuration, and its CLI reference lists a launch flag, --append-system-prompt, that appends custom text to the end of the default system prompt.
    Why it exercises the concept
    It is a documented case of the layering in the definition: a system prompt supplied by the tool, with your own instructions arriving after it.

How it shows up when you use agents

Coding tools can add their own system instructions alongside loaded project guidance. The exact layers and loading rules depend on the tool and settings. In Claude Code, a CLAUDE.md file is extra instruction text, and Anthropic's memory documentation says: "Claude treats CLAUDE.md files and auto memory as context. They aren't enforced configuration." Codex reads AGENTS.md in a similar role. Their loaded contents occupy the context window when supplied; do not assume every file is loaded for every request.

What breaks when this is misunderstood: people write "never touch the production database" in an instruction file and treat it as a control. It is a request the model may follow, not a block. Another failure is a long, vague prompt that crowds out the task or contradicts itself, so the model follows one half and ignores the other.

Next actions: Keep standing instructions short and specific, so each line is something the agent could not guess from the code. Put hard limits in permission settings, which the tool enforces, and keep the written rule as a second layer. When behavior surprises you, check which file or setting added the instruction before editing your prompt. The agent instruction file entry covers the files, and prompt engineering covers how to word them.

Common confusions

  • System prompt versus user prompt. The system prompt comes from the application and sets standing rules. The user prompt is what the person types in each turn. Vendors rank them differently; OpenAI's guide says developer messages take priority over user messages.
  • System prompt versus CLAUDE.md. In Claude Code, CLAUDE.md is your instruction file, not the tool's own prompt.
  • Myth. A system prompt cannot be overridden. It is text the model reads, so a user or a web page can sometimes steer the model against it. See prompt injection.
  • System prompt versus training. A prompt supplies instructions at inference time without itself updating model weights. Training or fine-tuning changes the model itself.
Show all 24 related terms

Terms that mention System prompt

26 terms mention this one

Guides that mention System prompt

More in Prompts and instructions

Next steps

  1. CLAUDE.md vs AGENTS.md: Which Agents Read Which File The long-form guide.
  2. agent-instruction-files A skill that exercises it.
  3. Context window Related term.
  4. Agent instruction file Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and OpenAI Codex (targeted revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : Targeted batch-04 source repairs; qualified scope and illustration claims. Independent affected review pending; no publication approval.
  • : First version.
  • : Verifier pass: quoted memory page, removed unsupported delivery claim, sourced the append flag and Codex AGENTS.md.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.