home/glossary/System Prompts
Context Engineering

System Prompts

definition

The system prompt is the most important single piece of context you control in an agent system. It sets the agent's role, behavior boundaries, output format, and operational constraints before any user interaction begins — effectively serving as the agent's "constitution" that governs all subsequent decisions.

The system prompt is the most important single piece of context you control in an agent system. It sets the agent's role, behavior boundaries, output format, and operational constraints before any user interaction begins — effectively serving as the agent's "constitution" that governs all subsequent decisions. Well-designed system prompts are specific about what the agent should and should not do, include examples of desired behavior, and establish a clear decision-making framework for ambiguous situations. The difference between a mediocre agent and a production-grade one often comes down entirely to the quality of its system prompt, because the system prompt shapes every single inference the model makes. This concept connects to agent config files for version-controlled system prompt management, few-shot examples for demonstrating desired behavior within prompts, and context window budget for understanding the token cost of detailed system instructions.

related concepts