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

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

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

Stuck? Check FAQ + troubleshooting.

Released under the MIT License.