Unattended Coding Agent: What It Is, What It Needs, and How Ralph Workflow Runs One¶
An unattended coding agent is a coding agent that works without you steering each step. It plans, edits, runs commands and commits on its own.
The hard part is not getting an agent to run. It is deciding how its work reaches main, and what protects main when it does.
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.
How Ralph Workflow runs an unattended agent¶
You write the spec.
PROMPT.mdsays what done means and how to check it. This is the part people approve: the intent, not the diff.Your agent plans, builds and commits. Ralph Workflow runs a plan → build → commit loop for 2 developer cycles by default.
--quickruns 1,--longruns 5 and--thoroughruns 10. Wall-clock timeboxes also apply.Each commit is rebased onto your local
main. The agent resolves conflicts. If it cannot, the engine falls back to a merge commit.Your local
mainis pushed toorigin/main. It is a plain push, never forced. Iforigin/mainmoved first, the push fails and the work rebases again.The agent’s own review pass runs after the push. It can loop back and fix things in new commits.
Supported agent CLIs: Claude Code, Codex, OpenCode, Cursor, Kimi, Nanocoder, Pi and Google’s Antigravity CLI. Each uses whatever login or API key you signed it in with, and usage is billed to you. Ralph Workflow makes no model calls of its own. It is not a model provider.
What is not built yet¶
Pushes are unchecked today. 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.Ralph Workflow does not read CI results. Your CI runs after the push, on
main.The gate has not shipped. Once it ships, your suite and acceptance checks will run on the exact commit before every push, and a failing commit will go back to the agent, never into a pull request. It is the top engineering priority.
Until then, no push from Ralph Workflow is verified. Watch what lands and revert fast.
What “unattended” means on your machine¶
No permission prompts. Ralph Workflow starts each agent in its unattended mode, with permission prompts bypassed. For example, Claude Code runs with
--dangerously-skip-permissionsand Codex with--dangerously-bypass-approvals-and-sandbox. The agent can run commands and edit files without asking. Use a machine, container or VM you are willing to hand to the agent.Your whole local
mainis pushed. That includes commits you have not pushed yet and the engine’s own commits toAGENTS.md,CLAUDE.md, its policy files, its skill bundle and.gitignore. Nothing checks for committed secrets before the push.Uncommitted work in the way can be cleared. If the checkout that holds
mainhas uncommitted or untracked files in the way, they are saved underrefs/ralph-reclaim/(kept up to 30 days) and removed. Setauto_integrate_reclaim_target_worktree = falseunder[general]inralph-workflow.tomlto make it refuse and retry instead.A protected
mainrejects the push. If your forge requires pull requests onmain, the push fails, the run carries on, and the commits stay on your localmain.Caps limit cycles and time, not money. Your agent’s usage is billed to your account.
Some data leaves your machine. Telemetry is on by default: session events and crash reports go to Sentry under a persistent pseudonymous ID (
RALPH_DISABLE_TELEMETRY=1turns it off). The agent can search the web (DuckDuckGo by default) and fetch pages. Ralph Workflow checks PyPI for updates (RALPH_DISABLE_UPDATE_CHECK=1turns that off).
When it is a good fit¶
the repository already has tests
you can say what done means, and how to check it, in a short
PROMPT.mda bad commit on
maincosts onegit revertyou can watch
mainwhile the run goes
Good first tasks:
a bounded feature slice
a narrow refactor with tests
a test-writing pass
a docs or clean-up task with clear acceptance criteria
When it is not¶
the task needs you to steer it as it goes
the spec is still being invented
maindeploys straight to production, so a bad commit would ship before you can revert ityour forge requires pull requests on
main
For a fuller filter, read When Ralph Workflow Fits — and When It Does Not.
What Ralph Workflow adds beyond running Claude Code or Codex directly¶
You keep the agent you already use. Ralph Workflow adds:
a spec in
PROMPT.mdthat the run works againsta bounded plan → build → commit loop, with cycle and time caps
rebasing each commit onto
main, with the agent resolving conflictsthe push to
origin/main, so the work lands without a pull request
What it does not add yet is the gate. Today, the agent’s work lands on the same terms as if you pushed it yourself without running the tests.
Fastest honest way to try it¶
Install and sign in to one supported agent CLI.
Install Ralph Workflow:
pipx install ralph-workflow(Python 3.12 or later).In your project, run
ralph --init. It creates config and a starterPROMPT.mdwith a marker at the top.Run
ralph --diagnose. It checks the agent CLI is on yourPATH. It does not check that you are signed in.Edit
PROMPT.md: say what done means and how to check it, and delete the starter marker. Ralph Workflow refuses to run until you do.Run
ralph, and watch what lands onorigin/main.Check each commit against the spec. Run your suite on
main. If something is wrong,git revertit, like any other commit.
For a copy-paste spec shape, use First-Task Prompt Templates. For the shortest install path, go to Getting Started.