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

  1. You write the spec. PROMPT.md says what done means and how to check it. This is the part people approve: the intent, not the diff.

  2. Your agent plans, builds and commits. Ralph Workflow runs a plan → build → commit loop for 2 developer cycles by default. --quick runs 1, --long runs 5 and --thorough runs 10. Wall-clock timeboxes also apply.

  3. Each commit is rebased onto your local main. The agent resolves conflicts. If it cannot, the engine falls back to a merge commit.

  4. Your local main is pushed to origin/main. It is a plain push, never forced. If origin/main moved first, the push fails and the work rebases again.

  5. 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-permissions and 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 main is pushed. That includes commits you have not pushed yet and the engine’s own commits to AGENTS.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 main has uncommitted or untracked files in the way, they are saved under refs/ralph-reclaim/ (kept up to 30 days) and removed. Set auto_integrate_reclaim_target_worktree = false under [general] in ralph-workflow.toml to make it refuse and retry instead.

  • A protected main rejects the push. If your forge requires pull requests on main, the push fails, the run carries on, and the commits stay on your local main.

  • 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=1 turns it off). The agent can search the web (DuckDuckGo by default) and fetch pages. Ralph Workflow checks PyPI for updates (RALPH_DISABLE_UPDATE_CHECK=1 turns 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.md

  • a bad commit on main costs one git revert

  • you can watch main while 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

  • main deploys straight to production, so a bad commit would ship before you can revert it

  • your 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.md that the run works against

  • a bounded plan → build → commit loop, with cycle and time caps

  • rebasing each commit onto main, with the agent resolving conflicts

  • the 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

  1. Install and sign in to one supported agent CLI.

  2. Install Ralph Workflow: pipx install ralph-workflow (Python 3.12 or later).

  3. In your project, run ralph --init. It creates config and a starter PROMPT.md with a marker at the top.

  4. Run ralph --diagnose. It checks the agent CLI is on your PATH. It does not check that you are signed in.

  5. 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.

  6. Run ralph, and watch what lands on origin/main.

  7. Check each commit against the spec. Run your suite on main. If something is wrong, git revert it, like any other commit.

For a copy-paste spec shape, use First-Task Prompt Templates. For the shortest install path, go to Getting Started.