Machinist
A self-hosted job runner that turns team requests into coding-agent runs with visible steps, a review pass, and a controlled merge.
- Source repo
- owainlewis/machinist
- Stars
- ★ 549
- Last updated
- today
- FARS reviewed
- Sep 17, 2026
- License
- MIT
- Primary language
- Go
- FA score
- 45/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A small product team that delegates Linear issues: assign the issue to the Machinist app, get a job within a minute, and review the pull request it opens.
- Not a fit if
- Teams that want a managed SaaS and no control plane or runners to operate
- Workflows where the agent must stop and ask a question mid-run; jobs are headless
- Teams without a Claude Code, Codex, Antigravity, or Pi login to drive the steps
- Website
- machinist.sh ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-27+1.3 ★/day over 7 days
- Source review
- 45/100 · Major gaps
What does this agent do, and when should you use it?
Machinist is a self-hosted job runner for coding agents, written in Go. A control plane holds jobs, runs and presets in SQLite or PostgreSQL and never executes a step itself; small runner daemons dial out to ask for runs and can live on a Mac, a VM, Docker (with optional gVisor) or Kubernetes. Each job follows a preset — checkout, implement, review, revise, publish, merge-gate, merge — where every step runs an agent (claude, codex, pi, or agy, each with its own model and prompt) or a shell command. Jobs work on their own branch, the default preset opens one pull request, and the control plane merges only when review accepted it, merge-gate rated it low risk, and checks pass — a rule written in Go, not left to an agent. Jobs start from the web app, the run API, MCP, a schedule, or a Linear issue, run headless to completion, and are visible step by step to anyone signed in. The project is MIT-licensed and described by its author as early-access software.
The control plane stores jobs, runs and presets and hands work to runners; runners call machinist runner start and execute the preset steps in order. In the default preset, checkout clones the repository, implement has an agent make the change, review runs a second agent, revise fixes what review found and reviews again, publish opens one pull request, merge-gate judges risk as low/medium/high against .machinist/merge-policy.md on the default branch (or factory/prompts/merge-policy.md) without GitHub credentials, and merge posts the verdict and hands the pull request back to the control plane so the runner does not wait on CI. Steps are defined in factory/agents/ (harness, model, prompt) and factory/scripts/, with shared rules in factory/prompts/; a test step is a check an agent cannot skip. When CI fails or a parallel merge conflicts, PR Steward starts a fix run on the same branch up to github.steward_retries times (default 2) without overwriting human commits. Interfaces include POST /machinist/run, POST /machinist/jobs/{id}/cancel, POST /machinist/jobs/{id}/rerun, live reload via machinist reload, and Slack-compatible notifications through notify.webhook plus server.public_url. Dashboards report time to merge, human touches, success rate, tokens, cost, and cost per merged pull request.
- A small product team that delegates Linear issues: assign the issue to the Machinist app, get a job within a minute, and review the pull request it opens.
- A platform engineer who wants agents on owned infrastructure: start runners on Docker (optionally gVisor) or Kubernetes and keep GitHub credentials out of the runners by using a GitHub App.
- A team already using Claude Code and Codex that wants every change reviewed by a second model family before it can merge.
- An engineering manager who needs numbers, not vibes: the Dashboard tracks time to merge, human touches, tokens and spend by harness and model, including cost per merged pull request.
- Someone wiring agents into existing tooling: call the run API with curl, expose jobs to a bot over MCP, or run saved and scheduled automations from the web app.
- A team that wants agent-generated changes gated by risk policy, running observe mode first (
github.auto_merge: false) so merge-gate comments its verdict while humans merge.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://machinist.sh/install.sh | sh
- Environment variables
ANTHROPIC_API_KEYGH_TOKENLINEAR_CLIENT_IDLINEAR_CLIENT_SECRET- Config files
config.yamlrunner.yaml- Runtime
- Go 1.26.6
- Install notes cover
- macOS · Linux
How do you install or deploy this agent?
A source build needs Go 1.26.6, Git, the GitHub CLI signed in (gh auth login) and Claude Code signed in. Give the GitHub CLI the workflow scope so jobs can push to .github/workflows/:
gh auth refresh -s workflowOn Linux or macOS (amd64 / arm64) you can install the latest stable release instead; the script verifies the release SHA-256 checksums:
curl -fsSL https://machinist.sh/install.sh | shFor the nightly build from main, and for in-place upgrades:
curl -fsSL https://machinist.sh/install.sh | MACHINIST_CHANNEL=nightly sh
machinist update
machinist update --nightlyTo build from source and scaffold a configuration directory:
git clone https://github.com/owainlewis/machinist.git
cd machinist
go build -o ./bin/machinist ./cmd/machinist
export PATH="$PWD/bin:$PATH"
mkdir ../my-machinist && cd ../my-machinist
git init
machinist initinit writes config.yaml (the control plane), runner.yaml (a local runner), factory/presets/, factory/agents/, factory/prompts/ and factory/scripts/, plus a .machinist/ directory holding the database and a local runner token, which it adds to .gitignore. Machinist runs from the directory that holds its configuration, so keep that directory in git and start Machinist there, or pass --config.
How do you use this agent?
Set the GitHub login that owns your token and the repositories jobs may work on in config.yaml:
github:
handle: your-login
repositories: [owner/name]In runner.yaml, set env: [] and uncomment login: true so steps use your own Claude Code login. To use an API key instead, keep env: [ANTHROPIC_API_KEY] and set it in the runner's environment.
# key changes in runner.yaml
env: []
login: trueStart the control plane in one terminal and the runner in another:
GH_TOKEN=$(gh auth token) machinist startGH_TOKEN=$(gh auth token) machinist runner startCreate a token for yourself:
TOKEN=$(machinist token create "$USER" | tail -n 1)Open http://127.0.0.1:7331, sign in with the token and use New job to pick a repository, choose a preset, write a prompt and start. The same job from curl:
curl -sS -X POST http://127.0.0.1:7331/machinist/run \
-H "Authorization: Bearer $TOKEN" \
-d '{"key":"fix-1","vars":{"repo":"owner/name"},"prompt":"Fix the toast position"}'For a team, use a GitHub App instead of a personal token: each run gets an hour-long token scoped to its own repository and no runner holds a GitHub token. To start jobs by delegating Linear issues, create a Linear app with client credentials, set LINEAR_CLIENT_ID and LINEAR_CLIENT_SECRET where the control plane runs, and fill in app_user_id, projects or teams, and a non-empty allowed_users in the linear section of config.yaml.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Multiple harnesses — Claude Code, Codex, Antigravity and Pi — with a default preset that uses a second agent for review and revise, so changes get a cross-model second opinion.
- One control plane treats local, VM, Docker (optional gVisor) and Kubernetes runners the same, backed by either SQLite or PostgreSQL.
- The merge rule is Go code, not an agent: auto-merge requires review acceptance, a low-risk merge-gate verdict and passing checks;
auto_merge: falsegives an observe mode that comments but never merges. - Many entry points (web app, run API, MCP, schedules, Linear) plus a Dashboard with time to merge, human touches, tokens, spend and cost per merged pull request.
- It is early-access software; behavior and interfaces may change, so production use carries upgrade risk.
- The quickstart has several prerequisites — Go 1.26.6, Git, a GitHub CLI with
workflowscope, a signed-in Claude Code — and runs two processes in separate terminals. - Jobs are headless and never stop to ask a question, so ambiguity lands in the pull request's Assumptions, and medium/high-risk pull requests wait in Review for a person.
- Team use means operating the control plane and runners yourself and supplying GitHub credentials (PAT or GitHub App); harness subscriptions and API usage are billed separately.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Machinist This agent | 45 · Major gaps | CLIFree + model costs | ★ 549 | today | Go | Codex · Claude Code · Claude API |
| ABCA | 83 · Good | Self-hosted serviceFree + model costs | ★ 216 | 1d ago | TypeScript | Claude Code |
| Archon Workflow Factory | 69 · Some gaps | CLIFree + model costs | ★ 24k | today | TypeScript | Codex · Claude Code |
| Codealong | Insufficient evidence | — | ★ 74 | today | Rust | ChatGPT · Codex · Claude Code · Claude.ai |
How does FollowAgents rate this agent?
Why each dimension lost points
SECURITY.md states that configured commands run with the full OS permissions, tools, environment, and credentials of the worker host user, and that repository mappings do not sandbox a command; least privilege is therefore documented advice rather than an enforced control (1). User confirmation: the README emphasizes keeping a human gate and handing back a pull request, but no pre-run confirmation or dangerous-action confirmation flow is described (1). Data flow transparency covers the local state directory, loopback-only control plane, CSRF token, and bearer token, but there is no end-to-end data flow description (1). Sensitive data handling only advises protecting ~/.machinist and notes provider CLIs own their credentials; no encryption, redaction, or rotation guidance is given (1). Dependency security: go.mod pins concrete versions and CI pins actions by commit, but there is no dependency scanning, SBOM, or vulnerability response process (1). External effects: the docs acknowledge commands can have arbitrary side effects but provide no impact inventory or isolation guidance (1). Rollback: only states a killed script restarts from the beginning; no state rollback or compensation mechanism is offered (1). Source attribution: MIT license and author attribution are present, but upstream component and generated-content attribution is absent (1).
Self-consistency is good: the README quick start, configuration example, SECURITY.md trust model, and CI build/version checks agree with each other (2). Dependency availability: go.mod uses public, version-pinned modules and CI pins Go 1.26.6 and Node versions, but there is no vendoring or offline install guidance (2). Failure messages: only non-zero exit code equals failure is stated; no error taxonomy, diagnostic output, or retry semantics are shown (1).
Audience and scenarios: the README targets developers using agentic coding workflows and offers both direct runs and managed submissions (2). Capability boundaries are clearly stated, including that script internals are opaque and that Machinist does not invent child runs or checkpoints (2). Trigger precision: command-name-to-fixed-executable mapping is described, but argument validation, timeout, and cancellation semantics are not precise (1). Environment fit: CI covers Linux and macOS and the docs state the control plane binds to loopback with HTTPS required for non-loopback workers, but Windows and containerized deployment are not covered (2).
Information architecture: the README provides a clear navigation table to documentation, configuration, development, deployment, and examples (2). Install notes give concrete clone, build, and init commands, but do not explain how prerequisite toolchain versions are obtained (2). Naming stability: task-to-pr and audit are generated by init, but no compatibility or rename policy is stated (1). Examples and FAQ: only a link to an examples directory is given; no verifiable example content or FAQ is present in the provided files (1). Known limitations mention early access, opaque scripts, and restart behavior, but there is no systematic limitations list (1). License is a complete MIT text with clear attribution (3). Versioning and changelog: no CHANGELOG or versioning policy exists at all (0). Maintenance responsibility: a security contact and supported-version statement exist, but governance, release cadence, and maintainer roles are not described (1).
Output usability: streaming output, durable events and artifacts, terminal outcomes, duration, and reported token use are described, which is adequate for ordinary use (2). Marginal value: positioned as a software factory with a controlled entrypoint, but no comparison against calling agent CLIs directly or existing orchestration tools is provided, so the value claim lacks evidence (1). Cost benefit: timeouts and token usage are recorded, but no cost estimation, quotas, or resource footprint guidance is given (1).
Claim traceability: most README claims map to SECURITY.md and CI configuration, but no references to specific code paths are provided (1). Cross-source corroboration: README, SECURITY.md, and CI corroborate build, version, and trust-model claims, but architecture and implementation details are absent from the provided files (1). Fact-inference separation: the docs distinguish implemented boundaries from recommendations, but some security claims (CSRF, bearer token) lack implementation evidence, making it hard to tell fact from design intent (1).
- Commands run with the full permissions of the worker host user and repository mappings are not a sandbox; constrain capability with OS permissions and narrowly scoped credentials.
- The control plane binds to loopback and uses CSRF plus a bearer token, but it must not be exposed through an untrusted proxy or network boundary.
- ~/.machinist may contain task prompts, command output, bearer tokens, and unpublished work; keep it readable only by the worker host user.
- There is no CHANGELOG or versioning policy; as early access software, interfaces may change at any time, so assess compatibility before upgrading.
- No dependency scanning, SBOM, or vulnerability response process is provided; dependency security must be supplemented by the adopter.
- This is a static source review with no build or test executed; all conclusions carry low confidence.
FAQ
Is the software free, and what do I still pay for?
ANTHROPIC_API_KEY in the runner environment, and the Codex, Antigravity and Pi harnesses are also supported. Model usage is billed by the respective provider.What happens if CI fails or the merge conflicts?
github.steward_retries times (default 2), and does not overwrite human commits. Medium- or high-risk pull requests stay open in the Review column for a person.Can a teammate stop or restart a job?
POST /machinist/jobs/{id}/cancel stops a job and POST /machinist/jobs/{id}/rerun starts an ended job again; the job page also offers Run again.Where does job data live, and do runners need inbound ports?
Can I keep merging in human hands?
github.auto_merge: false for observe mode: merge-gate still comments its verdict on every pull request, and every pull request is left open for a person.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.