How it works

From a task to a merged pull request

Each task is a job. A job runs the same steps every time, on a runner you control. It does not stop to ask questions. If an agent has to guess, it says so in the pull request.

  1. 01

    Task

    Start a job from the web app, the run API or a Linear issue.

  2. 02

    Checkout

    A runner takes the job. It clones the repository onto a new branch.

  3. 03

    Implement

    An agent makes the change. It adds tests and runs the repository's checks.

  4. 04

    Review

    An agent on a different model reviews the change. A revise step fixes what it finds.

  5. 05

    Ship

    Machinist opens a pull request. It merges when CI passes and the review is clean. A Linear issue moves to Done.

Presets and agents

You set the steps in files

A preset is a list of steps in YAML. A step runs a shell script or an agent. An agent is a Markdown file. It holds a prompt. Its header names the harness and the model. One step can use Claude Code and the next can use Codex.

  • To change the steps, edit a file
  • Keep the files in git and review them like code
  • A failed shell step stops the job
Read about factory files
factory/presets/default.yaml
description: Make the change, review it and ship it.
steps:
  - name: checkout
    run: checkout.sh
  - name: implement
    agent: implement
  - name: review
    agent: review
  - name: revise
    agent: revise
  - name: publish
    agent: publish
factory/agents/review.md
---
harness: codex
---
Review the change on this branch.
List each problem you find.
Features

What Machinist does

Runs on your machines

A runner is a small program. It asks the control plane for work. Run it on a Mac, a VM or Kubernetes. It needs no open inbound port.

Choose the harness and model

Use Claude Code, Codex, Antigravity or Pi. Choose a model for each step.

Review by a second model

A different model reviews each change before it ships. The revise step fixes what the review finds.

Auto-merge you can turn off

By default, a pull request merges when its checks pass. Set github.auto_merge: false to merge each one yourself.

Linear

Assign a Linear issue to Machinist to start a job. When the pull request merges, the issue moves to Done.

Dashboard

See each job, its status and the output of each step. See the success rate and token use. Cost shows when the harness reports it.

Run API

Start a job with one request

Send a POST request to start a job. A tracker, a cron job or a webhook can do this. Each request has a key. If you send the same key twice, Machinist starts one job.

Terminal
$ curl -X POST https://machinist.example.com/machinist/run \
    -H "Authorization: Bearer $TOKEN" \
    -d '{"key":"fix-1","vars":{"repo":"acme/web"},"prompt":"Fix the toast position"}'

Machinist is open source

It uses the MIT License. You run it on your own machines.