Open source · 0.23.1

Run scripts and AI agents through workflows you control.

Define the steps, the results each step can return, and what happens next. Millrace runs the workflow and saves its progress, so you can inspect completed work and continue after a pause or interruption.

For tasks that need several steps, checks and recovery beyond a single agent session.

One workflow · Software change

A request becomes work, checks and a recorded result.

Give the supplied Plus template a project and a request.md with your goal and acceptance criteria. A script checks the input. One agent step makes the change. A second checks that the change is correct. A third compares the result with your original request.

Illustrative workflow, not a captured run

Your project request.md

  1. Python script

    Input check

    Confirms request.md has content

    READY
  2. Agent step

    Work

    Changes the project files

    READY
  3. Separate agent step

    Independent check

    Is the change correct? work/check.md

    ACCEPT
  4. Separate agent step

    Goal review

    Does it meet the original request? work/goal-review.md

    ACCEPT
  5. Recorded outcome

    Complete

    Run succeeded

REVISE from independent check

RepairREADY Recheckwork/recheck.md
  • ACCEPT continues to goal review
  • REVISE pauses for your decision

The script or agent returns a declared result. The graph chooses the next step. Reports and changed files remain in your project.

Missing input or blocked work pauses. Execution errors retry once, then pause. A goal-review gap also pauses. A planning defect produces a diagnosis report and pauses.

This template requires separately installed, authenticated Claude Code 2.1.296 and uses permission-bypass flags. Read the template prerequisites and launch behavior before running it.

Explore supplied workflows and native adapters

When work stops

A pause leaves something you can inspect.

The recheck still found a gap. The graph pauses instead of starting another repair cycle. Read the report and recorded progress, decide what needs to change, then use the supported controls to continue.

Completed records survive interruption. Continuation keeps the run’s remaining invocation and elapsed-time limits. Paused time counts toward the elapsed-time limit. Use the recovery guide when interrupted work may still have a running process.

Read the recovery and continuation guide
Illustrative paused record

Paused at recheck

Reason
Unresolved gap
Report
work/recheck.md
Next decision
Inspect the gap before continuing

Your editable workflow folder

workflow.json
Steps, results and routes
prompts/
Instructions for agent steps
scripts/
Commands and input checks
profiles/
Native adapter configuration

Make the workflow yours

Change the files that define the work.

Copy a supplied workflow, edit its steps and prompts, or write your own. Each copy runs independently of the source catalog. Your workflow defines the checks and what happens after each result.

Copy and edit a workflow
Core
Runs and records the graph. Works without Plus and without OS.
Plus
Supplies templates, a catalog and native adapters.
OS
Manages independent instances through a headless service and optional browser.

Try it locally

Start with a command. No provider needed.

The current first-run guide uses one local Python command to demonstrate routing and saved results. It needs no AI agent or OS service. Then try the software-change template with its native prerequisites.

Open the complete first-run guide
  1. Install 0.23.1

    Python 3.12+ · POSIX shell · fresh directory. The synchronized bundle installs Core, Plus and OS.

    python3.12 -m venv .venv
    . .venv/bin/activate
    python -m pip install "millrace==0.23.1"
    mkdir workflow project
  2. Save the example graph and create an instance

    Copy the example graph from the first-run guide and save it as workflow/workflow.json. Step 1 created the workflow/ and project/ folders. Then create an instance:

    millrace router instance create \
      --state-home ./router-state \
      --workflow ./workflow/workflow.json \
      --project ./project
  3. Validate and start

    Replace INSTANCE with the returned instance_id.

    millrace router validate \
      --state-home ./router-state --instance INSTANCE
    millrace router start \
      --state-home ./router-state --instance INSTANCE
  4. Inspect the saved result

    Replace RUN with the returned run_id. Inspect the run status and its recorded result.

    millrace router status \
      --state-home ./router-state \
      --instance INSTANCE --run RUN