System prompts for agents work best as contracts: explicit constraints, clear tool usage rules, and predictable failure behavior.
Why It Matters
Agents run long loops, call tools, and accumulate state. Ambiguity in the system prompt compounds across steps.
Practical Guidelines
- Keep constraints explicit and testable.
- Specify tool usage rules (when to call tools, when not to).
- Define stopping conditions and escalation paths.