Workflow Engine
Scriptable multi-agent orchestration with crash recovery.
Built-in Workflow: Deep Research
6-phase research pipeline:
- Plan — Break question into search lines
- Search — Parallel web search
- Extract — Extract facts from sources
- Group — Deduplicate and group
- Crosscheck — 3-juror adversarial voting
- Report — Generate cited report
Custom Workflows
Workflows are JavaScript scripts with host functions:
agent(prompt, opts?)— spawn subagentparallel(thunks)— run tasks concurrentlypipeline(items, ...stages)— sequential processingphase(title)— mark phaselog(message)— emit log
Crash Recovery
- JSONL journal with deterministic key dedup
- Script SHA validation (clears journal on change)
- Resume from last checkpoint