[PR #30525] feat: add Ralph Wiggum plugin support #32863

Closed
opened 2026-02-21 20:52:13 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30525

State: closed
Merged: Yes


Summary

This PR adds support for the Ralph Wiggum plugin to the Dify project's Claude Code configuration, enabling iterative development workflows.

What is the Ralph Wiggum Technique?

The Ralph Wiggum technique is a self-referential iterative development methodology pioneered by Geoffrey Huntley. It enables Claude to work on tasks through continuous loops, where each iteration sees the previous work in files and git history, iteratively improving until completion.

Core concept:

while :; do
  cat PROMPT.md | claude-code --continue
done

Changes

  • Added ralph-wiggum@claude-plugins-official to enabled plugins in .claude/settings.json

Plugin Capabilities

Available Commands

  1. /ralph-loop <PROMPT> [OPTIONS] - Start an iterative development loop

    • --max-iterations <n> - Maximum iterations before auto-stop
    • --completion-promise <text> - Promise phrase to signal completion
  2. /cancel-ralph - Cancel an active Ralph loop

  3. /ralph-wiggum:help - Display detailed help information

How It Works

  1. Creates .claude/.ralph-loop.local.md state file to track iterations
  2. Stop hook intercepts exit attempts
  3. Same prompt is fed back for the next iteration
  4. Claude sees previous work in files and git history
  5. Continues until completion promise is detected or max iterations reached

Use Cases

Good for:

  • Well-defined tasks with clear success criteria
  • Tasks requiring iteration and refinement
  • Iterative development with self-correction
  • Greenfield projects

Not good for:

  • Tasks requiring human judgment or design decisions
  • One-shot operations
  • Tasks with unclear success criteria

Official Resources

Testing

Test the plugin with:

/ralph-wiggum:help

Try a simple loop:

/ralph-loop "Add a comment to README" --max-iterations 3

Related Issue

Closes #30524

**Original Pull Request:** https://github.com/langgenius/dify/pull/30525 **State:** closed **Merged:** Yes --- ## Summary This PR adds support for the **Ralph Wiggum plugin** to the Dify project's Claude Code configuration, enabling iterative development workflows. ## What is the Ralph Wiggum Technique? The Ralph Wiggum technique is a self-referential iterative development methodology pioneered by Geoffrey Huntley. It enables Claude to work on tasks through continuous loops, where each iteration sees the previous work in files and git history, iteratively improving until completion. **Core concept:** ```bash while :; do cat PROMPT.md | claude-code --continue done ``` ## Changes - ✅ Added `ralph-wiggum@claude-plugins-official` to enabled plugins in `.claude/settings.json` ## Plugin Capabilities ### Available Commands 1. **`/ralph-loop <PROMPT> [OPTIONS]`** - Start an iterative development loop - `--max-iterations <n>` - Maximum iterations before auto-stop - `--completion-promise <text>` - Promise phrase to signal completion 2. **`/cancel-ralph`** - Cancel an active Ralph loop 3. **`/ralph-wiggum:help`** - Display detailed help information ### How It Works 1. Creates `.claude/.ralph-loop.local.md` state file to track iterations 2. Stop hook intercepts exit attempts 3. Same prompt is fed back for the next iteration 4. Claude sees previous work in files and git history 5. Continues until completion promise is detected or max iterations reached ### Use Cases **Good for:** - ✅ Well-defined tasks with clear success criteria - ✅ Tasks requiring iteration and refinement - ✅ Iterative development with self-correction - ✅ Greenfield projects **Not good for:** - ❌ Tasks requiring human judgment or design decisions - ❌ One-shot operations - ❌ Tasks with unclear success criteria ## Official Resources - **Original Technique**: https://ghuntley.com/ralph/ - **Ralph Orchestrator**: https://github.com/mikeyobrien/ralph-orchestrator - **Pioneer**: Geoffrey Huntley (@ghuntley) ## Testing Test the plugin with: ```bash /ralph-wiggum:help ``` Try a simple loop: ```bash /ralph-loop "Add a comment to README" --max-iterations 3 ``` ## Related Issue Closes #30524
yindo added the pull-request label 2026-02-21 20:52:13 -05:00
yindo closed this issue 2026-02-21 20:52:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32863