Skip to content

Cookbook

Each recipe is self-contained — a complete experience.yaml snippet you can drop in and adapt. For the full feature set, see Concepts and the YAML schema reference.

Recipes

Control flow

RecipeWhat it covers
Fan-out with concurrencyfor_each over an array with concurrency: N; merge: array_append
Branch by feature flagwhen: edges to route at runtime based on a state value
Retry with backoffon_error: { policy: retry } with linear and exponential backoff
Nested experienceskind: experience node; state_scope: isolated; passing args

State & output

RecipeWhat it covers
Merge strategiesarray_append / set_once / last_wins with worked examples
Structured output schemasschema: patterns — nested objects, enums, arrays, nullable fields

Running & recovery

RecipeWhat it covers
Resume from cacheoe resume <run-id>; cache invalidation; --from flag

Visualize & share

RecipeWhat it covers
Visualize a graph & share a run reportoe graph Mermaid DAG; oe inspect --html self-contained run report

CI / automation

RecipeWhat it covers
Run on every PR & pin the reportpull_request workflow + reusable oe-report composite action; sticky PR comment + uploaded oe inspect --html artifact; pull_request vs pull_request_target security

Multi-provider & integration

RecipeWhat it covers
CLI agent with file editscli-agent with allow_file_edits: true; structured output
Hybrid LLM routingAnthropic + OpenAI in one flow via meta.runtime.providers
oe-mcp as serverExpose OE flows as MCP tools for Claude Code / Codex / Gemini
MCP resource as a dataset sourcesource.type: mcp-resource; mcp.json config; row normalization
Cross-vendor CLI agent chainClaude Code → Codex → Gemini in series; each reads prior output

Registry & publishing

RecipeWhat it covers
Submit to the registryoe submit; auto-detected GitHub metadata; pre-submit checklist

More patterns live in the examples gallery — every bundled example is a runnable recipe.

Stuck? Check FAQ + troubleshooting.

Released under the MIT License.