Explain Ralph Loop plugin and available commands
Explains the autonomous Ralph Loop system and lists available commands for iterative coding.
/plugin marketplace add majesticlabs-dev/majestic-marketplace/plugin install majestic-ralph@majestic-marketplaceRalph Loop is an autonomous AI coding system that ships features while you sleep.
A self-referential feedback loop where:
| Command | Purpose |
|---|---|
/majestic-ralph:start "<prompt>" | Start an iteration loop |
/majestic-ralph:cancel | Stop the active loop |
/majestic-ralph:help | This help message |
# Start a loop with completion promise
/majestic-ralph:start "Build a login form with validation. Output <promise>DONE</promise> when complete." --max-iterations 20 --completion-promise "DONE"
--max-iterations N - Safety limit (recommended: 10-50)--completion-promise "TEXT" - Phrase that signals genuine completion| File | Purpose |
|---|---|
.claude/ralph-loop.local.md | Loop state (iteration, prompt) |
.claude/ralph-progress.local.yml | Patterns and story log |
Both are gitignored (.local. suffix).
Read at start of each iteration, update after completing work:
patterns:
migrations: "Use IF NOT EXISTS"
forms: "Zod validation"
stories:
- id: US-001
title: Add login form
files: [app/login/page.tsx]
learnings:
- "Submit handler in separate action"
Promote valuable patterns to AGENTS.md at loop end.
✅ "Add login form with email validation"
❌ "Build entire auth system"
"Implement feature X:
- Acceptance criteria 1
- Acceptance criteria 2
- Tests passing
Output <promise>COMPLETE</promise> when ALL criteria met."
"After 15 iterations, if not complete:
- Document what's blocking progress
- List what was attempted
- Suggest alternative approaches"
/majestic-ralph:start "/majestic:run-blueprint docs/plans/feature.md" --max-iterations 50 --completion-promise "RUN_BLUEPRINT_COMPLETE"
Good for:
Not good for:
# Check current iteration
grep '^iteration:' .claude/ralph-loop.local.md
# View accumulated patterns
cat .claude/ralph-progress.local.yml
| Principle | Description |
|---|---|
| Iteration > Perfection | Don't aim for perfect first try; let the loop refine |
| Failures Are Data | Each failure informs the next attempt |
| Learnings Compound | By iteration 10, patterns from 1-9 are visible |
| Persistence Wins | Keep trying until genuine success |
Original technique: ghuntley.com/ralph