By jes5199
Run Claude in continuous self-referential loops that iteratively execute and refine development tasks until a specified completion promise is met via <promise> tags or max iterations reached. Manages state with files and git commits; start with a prompt, cancel anytime, and track progress across sessions.
npx claudepluginhub jes5199/chief-wiggum --plugin chief-wiggum
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:
Complete developer toolkit for Claude Code
Continuous self-referential AI loops for interactive iterative development, implementing the Ralph Wiggum technique. Run Claude in a while-true loop with the same prompt until task completion.
AI-supervised issue tracker for coding workflows. Manage tasks, discover work, and maintain context with simple CLI commands.
Advanced development superpowers for orchestrating complex workflows with Superpower Loop and work verification
Complete Claude Code configs for mobile development - Android, iOS, and Kotlin Multiplatform
The definitive Claude Code companion for .NET developers. 47 skills, 10 agents, 16 commands, 10 rules, 5 templates, 15 MCP tools, 7 hooks for modern .NET 10 / C# 14.