Bounded Autonomy for Unattended Coding¶
Ralph Workflow is a free, open-source CLI that runs the coding-agent CLI you already sign in to, on your own machine. It lands each commit directly on main, automatically. There are no pull requests, and nobody merges by hand.
When work lands on main with no pull request, the bounds on a run matter more, not less. This page says what bounds a Ralph Workflow run today, what does not, and what you should add yourself.
The real goal is not maximum autonomy¶
The useful question is not:
How long can I let the agent run?
It is:
If this run lands something wrong on
main, how fast can I see it and undo it?
Today, the answer has to be “within minutes, with one git revert”. That is because the gate, the part that will check each commit before it lands, has not shipped.
What bounds a run today¶
Cycles and time¶
Ralph Workflow runs a plan → build → commit loop for a set number of developer cycles, then stops:
2 cycles by default
--quick: 1 cycle--long: 5 cycles--thorough: 10 cycles
Wall-clock timeboxes also apply. Caps limit cycles and time, not money. Your agent’s usage is billed to the account you signed it in with.
The spec¶
PROMPT.md says what done means and how to check it. It is the one thing a person approves: the intent, not the diff. ralph --init writes a starter PROMPT.md with a marker at the top, and Ralph Workflow refuses to run until you delete it.
If the task cannot fit in a short PROMPT.md, it is usually too open-ended for an unattended run.
Bad example:
“Improve the onboarding experience”
Better example:
“Reject empty project names before file creation and add tests for the validation path”
The push itself¶
The push to origin/main is a plain push, never forced. If origin/main moved first, the push fails and the work rebases again. If your forge requires pull requests on main, the push is rejected, the run carries on, and the commits stay on your local main.
What does not bound a run today¶
Be honest with yourself about these:
No check runs before the push. The agent is asked to run the checks in
PROMPT.md, but nothing enforces them. “Verify” in the loop is an agent review, not an executed check.The agent’s review runs after the push. It can loop back and fix things in new commits. It cannot stop a commit that already landed.
CI runs after the push. Ralph Workflow does not read CI results.
A merge commit can still land. If the agent cannot finish a rebase, the engine falls back to a merge commit.
No permission prompts. Agents run in their unattended mode with permission prompts bypassed (for example Claude Code with
--dangerously-skip-permissions). The agent can run commands and edit files on your machine without asking.No secret scan. Nothing checks for committed secrets before the push.
The whole local
mainis pushed. That includes your unpushed commits and the engine’s own commits toAGENTS.md,CLAUDE.md, its policy files, its skill bundle and.gitignore.
What will bound a run once the gate ships¶
The gate is the top engineering priority. Once it ships, your suite and acceptance checks will run on the exact commit that will land, before the push. A commit that fails will go back to the agent, never into a pull request. Until then, we do not call any push verified.
Bounds you should add yourself today¶
1. One bounded task¶
One task with a clear stopping point, written in a short PROMPT.md.
2. Checks named in the spec¶
Before the run starts, write down:
which checks prove it worked
what behaviour must stay unchanged
what is out of scope
The agent is asked to run those checks. You will run them yourself on main afterwards.
3. A machine you are willing to hand over¶
Use a machine, container or VM you are willing to let the agent run commands on. Keep secrets out of files git would commit.
4. Cheap revert¶
Pick work where a bad commit costs one git revert. Avoid repositories where main deploys straight to production.
Good first-run categories:
bounded feature slices
validation work
tests
docs
contained refactors with clear coverage
5. Watch main¶
Watch the commits land on origin/main. For each one, ask:
does it match what
PROMPT.mdsaid?does your suite pass on
main?did your CI pass?
If not, git revert it, like any other commit on main.
A simple bounded-autonomy filter¶
Before you launch a run, ask:
Can I say what done means in one paragraph?
Can I name the checks that should pass?
Is one
git revertenough if a bad commit lands?Am I willing to let the agent act on this machine without asking?
Can I watch
mainwhile it runs?
If the answer is no to any of those, tighten the task or the setup first.
Where to get it¶
Source on GitHub: https://github.com/Ralph-Workflow/Ralph-Workflow
Mirror on Codeberg: https://codeberg.org/RalphWorkflow/Ralph-Workflow
The engine is AGPL-3.0-or-later. Install it with pipx install ralph-workflow (Python 3.12 or later).
Next steps¶
Start with Getting Started
Use When Ralph Workflow Fits — and When It Does Not if you are still choosing the first task
Use checking what landed on main for a step-by-step way to check commits against the spec