By hmemcpy
Run an interactive planning interview that asks multiple-choice questions, optionally analyzes project codebase, then generates feature specifications and implementation plans to drive iterative AI-assisted development in a structured loop.
Generate the complete Ralph Wiggum loop infrastructure for iterative AI-driven development. Supports multiple AI agents with agent-specific optimizations.
An iterative AI development loop where a dumb bash script keeps restarting the AI agent, and the agent figures out what to do next by reading the plan file each time.
┌─────────────────────────────────────────────────────────┐
│ OUTER LOOP (bash) │
│ while :; do amp -x < PROMPT.md ; done │
└─────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ INNER LOOP (agent) │
│ Read plan → Pick task → Implement → Test → Commit │
└─────────────────────────────────────────────────────────┘
./loop.sh implements one task per iteration until complete| Agent | CLI Command | Key Features |
|---|---|---|
| Amp | amp -x | Oracle (planning/debug), Librarian (docs), finder (semantic search) |
| Claude Code | claude -p | Plan Mode, AskUserQuestion, Subagents |
git clone https://github.com/hmemcpy/ralph-wiggum
cd ralph-wiggum
./install.sh
This installs:
~/.claude/plugins/~/.config/agents/skills/ralph-wiggum/Restart your agent for changes to take effect.
/skill ralph [optional/path/to/plan.md]
The skill will:
/skill ralph [optional/path/to/plan.md]
The skill will:
AskUserQuestion to interview you| File | Purpose |
|---|---|
specs/<feature>.md | Requirements, user stories, edge cases |
IMPLEMENTATION_PLAN.md | Summary + prioritized task list |
PROMPT.md | Build mode instructions |
loop.sh | Build-only loop script |
chmod +x loop.sh
# Run until complete
./loop.sh
# Limit iterations
./loop.sh 10
RALPH_COMPLETE — never stops on its ownRALPH_COMPLETEAskUserQuestion for requirements gatheringralph-wiggum/
├── .claude-plugin/ # Claude Code plugin manifest
├── agents/
│ └── ralph/
│ └── SKILL.md # Amp skill
├── skills/
│ └── ralph/
│ └── SKILL.md # Claude Code skill
├── install.sh # Installer for both agents
└── README.md
jq installed (for streaming output parsing)Ralph runs autonomously with permissions bypassed. Always run in a sandboxed environment (Docker, VM, etc.) to protect credentials and sensitive files.
MIT
Based on How to Ralph Wiggum by Geoffrey Huntley. Inspired by snarktank/ralph PRD and threading patterns.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin hmemcpy-ralph-wiggumContinuous self-referential AI loops for iterative development, implementing the Ralph Wiggum technique. Run the agent in a while-true loop with the same prompt until task completion.
A plugin to help with Ralph's tasks
Implementation of the Ralph Wiggum technique - continuous self-referential AI loops for interactive iterative development. Run Claude in a while-true loop with the same prompt until task completion.
Interactive self-referential AI loops for iterative development. Claude works on the same task repeatedly, seeing its previous work, until completion.
Autonomous coding using the Ralph Wiggum technique - simple loops, persistent memory, one task at a time
Implementation of the Ralph Wiggum technique - continuous self-referential AI loops for interactive iterative development. Run Claude in a while-true loop with the same prompt until task completion.