{"id":9574,"date":"2026-07-27T12:30:27","date_gmt":"2026-07-27T10:30:27","guid":{"rendered":"https:\/\/www.kubicek.ai\/?post_type=lexicon&#038;p=9574"},"modified":"2026-07-28T09:58:42","modified_gmt":"2026-07-28T07:58:42","slug":"system-prompt","status":"publish","type":"lexicon","link":"https:\/\/www.kubicek.ai\/en\/lexicon\/system-prompt\/","title":{"rendered":"System prompt"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A <strong>system prompt<\/strong> is an instruction inserted at the beginning of the context window in a dedicated role, framing the model&#8217;s behaviour for the whole conversation. Technically it is not a separate channel \u2013 after tokenisation it consists of the same tokens as user input \u2013 and its special authority is established only by training: during instruction tuning and RLHF, models are taught a hierarchy of roles in which the system message takes precedence over the user&#8217;s. It typically defines persona and tone, the language of replies, output format, available tools, the range of permitted topics and safety boundaries. Stable context is also placed in the system prompt, which allows it to be precomputed into the <a href=\"https:\/\/www.kubicek.ai\/en\/lexicon\/kv-cache\/\" class=\"lex-link\">KV cache<\/a> for cheaper operation. It is essential to be aware of its limits: because it is part of the same stream of text, it is not a security boundary and can be circumvented by prompt injection. Secrets such as keys or passwords therefore never belong in it, nor may it be the sole mechanism for controlling permissions \u2013 those must be enforced at the level of the application and the tools the model calls.<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<p class=\"wp-block-paragraph\">Think of the staff rules you hand a new employee on day one: &#8220;You are an employee of our bank, you always speak to customers yourself, you never promise a return, and you do not comment on competitors.&#8221; After that he simply takes client queries and holds to that frame. But the difference from a real employee is substantial: he has the rules taped to his monitor, not in a signed contract. A sufficiently inventive client can talk him into forgetting them. Which is why you do not lock the vault with staff rules but with a key \u2013 that is, with permissions on the system side.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-9574","lexicon","type-lexicon","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kubicek.ai\/en\/wp-json\/wp\/v2\/lexicon\/9574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kubicek.ai\/en\/wp-json\/wp\/v2\/lexicon"}],"about":[{"href":"https:\/\/www.kubicek.ai\/en\/wp-json\/wp\/v2\/types\/lexicon"}],"wp:attachment":[{"href":"https:\/\/www.kubicek.ai\/en\/wp-json\/wp\/v2\/media?parent=9574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}