systemPrompt field on defineAgent. Keep it in code so it’s versioned and reviewable:
agents/qualifier.ts
The three components
Every agent prompt consists of three sections:1. Role / Purpose
Defines who the agent is and what it’s trying to achieve. This sets the primary context for the LLM. Example:2. Behavior
Outlines how the agent should work — the steps it takes, actions it uses, and the format of its output. This directly guides the agent’s planning phase. Example:Action selection tip: Give each action a specific name and clear description.
The agent uses these to decide which action to call and when.
3. Avoidances
Establishes what the agent must NOT do. These guardrails prevent undesired actions and ensure compliance. Example:Best practices
Next steps
Tools & actions
Give the agent operations to invoke — tools, connector actions, sub-agents, MCP servers.
Native LLM capabilities
Web search, memory, canvas, and the other built-in features.

