Skip to main content
OP-DOC · UNATTENDED ORCHESTRATOR · CLASS: CLI

SPEC‑DRIVEN.
UNATTENDED.
COMMITTED.

Write your spec in PROMPT.md. Run ralph. Walk away.

Ralph executes structured plan → dev → review cycles — fresh context each iteration, no babysitting required.

Your backlog. Your high-impact deferred work. Committed and reviewed when you return.

AGPL-3.0 FREE SOFTWARE RUNS ON YOUR MACHINE BUILT WITH RUST NO RALPH SERVERS
FIELD REPORT · THE GAP

Work that never gets done

Delivery-blocked

  • The refactor is fully understood — the blocker is babysitting an agent through 30 files for 3 uninterrupted hours
  • Test suite gaps are documented, not mysterious — nobody runs write-execute-observe-iterate without staying present the whole time
  • You know exactly what the feature needs — it never starts because starting means staying locked in a session until it finishes
  • You've tried extending an agent session: context fills, quality drifts, you're back to steering instead of reviewing

With Ralph

  • Write the spec. Run ralph. The execution loop — plan, implement, commit, clear context — runs without you watching
  • Delivery-blocked work now has a mechanism: Ralph owns the run/fail/iterate cycle, not just the keystrokes
  • Each iteration commits cleanly — you pick up from a concrete checkpoint, not a dangling agent session
  • You return to a diff to review, not a process to manage
EXECUTION PROTOCOL · PROCESS

Three steps to automation

1

PHASE 1 · WRITE DETAILED SPECIFICATIONS

Think like a PM: describe what you want, the constraints, acceptance criteria, and files to update. Ralph never asks for clarification, so be thorough. Use ralph --init feature-spec to start from a template.

2

PHASE 2 · START THE RUN AND WALK AWAY

Run ralph and step away. Dev iterations plan, implement, commit, and clear context automatically. If interrupted, ralph --resume picks up where it stopped.

3

PHASE 3 · REVIEW AND MERGE WITH CONFIDENCE

Inspect the diff, check the per-iteration logs in .agent/logs/, and merge when satisfied. Ralph’s commits are auditable — each iteration and review cycle leaves its own entry in git history.

Under the Hood

Dev iteration — repeats ×N

PROMPT.md PLAN.md dev git commit context clear

Review cycle — repeats ×N

git diff ISSUES.md fix git commit context clear

Ralph owns PLAN.md and ISSUES.md — agents never control orchestration files. Each iteration starts with a wiped context.

RUN ARTIFACTS · GIT OUTPUT

You return to commits

Ralph leaves clean, conventional git history. No logs to parse, no handoff notes — just the diff to review.

GIT LOG · SESSION-A4F1 ELAPSED 04:37:22
$ git log --oneline HEAD~4..HEAD
e2d1847 test: add e2e integration suite — 47 passing
c41fa3b feat: write and apply user table migration
7d8b901 test: add unit test suite for route layer — 12 passing
a3f1c2e feat: add REST API route handlers with auth middleware
RUN COMPLETE 4 commits · main
DIFF STAT · 5 FILES +544 −0
src/routes/api.rs 182 ++++++++++++++++
src/handlers/users.rs 94 ++++++++
migrations/20241114.sql 23 ++
tests/unit/api_test.rs 156 ++++++++++++++
tests/e2e/api_flow.rs 89 ++++++++
5 files created · 544 insertions(+)
59 tests passing · 0 failures

Output representative of a real Ralph Workflow run. Session IDs and commit hashes anonymized.

DEPLOYMENT SEQUENCE · QUICK START

From zero to running in 3 commands

STEP 1 · Install

cargo install ralph-workflow --locked

Requires Rust stable. Install via rustup.

STEP 2 · Initialize

ralph --init feature-spec
✓ Created PROMPT.md

Edit PROMPT.md with your detailed specification.

STEP 3 · Run & Walk Away

ralph
✓ Running — come back to reviewed commits

Ralph works through your spec, commits its output, and stops. No prompts. No babysitting.

HOW MUCH WORK? · CHOOSE A DEPTH

QUICK

ralph -Q

A small fix, a typo, a one-file change. Fast pass — done in minutes.

STANDARD default

ralph

Most features and tasks. The right choice when you're not sure — just run ralph.

THOROUGH

ralph -T

Complex refactors, tricky bugs, or anything where extra passes matter. Leave it running overnight.

More presets in the docs.

MISSION BRIEF · PRODUCT POSITIONING

CATEGORY

Ralph Workflow is an unattended orchestration product. Not an interactive chat assistant. It runs structured plan → dev → review cycles while you're not there — committed and auditable when you return.

DISTINCTION

Ralph is the concept. Ralph Workflow is the product. This site covers the ralph-workflow CLI — not a hosted service, not the broader concept. You install the CLI; there is no Ralph server.

FIT

Best fit: deterministic, spec-driven work where auditable outputs matter — the high-impact task nobody can prioritize this week, the refactor nobody queues, the tests nobody has time to write. Not a tool for interactive pair-programming sessions.

END OF BRIEF
STATUS READOUT

subscriptions

0 // forever free

local orchestration

100% // no Ralph servers

AI clients

3 // Claude · Codex · OpenCode

resumable runs

// checkpoint built-in
OPS JOURNAL · WHEN TO REACH FOR RALPH

Work that finally gets done

Not every task deserves your focus. Ralph handles the ones that don't — while you sleep, commute, or work on something that actually needs you.

MAJOR TASK, NO BANDWIDTH

You have the spec. Ralph has the hours.

Write what you want built before dinner. Ralph runs dev and review cycles overnight — you wake up to reviewed, committed code. No babysitting required.

ralph -T

THE REFACTOR NOBODY WANTS TO TOUCH

Document the invariants. Walk away.

Describe every file to touch and the rules to preserve. Ralph works through it methodically, committing as it goes — an auditable trail you can review one commit at a time.

ralph -S

TEST COVERAGE YOU KEEP PUTTING OFF

Describe the scenarios. Ralph writes the tests.

Spec the edge cases and expectations. Ralph writes them, runs them, iterates until they pass, then the reviewer checks coverage. Done without a context switch.

ralph --init test

DOCS THAT ARE ALWAYS OUT OF DATE

Spec the structure. Ralph fills it in.

Define the sections, tone, and what needs covering. Ralph writes and iterates until the docs match your spec, then the reviewer checks for completeness and gaps.

ralph --init docs
CAPABILITIES MANIFEST · CORE CAPABILITIES

Built for unattended execution

Every feature designed for autonomous operation. Set it, forget it, review when ready.

CAPABILITY · WORKFLOW

Multi-Agent Workflow

Separate agents for development and review run in sequence. Quality checks are built into the pipeline, not bolted on.

CAPABILITY · GIT-NATIVE

Repository Integration

Works inside any Git repo. Ralph operates in your worktree, branches, commits, and produces a clean final diff.

CAPABILITY · RESILIENCE

Checkpoint & Resume

Interruptions happen. Ralph saves state at every phase so you can resume without losing progress or context.

CAPABILITY · QUALITY GATE

Automated Code Review

Dedicated review agent inspects the diff, identifies issues, and iterates on fixes — a built-in quality gate after every dev cycle.

CAPABILITY · ISOLATION

Context Isolation

Context is cleared between phases to prevent pollution. Each agent sees only what it needs — keeping quality high across iterations.

CAPABILITY · MULTI-CLIENT

Multi-Client Support

Use Claude Code, OpenAI Codex, or OpenCode as your developer and reviewer. Mix and match agents per role for best results.

CAPABILITY · PARALLEL OPS

Worktree Friendly

Run Ralph on separate Git worktrees to work multiple features in parallel. Each worktree runs independently — no conflicts with your active development.

CAPABILITY · EFFICIENCY

Low Overhead

Built in Rust — Ralph itself adds negligible overhead to your AI agent budget. The only cost is what your AI clients charge per token.

CAPABILITY · OWNERSHIP

You Own the Code

AGPL-3.0 applies to Ralph itself, not the code it generates. Every commit it produces is yours — no license encumbrance on generated output.

AGENT REGISTRY · COMPATIBLE CLIENTS

Works with your AI tools

Ralph orchestrates agents you already have — use any combination for developer and reviewer roles.

CLIENT · CLAUDE CODE

Claude Code

by Anthropic

Recommended Dev

Best for thorough feature implementation and complex reasoning tasks.

npm install -g @anthropic/claude-code

CLIENT · CODEX CLI

Codex CLI

by OpenAI

Recommended Reviewer

Excellent reviewer agent. Cost-effective for review cycles and quality checks.

npm install -g @openai/codex

CLIENT · OPENCODE

OpenCode

opencode.ai

Either Role

Flexible open-source alternative suitable for both developer and reviewer roles.

# See opencode.ai for install

Mix & Match Agents

ralph -a claude -r codex Claude as developer · Codex as reviewer
ralph -a opencode -r opencode OpenCode for both roles

Supports fallback chains — Ralph automatically switches to the next configured agent if one fails.

ARCHITECTURE BRIEF · WHY RALPH

Not a prompt session. A pipeline.

Most AI coding tools are interactive — they wait for you to steer them. Ralph runs a structured, stateless pipeline that delivers commits while you're away.

FIELD: ISOLATION

Context resets between iterations

AI sessions accumulate noise — the model hallucinates into its own prior output and drifts from spec over time. Ralph wipes context at every phase boundary. Each dev cycle starts from PROMPT.md, not from the previous iteration’s state.

FIELD: SPEC-DRIVEN

Spec-driven, not session-driven

Write requirements once in PROMPT.md. Ralph plans, implements, commits, and reviews without asking for clarification. Separate agents handle dev and review — not one model context wearing multiple hats.

FIELD: AUDITABLE

The output is commits, not a transcript

Every iteration ends with a conventional commit. Your review workflow stays the same: inspect the diff, check the history, merge when satisfied. Ralph produces no artifacts you can’t already work with.

FIELD ASSESSMENT · FIT MATRIX

Is Ralph the right tool?

BASH / SHELL SCRIPTS Ad-hoc automation in a terminal
✓ BEST FOR

Rapid one-shot tasks with no checkpoint needs, single-step file transforms

⚠ BREAKS DOWN WHEN

Scripts exceed ~100 lines; retry logic and state management become hand-coded bugs

GITHUB ACTIONS CI/CD pipeline automation
✓ BEST FOR

Triggered workflows tied to repo events; reproducible build and deploy pipelines

⚠ BREAKS DOWN WHEN

Tasks require conversational context, unstructured reasoning, or mid-run human approval

LANGGRAPH / AGENT FRAMEWORKS Graph-based multi-agent orchestration
✓ BEST FOR

Custom agent topologies, dynamic routing between specialist agents, Python-native teams

⚠ BREAKS DOWN WHEN

Overhead is unjustified for linear plan→dev→review pipelines; framework complexity exceeds the task

CLAUDE PROJECTS / CHAT UI Persistent context + file-attached conversations
✓ BEST FOR

Exploratory sessions, design iteration, back-and-forth with a human in the loop

⚠ BREAKS DOWN WHEN

Human must stay present; no unattended execution; context window limits multi-file codebases

CURSOR / COPILOT AI-assisted editing inside your IDE
✓ BEST FOR

Real-time pair programming, in-editor completions, small targeted edits with immediate feedback

⚠ BREAKS DOWN WHEN

Long-horizon tasks where agent needs to run, test, iterate across many files without hand-holding

RALPH WORKFLOW Unattended multi-phase AI orchestrator
✓ BEST FOR

Long-horizon unattended runs, multi-step agent pipelines, checkpoint-gated execution

⚠ BREAKS DOWN WHEN

Task fits in one prompt, no checkpoints needed, setup overhead isn't justified

OPERATIONAL CONSTRAINTS · BOUNDARY CONDITIONS

When not to deploy Ralph Workflow

TASK FITS IN ONE PROMPT

Your task can be described in a single message and answered without checkpoints, branching, or multi-step execution. Use Claude directly.

NO UNATTENDED EXECUTION NEEDED

You need to stay in the loop at every step. Ralph Workflow is designed for runs that complete without you — if you want hand-holding, use a chat interface.

SHORT TIME HORIZON

Your task takes only a few minutes to execute manually. Ralph Workflow is optimized for long-running unattended sessions — hours, not minutes. Orchestration overhead is not justified for tasks you'd finish before coffee cools.

SINGLE-AGENT PIPELINE

Your workflow involves exactly one agent with no phase handoffs, no checkpoint gates, and no parallel execution. A direct API call is simpler and faster.

REQUIRES REAL-TIME HUMAN FEEDBACK

Your workflow needs human input at unpredictable intervals mid-run. Ralph Workflow supports defined checkpoints, not freeform interaction mid-execution.

LICENSING SCOPE · CODE OWNERSHIP

Who owns what Ralph Workflow produces

GENERATED CODE

All code, files, and artifacts produced during a Ralph Workflow run belong to you. No vendor claim on output.

WORKFLOW DEFINITIONS

Your pipeline templates, prompt sequences, and agent configurations are your intellectual property.

RUNTIME DATA

Execution logs, checkpoints, and audit trails are stored locally or in your infrastructure. Ralph Workflow never retains your run data.

Ralph Workflow is AGPL-3.0. The code it generates belongs to you — review the full licence at Codeberg.

AGPL-3.0 CLI

Reclaim your hours.

While you sleep, Ralph ships.

The major task that never gets a dedicated sprint. The backlog item that never gets a slot. The refactor everyone avoids. Ralph handles it — AGPL-3.0 CLI that runs structured dev and review cycles, completely unattended.

AGPL-3.0 · Runs on your machine · No Ralph servers · Any Git repo

END OF BRIEF
Loading…