The system prompt is the agent's standing instructions. It is the one block of context that stays fixed while the reason-act-observe loop rewrites everything else.
It sets the role and scope, the policy for using tools, and the rule for when to stop and answer.
Role and scope: what you are; what you must refuse
Tool policy: search before answering; never write without approval
Stopping rule: stop when the task is done; ask if inputs are missing
Output format: short markdown; cite the file you read
Two things matter in practice. Keep it stable, because a fixed prefix is what prompt caching can reuse. Keep it small: durable policy belongs here, and per-task detail belongs in the user message.
It steers the model but enforces nothing. Text arriving from a tool can still argue against it.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
The diagram below the answer is the concept . Jump to it ↓