Home

Configuration Reference

This page documents all properties available in the YAML frontmatter of a WORKFLOW.md file and the graph-level attributes of the DOT pipeline.

For recommended DOT layout and example organization, see Creating Workflows and Pipelines — Edges. The short version is: keep the entry edge near the top, then colocate each node definition with its outgoing edge or edges where practical.

Frontmatter Properties

name

Type: stringRequired

The name of the workflow. Must be lowercase kebab-case: 1–64 characters, only lowercase alphanumeric characters and hyphens, no leading/trailing/consecutive hyphens.

name: code-review

description

Type: stringRequired

A brief description of the workflow. Must be non-empty.

description: Automated code review with human approval gate

keywords

Type: string[]

Keywords or tags for discovery and routing. Helps managers find and rank this workflow when deciding which workflow to delegate to.

keywords:
  - code
  - review
  - testing
  - approval

when-to-use

Type: string[]

Positive selection signals describing when this workflow should be used. Each entry is a short sentence describing a scenario where this workflow is the right choice.

when-to-use:
  - when the user wants an automated code review pipeline
  - when changes need testing and human approval before merging

when-not-to-use

Type: string[]

Negative selection signals describing when this workflow should not be used. Helps managers avoid delegating to the wrong workflow.

when-not-to-use:
  - when the user wants a quick one-shot review without a pipeline
  - when the task is about writing new code rather than reviewing it

goal

Type: string

The high-level goal for the pipeline. Expanded as $goal in node prompt templates. Can be overridden at runtime with stencila workflows run --goal.

goal: Review recent literature on CRISPR gene editing

The goal can also be set as a graph-level attribute in the DOT source (see below). When set in both places, the frontmatter value takes precedence unless overridden at runtime.

Graph-Level Attributes

These attributes are set on the graph declaration inside the DOT pipeline:

goal

Type: string — Default: ""

Pipeline-level goal. Expanded as $goal in node prompts.

overrides

Type: string — Default: ""

CSS-like rules for per-node agent overrides. The primary way to configure models is through agent definitions referenced via the agent attribute on each node. The overrides mechanism provides a supplementary way to bulk-override agent properties across many nodes at once.

Supported properties: model, provider, reasoning-effort, trust-level, max-turns.

Specificity order: * (universal) < .class < #node_id. Override values take precedence over agent defaults but are themselves overridden by explicit agent.* node attributes. See Pipelines — Overrides for details.

default_max_retry

Type: integer — Default: 3

Global retry ceiling for nodes that omit max_retries. Workflows default to 3 retries so that transient errors (network failures, rate limits, server errors) are retried automatically. Set to 0 to disable.

retry_target

Type: string — Default: ""

Node ID to jump to if the pipeline reaches the exit node with unsatisfied goal gates.

fallback_retry_target

Type: string — Default: ""

Secondary jump target if retry_target is missing or invalid.

default_fidelity

Type: string — Default: ""

Default context fidelity mode for LLM sessions. Controls how context values are compressed or summarized.

Valid values: full, truncate, compact, summary:low, summary:medium, summary:high.

Node Attributes

Node attributes are set on individual nodes in the DOT pipeline. See Pipelines — Common attributes for the full reference, including prompt, agent, agent.model, agent.provider, agent.reasoning-effort, agent.trust-level, agent.max-turns, shape, max_retries, goal_gate, timeout, and class. The overrides graph attribute provides bulk overrides that target nodes by ID or class.

Edge Attributes

Edge attributes control transitions between nodes. See Pipelines — Edge attributes for the full reference, including label, condition, and weight.

Ephemeral Status

Ephemeral status is not configured in WORKFLOW.md frontmatter or DOT attributes. Instead, it is derived from the workflow directory on disk.

A workflow is considered ephemeral when its directory contains a .gitignore sentinel file with the content:

*

This marker is typically added automatically when a workflow is created by an agent or other temporary workflow creation flow. Remove the marker by running:

See Using Workflows for how to save or discard ephemeral workflows.

© 2026 Stencila