---
url: 'https://sema-lang.com/feature/workflows.md'
description: >-
  Define multi-phase agent workflows as ordinary Sema code. Phases are markers,
  agents are LLM leaves, and every step is journaled to a frozen JSONL run
  directory — resume, replay, or fork without losing state.
---

