Ralph Workflow
Ralph Workflow automates your AI coding workflow. Write what you want in plain English, and Ralph coordinates AI agents to build it, review it, and commit it - all hands-free.
Inspired by Geoffrey Huntley's Ralph Workflow concept.
What It Does
Ralph Workflow reads your requirements from PROMPT.md, runs a developer AI agent to implement the changes, then runs a reviewer agent to check quality and fix issues. It automatically generates meaningful git commits throughout the process. Just describe what you want, and Ralph handles the rest.
Quick Start
1. Install Ralph Workflow
2. Install AI Agents
Install at least one AI agent:
| Agent | Install | Role |
|---|---|---|
| Claude Code | npm install -g @anthropic/claude-code |
Developer/Reviewer |
| Codex | npm install -g @openai/codex |
Reviewer |
| OpenCode | See opencode.ai | Both |
3. Run Ralph Workflow
# Create config file
# Navigate to your git repo
# Create PROMPT.md
# Edit PROMPT.md with your requirements
# Run Ralph
Ralph will:
- Run the developer agent to implement your prompt
- Run the reviewer agent to check and fix issues
- Generate a commit message and commit the changes
Common Commands
Preset Modes
Custom Iterations
Choosing Agents
Verbosity Control
Configuration
Ralph uses ~/.config/ralph-workflow.toml for configuration:
Configure agents in the config file:
[]
= ["claude", "codex", "aider"]
= ["codex", "claude"]
= 3
Environment variables override config settings:
RALPH_DEVELOPER_AGENT- Which agent writes codeRALPH_REVIEWER_AGENT- Which agent reviews codeRALPH_DEVELOPER_ITERS- Developer iterations (default: 5)RALPH_REVIEWER_REVIEWS- Review cycles (default: 2)RALPH_VERBOSITY- Output detail (0-4)
Documentation
- Quick Reference - Cheat sheet for all commands and flags
- Getting Started Guide - Detailed installation and first steps
- Configuration Guide - All configuration options
- Agent Setup - Agent installation and provider configuration
- Advanced Features - Checkpoint, metrics, isolation, review depth
- Presets Guide - Detailed preset documentation
- Workflows - Common workflow examples
- Troubleshooting - Common issues and solutions
- Agent Compatibility - Supported AI agents and configurations
- Git Workflow - How Ralph handles commits and diffs
FAQ
Can I use Ralph Workflow at work/in my company?
Yes! Ralph is a local CLI tool. The AGPL license covers only the Ralph source code, not anything you create with it. Your code stays yours.
Does the AGPL license apply to code I generate?
No. The AGPL covers only the Ralph Workflow tool itself, not your code or any output Ralph creates.
Contributing
Contributions welcome!
- Fork the repository
- Create a feature branch
- Run tests:
cargo test - Run lints:
cargo clippy && cargo fmt --check - Submit a pull request
License
AGPL-3.0. See LICENSE.