ralph-inferno
v1.0.6
Published
AI-driven autonomous development workflow - Ralph builds while you sleep
Maintainers
Readme
🔥 Ralph Inferno
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
🔥 🔥
🔥 ██████╗ █████╗ ██╗ ██████╗ ██╗ ██╗ 🔥
🔥 ██╔══██╗██╔══██╗██║ ██╔══██╗██║ ██║ 🔥
🔥 ██████╔╝███████║██║ ██████╔╝███████║ 🔥
🔥 ██╔══██╗██╔══██║██║ ██╔═══╝ ██╔══██║ 🔥
🔥 ██║ ██║██║ ██║███████╗██║ ██║ ██║ 🔥
🔥 ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ 🔥
🔥 🔥
🔥 I N F E R N O M O D E 🔥
🔥 🔥
🔥 Build while you sleep. Wake to working code 🔥
🔥 🌙 → ☀️ 🔥
🔥 🔥
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥AI-driven autonomous development workflow.
How It Works
Ralph installs as slash commands in Claude Code. When you run npx ralph-inferno install, it creates a .ralph/ folder with scripts and a .claude/commands/ folder with command definitions. Claude Code automatically picks these up - no separate CLI needed!
Local Machine VM (Sandbox)
┌─────────────────┐ ┌─────────────────┐
│ Claude Code │ │ Claude Code │
│ + Ralph commands│ GitHub │ + ralph.sh │
│ │ ────────────► │ │
│ /ralph:discover │ │ Runs specs │
│ /ralph:plan │ │ autonomously │
│ /ralph:deploy │ │ │
└─────────────────┘ └─────────────────┘The flow:
- You work locally with Claude Code, using
/ralph:discoverand/ralph:plan /ralph:deploypushes your specs to GitHub and starts Ralph on the VM- Ralph runs autonomously on the VM while you sleep
- Next day:
/ralph:reviewto test what was built
Requirements
Local Machine
| Tool | Required | How to install |
|------|----------|----------------|
| Node.js | Yes | brew install node |
| Claude Code | Yes | npm install -g @anthropic-ai/claude-code |
| GitHub CLI | Recommended | brew install gh then gh auth login |
VM (Sandbox)
| Tool | Required | Notes |
|------|----------|-------|
| SSH access | Yes | You need to be able to SSH into the VM |
| Git | Yes | Usually pre-installed |
| Claude Code | Yes | npm install -g @anthropic-ai/claude-code |
| Claude auth | Yes | Run claude login OR set ANTHROPIC_API_KEY |
| GitHub CLI | Yes | brew install gh then gh auth login |
Important: Both machines need gh auth login for Git operations to work!
Optional
- Claude Chrome Extension - Lets Claude browse websites during
/ralph:discover - Cloud CLI (
hcloud,gcloud,doctl,aws) - For VM management - ntfy.sh - Push notifications when Ralph finishes
Installation
Step 1: Install Ralph locally
cd your-project
npx ralph-inferno installThis creates:
.ralph/- Scripts and config.claude/commands/- Slash commands for Claude Code
Step 2: Set up your VM
SSH into your VM and install the prerequisites:
# Install Node.js (if not installed)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install Claude Code
npm install -g @anthropic-ai/claude-code
# Authenticate Claude (choose one):
claude login # If you have Claude Pro/Max subscription
# OR
export ANTHROPIC_API_KEY="sk-ant-..." # If using API key
# Install and authenticate GitHub CLI
sudo apt-get install gh
gh auth login
# Install Playwright dependencies (for E2E tests)
npx playwright install-deps
npx playwright installStep 3: Verify setup
On your local machine, start Claude Code:
claudeType /ralph: and you should see the available commands:
/ralph:discover/ralph:plan/ralph:deploy- etc.
Update
Update core files while preserving your config:
npx ralph-inferno updateOr use the slash command in Claude Code:
/ralph:updateWorkflow
┌─────────────────────────────────────────────────────────────────────────────┐
│ RALPH WORKFLOW │
└─────────────────────────────────────────────────────────────────────────────┘
YOUR IDEA
│
▼
┌─────────────────┐
│ /ralph:discover │ ◄── Autonomous discovery loop
│ │ Claude explores from all angles
│ Output: PRD.md │ (Analyst, PM, UX, Architect, Business)
└────────┬────────┘
│
▼
┌─────────────────┐
│ /ralph:plan │ ◄── Breaks down PRD into specs
│ │
│ Output: specs/* │ (01-setup.md, 02-auth.md, etc.)
└────────┬────────┘
│
▼
┌─────────────────┐
│ /ralph:deploy │ ◄── Push to GitHub, start on VM
│ │ Choose mode: Quick/Standard/Inferno
└────────┬────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ ON THE VM (AUTONOMOUS) │
│ │
│ ralph.sh runs specs → build → test → auto-fix → commit │
│ │
└────────┬─────────────────────────────────────────────────────────┘
│
▼
┌─────────────────┐
│ /ralph:review │ ◄── Open tunnels, test the app
└────────┬────────┘
│
▼
┌─────────────────────┐
│ /ralph:change- │ ◄── If bugs found, generate CR specs
│ request │ Then run /ralph:deploy again
└─────────────────────┘Commands
| Command | Description |
|---------|-------------|
| /ralph:discover | Autonomous discovery loop, creates PRD with web research |
| /ralph:plan | Creates implementation plan + spec files |
| /ralph:deploy | Push to GitHub, choose mode, start Ralph on VM |
| /ralph:review | Open SSH tunnels, test the app |
| /ralph:change-request | Document bugs, generate CR specs for fixes |
| /ralph:status | Check Ralph's progress on VM |
| /ralph:abort | Stop Ralph on VM |
Deploy Modes
When running /ralph:deploy, you choose a mode:
| Mode | What it does | |------|--------------| | Quick | Spec execution + build verify only | | Standard | + Playwright E2E tests + auto-CR generation | | Inferno | + Design review + parallel worktrees |
Tips for Best Results
Discovery mode works best when Claude can browse the web.
Install the Claude Chrome Extension - it lets Claude see and interact with websites you reference during /ralph:discover. This enables better research of competitors, APIs, and documentation.
Example Session
# 1. Install Ralph in your project
npx ralph-inferno install
# 2. In Claude Code:
/ralph:discover # Autonomous discovery with web research
/ralph:plan # Generate specs from PRD
/ralph:deploy # Choose mode, send to VM
# 3. Next morning:
/ralph:review # Test what Ralph built
# 4. If bugs found:
/ralph:change-request # Generate fix specs
/ralph:deploy # Run fixesSafety
Ralph runs AI-generated code autonomously. For safety:
- ALWAYS run on a disposable VM - never on your local machine
- Review generated code before production
- Never store credentials in code
Cloud Providers
Ralph supports multiple cloud providers for VM execution:
| Provider | CLI | Notes |
|----------|-----|-------|
| Hetzner | hcloud | Cheapest, great for Europe |
| Google Cloud | gcloud | Good free tier |
| DigitalOcean | doctl | Simple and reliable |
| AWS | aws | Enterprise option |
| SSH | - | Use your own server |
Config File
Configuration is stored in .ralph/config.json:
{
"version": "1.0.4",
"language": "en",
"provider": "hcloud",
"vm_name": "ralph-sandbox",
"region": "fsn1",
"github": {
"username": "your-username"
},
"claude": {
"auth_method": "subscription"
},
"notifications": {
"ntfy_enabled": true,
"ntfy_topic": "my-unique-ralph-topic"
}
}Documentation
- Architecture - System overview and memory model
- CLI Flags - All ralph.sh options
- Token Optimization - Cost-saving strategies
Credits & Inspiration
Ralph Inferno builds on ideas from:
- snarktank/ralph - Ryan Carson's original Ralph concept
- how-to-build-a-coding-agent - Geoffrey Huntley's agent patterns
- claude-ralph - Robin Oppenstam's implementation
License
MIT
