Skip to main content

Overview

Custom workflows let you define your own task templates beyond the built-in options. Write a Markdown file describing the workflow steps, drop it in .zenflow/workflows/ in your repo, and Zenflow surfaces it alongside the standard workflows when creating a task.
Credit Efficiency: Custom workflows have varying credit costs depending on the number of steps and the models configured. Learn more in the Workflow Credit Efficiency reference guide.

When to Use

  • Recurring team processes (release prep, security audits, migrations)
  • Compliance-driven workflows requiring specific documentation stages
  • Domain-specific flows (ML training pipelines, data processing)
  • When built-in workflows don’t match your team’s process

Creating a Custom Workflow

1. Create the workflow file

Add a .md file to .zenflow/workflows/ in your repository root:

2. Write the workflow definition

3. Use the workflow

When creating a new task, your custom workflow appears in the workflow picker alongside Auto, Fix a Bug, and others.

Workflow File Structure

Required Elements

Optional Elements

Agent Assignment

Assign different agent presets to different steps using HTML comments:
Agent presets are configured in Settings → Default agents. Each preset defines a CLI, model, and execution configuration.

Examples

Best Practices

  • Scope steps as coherent milestones — each step should produce a clear deliverable
  • Use artifact placeholders{@artifacts_path}/filename.md resolves paths automatically per task
  • Write imperative instructions — tell the agent what to produce, not just what to think about
  • Assign agents per step — use reasoning models for planning and fast models for implementation
  • Version control workflows — keep .zenflow/workflows/ in your repo so the team shares the same processes

All Workflows

Compare all available workflows

Multi-Agent Orchestration

Agent presets and subagent configuration

Subagents

Spawn isolated sub-processes within workflow steps