Skip to main content

Prompts live in files, not in YAML

You declare a path to a Markdown file. The engine loads and renders it per request.

Variables

Prompt files can contain {{variable}} placeholders:
Variables are filled by resolvers — Python methods that run before the agent executes. The LLM never sees the variable names, only the rendered values. Declare which resolvers a node uses:
The resolver implementation (scaffolded by generate):

Extra’s default system prompt

Every agent and orchestrator gets Extra’s built-in default system prompt in front of its own system prompt. It keeps the model inside the capabilities you configured: don’t invent tools, data, or actions; say so when a request is out of scope; respect tool restrictions, authorization, and agent boundaries; never claim an action happened unless it actually ran. The final system prompt is composed in a fixed order, with a blank line between parts:
  1. Extra’s default system prompt (unless disabled)
  2. The node’s own prompt — prompts.system (or its description if there is no system file); for orchestrators, followed by prompts.orchestrator
  3. For orchestrators only, the engine’s routing contract
Only part 2 is rendered with {{variables}}. Extra’s default and the routing contract are engine text and are never interpolated. Opt a single node out with prompts.extra_default: false. That removes only Extra’s default — the node’s own prompt is still sent unchanged:
The setting is per node. In a delegated run each node makes its own model call with its own complete system prompt, so the default appears exactly once in each call — never twice, and opting out a child doesn’t affect its parent.

When rendering happens

At startup — prompt file paths are validated. If a file doesn’t exist, the engine fails before serving requests. Per request — resolvers run, variables are substituted, the final prompt string is produced. Rendered prompts are never cached globally — each request gets a fresh render with its own resolved values. This means dynamic values like current_date, customer_name, or account_tier are always accurate per request, regardless of when the engine started.

Rules

  • A variable with no matching resolver fails clearly — the engine names the node, the variable, and what’s missing.
  • Prompt text is not a security boundary. Don’t rely on prompt instructions to enforce access control — use the access plugin and runtime hooks instead.
  • Secrets must never appear in prompt files or YAML.