Atomic can help you create workflows. Ask it to turn a repeatable process into a tracked multi-stage workflow.
Workflows
Atomic uses workflows to run executable engineering loops: reusable multi-stage automation with tracked stages, parallel branches, artifacts, human input, live status, checkpoints, and resumable background execution. For model-tool launches, the router owns all semantic selection from neutral state — see When to Use Workflows. For deliberate definition authoring and composition, see Choosing an Execution Shape. Key capabilities:- Tracked stages - Name each step and inspect it in workflow status and graph views
- Parallel branches - Run independent research, review, or implementation branches concurrently
- Context handoffs - Pass summaries, artifacts, files, and schema-backed structured results between stages
- Human input - Pause for
ctx.ui.input,confirm,select,editor, or custom TUI widget decisions during a run - Resumable control - Pause, quit, resume, or connect to workflow runs
- Intercom run notifications - Deliver async run results and control notices (long-running, needs-attention, completed, failed) to a parent session over Intercom
- Artifacts - Save large outputs to files instead of pushing everything through model context
- Verification and gates - Preserve evidence, run checks, and stop for human approval where reliability matters
- Model fallback chains - Retry important stages on fallback models when providers fail
- Package distribution - Ship workflows through Atomic packages, settings, or conventional directories
- Well-defined autonomous jobs that benefit materially from durable execution state
- Long-running or background work with explicit completion criteria
- Codebase research with parallel local and external research stages
- Review/fix loops with independent reviewers and a synthesis stage
- Release planning with human approval gates
- Documentation audits that save findings as artifacts
- Multi-stage migrations, broad refactors, and validation/rollback plans
- Reusable team workflows distributed through npm, git, or project settings
Choose your path
For deliberate definition authoring, start with the shipped builtins. If none fully fits, ask Atomic to design a task-specific workflow. Hand-write and maintain custom TypeScript once you are comfortable with Atomic, or when generated workflows do not meet the need. Generated and hand-written workflows use the same runtime definition. Dynamic and custom describe how you author them, not incompatible runtime types. Model-tool launch selection remains router-owned. Prefer composing builtin definitions withctx.workflow(...) over copying or rebuilding their prompts, graphs, reducers, and gates.
- Builtins and dynamic workflows — choose a shipped workflow, then generate a task-specific definition when needed.
- Custom authoring — learn the TypeScript shape and build your first maintained workflow.
- Reliable design — design contracts, context, topology, gates, loops, and handoffs.
- Operations — run, inspect, steer, pause, resume, and configure workflows.
- API reference — look up definitions, contexts, options, results, and programmatic APIs.
When to Use Workflows
The agent decides whether a workflow fits. Non-trivial work with structure and a verifiable objective runs as a workflow unless you ask for inline execution: implementation, bug fixes, debugging, migrations, multi-file changes with validation, and requests phrased as “repeat until” or “fix until green”. Brainstorming, discussion, unclear goals, tiny low-risk answers or edits, or an explicit request to work inline, quickly or without a workflow stays inline. To launch, inspect the input contract withworkflow inputs, then call workflow run with the registered workflow name and inputs. Ask only for genuinely missing information.
Safety, authorization, testing and evidence requirements remain in force. For an active user-requested switch to inline, safely hold/stop the affected run and reconcile completed work and in-flight effects before continuing without duplicates. User /workflow commands launch directly; authored ctx.workflow(...) remains internal composition.
workflow({...}) with normal coding tools when the definition needs richer branching, dynamic fan-out, artifacts, structured outputs, child workflows, human input, gates, retries, or loops.
Rich custom workflows can compose the common workflow patterns: classify and branch at runtime, fan out and synthesize artifacts, run worker/verifier/reducer repair cycles, generate and filter or tournament-rank candidates, and loop until explicit evidence says the work is done. Workflow definitions are composable TypeScript modules — see Workflow Composition. Atomic can write the definition, reload workflow resources, and run it for the current task; the workflow tool has no create action.
For authored graphs, design elapsed time using runtime-aware scheduling and estimates. Use available CI/test history to place focused checks at slice boundaries, defer redundant full-suite runs to the final candidate, and overlap independent work with CI without bypassing required gates. Before launching, share a brief duration estimate without confidence labels. Inherit existing budget limits without asking for a budget choice before each launch, and override only limits the user explicitly requests. Preserve existing approval gates. An estimate is not a budget or guarantee. At completion, compare the estimate with actual elapsed time.