Skip to main content

AgentMachinist

AgentMachinist is a local-first, issue-to-reviewed-PR build pipeline for solo developers. It connects GitHub issues to Claude Code, OpenCode, Pi, or Codex, with a human-approved specification between planning and implementation.

issue + trigger label → spec commit → draft PR → SHA-bound approval
                    → implementation → test gate → ready PR → human merge

The controller—not the harness—owns commits, pushes, PR transitions, and task records. AgentMachinist never merges.

Current release: AgentMachinist 0.4.0 on PyPI.

Install

uv tool install agentmachinist

You also need git, an authenticated gh, and one supported harness executable (claude, opencode, pi, or codex).

Start

cd your-repository
machinist init
# Review the detected tests.command and generated files, then:
machinist doctor
machinist sync-workflows --check
git status --short
git add machinist.yaml .machinist/specs/.gitkeep .gitignore
git add -p .github/workflows
git diff --cached
git commit -m "chore: configure AgentMachinist"
git push
machinist watch

Review the staged diff before committing. Managed workflows must be pushed before GitHub comment or label approval can record SHA-bound evidence. machinist init also adds /.machinist/runs/ to .gitignore. If you manage workflows yourself, machinist init --no-workflows records github.manage_workflows: false; doctor then reports that its drift check was intentionally skipped.

The default github.spec_source: local makes watch own spec generation. Choose github-actions and run machinist sync-workflows if CI should own that phase instead. Exactly one source is active, preventing duplicate spec runs.

Approval is bound to the exact PR head commit. Use either:

machinist approve --issue 57
# or: machinist approve --pr 18
# or post the SHA-bound comment shown in the Spec PR body:
# /machinist-execute <full-spec-commit-sha>

The positional target remains available when that number identifies only one Task; use --issue or --pr when GitHub numbers overlap.

Editing the spec after approval makes that approval stale and blocks execution until the new head is approved.

Revise or explicitly abandon a successful Spec by issue number:

machinist spec 42 --dry-run
machinist spec 42 --revise
machinist spec 42 --abandon --reason "requirements changed"

The dry run prints the proposed Spec without commits, pushes, or a PR. Revision regenerates the Spec on its existing branch and draft PR. Abandonment records the reason, removes the trigger and approval labels, and closes the open draft PR.

Commands

Command Purpose
machinist init Create config, spec storage, labels, and managed workflows.
machinist doctor Run read-only setup and workflow-drift diagnostics.
machinist sync-workflows [--check] Write or verify config-derived workflows.
machinist config validate|show|schema|set Validate, inspect, export, or atomically update configuration.
machinist spec <issue> [--dry-run] Preview a Spec, or generate it and open its draft PR.
machinist spec <issue> --revise Regenerate a successful Spec on its existing branch and PR.
machinist spec <issue> --abandon [--reason <text>] Record rejection and close the open draft PR.
machinist approve [--issue <issue>|--pr <pr>] Bind approval to the current PR head without number ambiguity.
machinist run <issue> Implement an approved spec and run the test gate.
machinist amend <issue> --feedback <text> Rework a ready PR from explicit feedback after fresh approval.
machinist cancel <issue> [--reason <text>|--clear] Cooperatively stop or block an issue's dispatch.
machinist watch [--once] [--dry-run] [--max-tasks <n>] Preview or dispatch eligible tasks continuously or once.
machinist queue pause|resume|defer|allow|show Persist operator controls over new watcher dispatches.
machinist service install|start|restart|stop|status|logs|uninstall Manage the repository's macOS launchd watcher.
machinist status [--local|--all] [--json] Show GitHub state, local Task Runs, or a registered portfolio.
machinist runs [--issue <issue>] [--json] Read current, historical, orphaned, and corrupt local run records.
machinist retry <issue> [--phase spec|execute] Re-enable one failed Task Run.
machinist retry <issue> --phase execute --run [--resume|--fresh] Reuse a retained workspace or start a fresh Execute attempt; fresh is the default.
machinist inspect <issue> [--offline] [--json] Show GitHub, workspace, and complete Task Run diagnostics.
machinist repo add|remove|list Maintain the optional local repository registry.
machinist clean [--issue <issue>|--all] List or remove retained workspaces.

Documentation

The trust model is deliberately narrower than “the agent cannot use git.” Harness flags, credential reduction, repository postconditions, and push leases reduce risk, but local harnesses still execute with the operating-system access of the user who launched them. Read the trust model before unattended use.

Releasing

Releases use PyPI Trusted Publishing. Bump pyproject.toml, update the changelog, and publish a GitHub Release tagged v<version>. The release job first checks tag/version equality, runs tests and workflow checks, builds both distributions, smoke-tests the wheel, and records SHA-256 hashes. A minimal job then publishes those verified artifacts. Only after publication do separate jobs attach the distributions and checksum file to the GitHub Release and verify that the exact version is visible and installable from PyPI.

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentmachinist-0.4.0.tar.gz (260.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentmachinist-0.4.0-py3-none-any.whl (146.5 kB view details)

Uploaded Python 3

File details

Details for the file agentmachinist-0.4.0.tar.gz.

File metadata

  • Download URL: agentmachinist-0.4.0.tar.gz
  • Upload date:
  • Size: 260.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentmachinist-0.4.0.tar.gz
Algorithm Hash digest
SHA256 eeb260bfb7b52f7483243db92cae7945462844c16d927e53f35e8434a04279b5
MD5 861e5498f3e2e6bd935e14f7d72431d8
BLAKE2b-256 f7bd741791a39703b1e800680dda7cf04e21de7d00f5846b7aaec794655800c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmachinist-0.4.0.tar.gz:

Publisher: release.yml on vscarpenter/AgentMachinist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentmachinist-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: agentmachinist-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 146.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentmachinist-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac8ead45f15d7e74dc09fa3ff8b39e9a5def7d8da623e479e10aefa5708f138
MD5 0a93695c457743719c24b4c61c74dbac
BLAKE2b-256 51b518a3d3858465812326a43c33bdddcf94e0aa3d786e7f5ba117b456524e7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmachinist-0.4.0-py3-none-any.whl:

Publisher: release.yml on vscarpenter/AgentMachinist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.13.0

2 files

0.12.1

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.3

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page