Skip to main content
A workflow.md is assembled from independent frontmatter blocks, one per concern. Pick the blocks you need, stack them under one --- fence with an id, version, and agent, then validate. Agents: this page plus the Workflow Schema is enough to assemble any workflow — you do not need the rest of the docs in context.

Identity (always required)

Agent (always required)

Strings may contain {{variables}}{{workflow_id}}/{{issue_ref}} are injected by Cadence; your own come from typed arguments (full contract).

Selection & fallback (optional)

Arguments (your own template variables)

Reference as {{topic}} / {{experts}} in any template string (how resolution works).

Budget

Sandbox

Tools

Retry & failure fallback

Review consensus

Cache

Provider knobs (Headroom, thinking, permissions)

Per-runtime knob lists live on Runtimes; per-provider parameter tables (types, defaults, allowed values, risk) live on the provider pages.

State machine

Workpad & evidence

Validate, then dispatch

Assemble blocks → validate (think_workflow_md_validate from an agent session) → dispatch through Cadence. Complete worked combinations are in the Cookbook.