Workflows

Write the chain down once.
Relais runs it.

Some work is the same chain every time, with your eyes needed at set points. A workflow is a YAML file in your project; Relais runs it step by step and stops where you decide.

.relais/workflows/landing.yaml
name: Landing page
inputs:
  brief: longtext

steps:
  draft:
    prompt: Three takes on "{{inputs.brief}}", a screenshot each.
    outputs:
      shots: "drafts/*/shot.png"
  choose:
    panels:
      - { type: gallery, items: "{{steps.draft.outputs.shots}}" }
    actions: [pick, comment, stop]
    on:
      comment: { goto: draft, resume: true, max: 3 }
  build:
    prompt: Build {{steps.choose.picked.dir}} into the site.
  check:
    run: pnpm build
Why

One long conversation forgets the plan.

Draft three options, let me pick, build it, check it, ship it. In one session you have to come back at the right moment and say the same things again, and by step four the context is full of step one.

  • A file in your projectIn .relais/workflows: the form that starts it, its steps, and where you decide. Mistakes are listed with where they are, before a run can start.
  • A clean session per stepEach step gets exactly what it needs, and starts once the steps it needs are done; several run at once when they can.
  • Reviews where you decidePick one of the drafts, approve, or send the run back with a comment; the step resumes with your words.
  • Shell commands tooA build, the tests, a deploy script: a step can be a command instead of Claude.
  • Panels for the reviewGalleries with a crisp zoom, Markdown, checklists, changes, logs and files, in front of you when you decide.
  • Written with ClaudeCreate a workflow, say what it should run, and Claude writes the file with you, then checks it.
Get started

Three steps.

  1. 1Describe the chainCreate a workflow and say what it runs; Claude writes the YAML with you.
  2. 2Start a runFill in its form: a brief, a few pictures, a ticket number.
  3. 3Decide at the reviewsPick, approve or send it back. The rest runs on its own.
Questions

About Workflows.

Every question
Where do workflows live?

In .relais/workflows/ in your project, as YAML files you commit with the rest. A run copies the file when it starts, so editing it changes later runs only.

Can a step run a command instead of Claude?

Yes. A step is a Claude session, a shell command, or a review where you decide.

Can I send a step back?

Yes. A comment at a review can send the run back to an earlier step, which resumes with your words, as many times as the file allows.

Can an agent start one?

Yes. An agent can start a workflow with its form filled in, or open the form for you to check first.

Goes well with

Read more

Every feature

Your AI team,
on your Claude plan.

$14.99 a month, everything included. On your Mac or on Linux, on your Claude Pro or Max plan. Cancel any time.