Digitorn
Digitorn
All terms
Agent concepts

System prompt

The instruction text the LLM sees before any user message. Sets the agent's role, constraints, and behaviour.

also known as: system message, agent persona, agent instructions
In depth

The system prompt is the contract between you and the LLM. It says what the agent is, what it should do, what it should not do, and how it should format its output. Most of the engineering work in agent design happens here, not in framework code. Writing a focused system prompt is more important than picking a more powerful model. On Digitorn the system prompt lives in YAML as a multi-line string, which means you iterate on it with hot reload instead of process restarts.

What it looks like in practice

YAML
1system_prompt: |2  You are a research agent. For each question:3  1. Search the web for 5 sources.4  2. Cross-reference and write a 600-word synthesis.5  3. Cite each claim with [domain.com](url).6  Be terse. No filler.
Related concepts
Newsletter

Get the next post in your inbox.

Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.

One-click unsubscribe. We never share your address. Powered by our own infrastructure, not a tracker.

More in Agent concepts

Agent loop/glossary/agent-loopAgent spawn/glossary/agent-spawnAI agent/glossary/ai-agentCompaction/glossary/compactionCoordinator agent/glossary/coordinatorFunction calling/glossary/function-calling