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.
Your project request.md
- Python script
Input check
Confirms
READYrequest.mdhas content - Agent step
Work
Changes the project files
READY - Separate agent step
Independent check
Is the change correct?
ACCEPTwork/check.md - Separate agent step
Goal review
Does it meet the original request?
ACCEPTwork/goal-review.md - Recorded outcome
Complete
Run succeeded
REVISE from independent check
work/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.
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 guidePaused 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 guideInstall 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 projectSave 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 theworkflow/andproject/folders. Then create an instance:millrace router instance create \ --state-home ./router-state \ --workflow ./workflow/workflow.json \ --project ./projectValidate and start
Replace
INSTANCEwith the returnedinstance_id.millrace router validate \ --state-home ./router-state --instance INSTANCE millrace router start \ --state-home ./router-state --instance INSTANCEInspect the saved result
Replace
RUNwith the returnedrun_id. Inspect the run status and its recorded result.millrace router status \ --state-home ./router-state \ --instance INSTANCE --run RUN