A command-line tool for managing Ralph Wiggum AI development workflows across projects.
Based on the Ralph Wiggum Technique - an AI development methodology that uses autonomous coding loops with AI agents.
Meta: This CLI was built by pointing an AI agent at the Ralph Wiggum technique repo, then using Ralph itself to implement and refine the tool. Recursive AI development in action.
bun install -g ralph-wiggum-cliOr with npm:
npm install -g ralph-wiggum-cliFor local development:
git clone <repo>
cd ralph-cli
bun install
bun linkRalph includes a skill file that teaches AI agents how to use the CLI.
cp -r .claude/skills/ralph ~/.claude/skills/# Initialize Ralph in your project
cd your-project
ralph-wiggum-cli init
# Start planning mode (generates IMPLEMENTATION_PLAN.md)
ralph-wiggum-cli start plan
# Start building mode (implements from plan)
ralph-wiggum-cli start build
# View status
ralph-wiggum-cli status
# Stop the loop
ralph-wiggum-cli stop| Command | Description |
|---|---|
ralph-wiggum-cli init |
Initialize Ralph in the current project |
ralph-wiggum-cli start [plan|build] |
Start the Ralph loop |
ralph-wiggum-cli stop |
Stop the running Ralph session |
ralph-wiggum-cli status |
Show project status and sessions |
ralph-wiggum-cli list |
List all Ralph projects |
ralph-wiggum-cli logs |
View session logs |
ralph-wiggum-cli agents |
List available AI agents |
--agent <claude|amp|droid|opencode|cursor|codex|gemini>- Switch between AI agents--model <model>- Specify the model to use
-n, --max-iterations <n>- Maximum number of iterations-v, --verbose- Enable verbose output
| Agent | Description |
|---|---|
claude |
Claude Code by Anthropic |
amp |
Amp Code by Sourcegraph |
droid |
Factory Droid CLI |
opencode |
OpenCode CLI |
cursor |
Cursor Agent CLI |
codex |
OpenAI Codex CLI |
gemini |
Gemini CLI by Google |
After ralph-wiggum-cli init, your project will have:
your-project/
└── .ralph/
├── PROMPT_plan.md # Planning mode prompt
├── PROMPT_build.md # Building mode prompt
├── IMPLEMENTATION_PLAN.md # Auto-generated implementation plan
└── specs/ # Specification files
└── example.md
Ralph stores configuration in ~/.ralph/:
config.json- Global configuration and project registryprojects/- Per-project configurationlogs/- Session logs
Ralph implements the "Ralph Wiggum" technique:
- Planning Phase: AI analyzes specs and generates an implementation plan
- Building Phase: AI iterates through the plan, implementing one task per loop
- Loop Mechanics: Fresh context each iteration, backpressure via tests/builds
- Git Integration: Commits after each successful iteration
Each iteration:
- Reads specs and current plan
- Selects the most important task
- Implements the task
- Runs tests (backpressure)
- Commits changes
- Pushes to remote
MIT