Skip to content
Steuermaschine

Steuermaschine

github.com • December 1, 2026

sm steers a change from commit to live release in projects where AI agents do the work. It keeps resumable state for each head (a commit on a work branch) and each release, always names the one command, and stops where only an independent reviewer or the owner may continue.

The name: not a Steuermann, a human helmsman, but a Maschine that steers. The owner sets the destination.

An agent that ships a change has to remember a pipeline: which check comes first, which run to wait for, what must never be done twice. It forgets this at every context reset. sm holds that knowledge instead:

One command. Bare sm prints where the project stands, the command to type now, and the mistake most likely at this step.

Resumable. State lives per head and per release. The same command continues where it stopped.

Dry by default. A step that writes outside the machine runs only with --live .

Review stops. A pipeline halts at a digest until someone other than the author records a verdict.

Built for agents. Every command has help in one fixed form and prints exactly one JSON document with --format json .

The core knows no project. Pipelines, providers, gates and traps come from plugins.

Supported on macOS and Linux with Python 3.15 and newer.

This installs the core. A project needs a plugin and a steuermaschine.toml that names it.

The toy plugin simulates a forge and CI in one JSON file, so this needs no account. It lives in this repository:

Every command explains itself with --help : purpose, when to use it, what it changes, an example, what comes . sm self tree prints the whole tree.

sm go prints PHASE , and TRAP , and WAITING when the run waits on CI or a reviewer.

Exit codes: 0 done or a planned stop, 1 refused, 2 usage, 3 alarm, 70 tool error or plugin not loaded, 75 waiting (run the same command again).

sm was built to run the delivery of Heinzelmännchen ( heinzel on PyPI): admission of heads, a merge queue, release candidates and the checks after a release. That logic is the plugin in plugins/heinzel . It is the reference for a large plugin and is not published as a package of its own.

A plugin is an object with functions marked @hookimpl . The core calls the ones it implements: settings, pipelines, gates, traps, providers for the forge and CI, and native commands that return a typed result model. Register it as an entry point in the group steuermaschine.plugins and name it in steuermaschine.toml . Several plugins stack as layers.

Start from examples/toy (a whole plugin in one file) and examples/layer (a second plugin on top of the first). sm self hooks lists the hook specifications. steuermaschine.testing has fakes and a conformance kit. The plugin API ( steuermaschine.API_VERSION ) may still change before 1.0.

docs/DESIGN.md : pipelines as state machines, providers, plugins, the help contract, output.

AGENTS.md : how to work on this repository.

Extracted Entities

Domains (1)