By jes5199
Run Claude in an automated while-true loop that repeatedly executes the same prompt until a completion promise is met, enabling self-referential iterative development without manual restarting.

A fork of the ralph-wiggum plugin for Claude Code, implementing self-referential AI development loops.
This fork exists for two reasons:
Includes fixes from PR #12642:
```! auto-execute syntaxAdditional fixes in v1.1.0:
--completion-promise --iterations) now rejected with helpful error messages instead of silently misinterpreting argumentssystemMessage not being visible to the AI)Also adds clearer documentation that completion promises must be wrapped in <promise> XML tags.
You can start a Wiggum loop just by asking Claude naturally:
"Wiggum this until the tests pass" "Keep trying to fix the build" "Run in a loop until it works"
The plugin includes a skill file that recognizes these phrases and automatically starts an appropriate loop with sensible defaults.
/plugin marketplace add jes5199/chief-wiggum
/plugin install chief-wiggum
Then restart Claude Code to load the plugin.
Note: The Claude Code plugin interface can be buggy. If the above commands don't work, ask Claude to directly edit your config files to install or uninstall the plugin.
The Ralph Wiggum technique is an iterative development methodology based on continuous AI loops, pioneered by Geoffrey Huntley.
Core concept: Feed Claude the same prompt repeatedly. Each iteration, Claude sees its previous work in files and git history, allowing it to iteratively improve until the task is complete.
This plugin implements Ralph using a Stop hook that intercepts Claude's exit attempts and feeds the same prompt back.
/wiggum-loop "Build a REST API for todos. Requirements: CRUD operations, input validation, tests. Output <promise>COMPLETE</promise> when done." --completion-promise "COMPLETE" --max-iterations 15
Or just ask naturally:
"Wiggum it - implement user authentication with tests"
Start a loop in your current session.
/wiggum-loop "<prompt>" --max-iterations <n> --completion-promise "<text>"
Options:
--completion-promise <text> - Phrase that signals completion (HIGHLY ENCOURAGED)--max-iterations <n> - Stop after N iterations (HIGHLY ENCOURAGED, recommend 10-20)IMPORTANT: Always specify BOTH options to prevent infinite loops.
Cancel the active loop.
/cancel-wiggum
To signal completion, output a <promise> tag with the exact text specified:
<promise>COMPLETE</promise>
The stop hook detects this tag and ends the loop. Always use both a completion promise AND --max-iterations (recommend 10-20) to prevent infinite loops.
Build a REST API for todos.
When complete:
- All CRUD endpoints working
- Input validation in place
- Tests passing (coverage > 80%)
- Output: <promise>COMPLETE</promise>
/wiggum-loop "Try to implement feature X" --completion-promise "FEATURE COMPLETE" --max-iterations 15
Always specify both --completion-promise and --max-iterations (recommend 10-20). This prevents infinite loops on impossible tasks.
Good for:
Not good for:
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 jes5199/chief-wiggum --plugin chief-wiggum連續自引用 AI 循環,用於互動式迭代開發。實現 Ralph Wiggum 技術,讓 Claude 在 while-true 循環中執行相同提示直到任務完成
Self-referential development loop plugin - iteratively improves on tasks until completion
Interactive self-referential AI loops for iterative development. Claude works on the same task repeatedly, seeing its previous work, until completion.
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.
Complete Claude Code configs for mobile development - Android, iOS, and Kotlin Multiplatform