Skip to main content

Vendor-neutral AI coding workflow orchestration with unattended execution, recovery, and verification.

Project description

Ralph Workflow (Python)

Ship reviewable AI coding runs without babysitting the terminal.

Ralph Workflow is a Python 3.12+ CLI for developers who want AI to handle multi-step coding work without constant supervision. You describe the task in PROMPT.md, point Ralph Workflow at the agent CLIs you already use, and let it run. When it finishes, you come back to completed work, logs, and artifacts you can inspect in your normal git workflow.

What you get

  • Unattended runs for real engineering work such as refactors, test generation, documentation sweeps, and migrations
  • Repo-native workflow files instead of hidden product state
  • Agent-reviewed output instead of a long interactive transcript
  • Flexible agent routing across Claude Code, Codex CLI, OpenCode, and your own configured agents
  • A practical default workflow you can use before you invent anything custom

Install

PyPI

pip install ralph-workflow
ralph --help

pipx

python -m pip install pipx
python -m pipx ensurepath
pipx install ralph-workflow
ralph --help

From source

git clone https://codeberg.org/RalphWorkflow/Ralph-Workflow.git
cd Ralph-Workflow/ralph-workflow
pip install -e .
ralph --version

Requires Python 3.12+.

Before your first run

  1. Install the agent CLIs you want Ralph Workflow to call.
  2. Authenticate those CLIs normally.
  3. Pick one small, concrete task for the first run.

Ralph Workflow reuses your existing agent CLI authentication. You do not need to copy provider credentials into a separate hosted system first.

Quick start

cd /path/to/your/project
ralph --init
ralph --diagnose
$EDITOR PROMPT.md
ralph

What happens in that flow:

  • ralph --init creates the local .agent/ support files.
  • ralph --diagnose checks whether your configured agents and MCP setup are reachable.
  • PROMPT.md becomes the task spec for the run.
  • ralph starts the unattended workflow.

After ralph --init, review the generated .agent/ support files. If this repository needs a project-local main-config override, run ralph --init-local-config to create .agent/ralph-workflow.toml, then point the workflow at the agent CLIs you already use for planning, development, and review.

Good first tasks

Start with work that is easy to verify:

  • add tests to an existing module
  • fix known lint failures
  • refactor one narrow subsystem
  • update documentation backed by existing code

Depth presets

ralph -Q     # quick: small fixes, single iteration
ralph        # standard: most features and tasks
ralph -T     # thorough: complex refactors, ten iterations

When Ralph Workflow fits

  • Multi-step tasks that outgrow one prompt
  • Work you want to review after the fact instead of steering live
  • Teams that want AI execution to stay in the repo
  • Runs where you want to mix stronger and cheaper models by phase

When it does not fit

  • One-shot interactive prompts
  • Pair-programming sessions with constant human steering
  • Tiny tasks where setup overhead is not worth it
  • Workflows that need unpredictable mid-run human input

Development and verification

If you are changing Ralph Workflow itself, start with CONTRIBUTING.md and run the canonical verification command before you finish:

make verify

Documentation

Use the website and docs for the deeper material this README intentionally leaves out:

License

AGPL-3.0-or-later.

The framework is copyleft. The code Ralph Workflow generates belongs to you — no license encumbrance on outputs. Use it commercially. Use it privately. Use it however you want.

Project details


Download files

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

Source Distribution

ralph_workflow-0.8.2.tar.gz (562.4 kB view details)

Uploaded Source

Built Distribution

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

ralph_workflow-0.8.2-py3-none-any.whl (734.0 kB view details)

Uploaded Python 3

File details

Details for the file ralph_workflow-0.8.2.tar.gz.

File metadata

  • Download URL: ralph_workflow-0.8.2.tar.gz
  • Upload date:
  • Size: 562.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ralph_workflow-0.8.2.tar.gz
Algorithm Hash digest
SHA256 8ea4c99d5fe354c4ad946345219c52f5e6dc7957f99bc283871a59e9da7ca84c
MD5 a75171ec450c38e713b903c85a82f3b9
BLAKE2b-256 9eee1e8c5615f391b8e1588891ffe33b4d3c18d28d8ac4e9b956ae83136e9b51

See more details on using hashes here.

File details

Details for the file ralph_workflow-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: ralph_workflow-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 734.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ralph_workflow-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db72fbed3524bdaaf2bdae992b46964f207088530c6c947983fb0e72b976215b
MD5 2ca4cdff01f0d365b56017dd6b5ccb07
BLAKE2b-256 04b4e12bc2fbdf22cad7036b2b8afd5292deaf5a50fcd8080ef630bcc8d34753

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page