Skip to content

TP What is ralph wiggum? #5

Closed

Description

@zzcoolj

@claude 准备另一个TP,这个内容是要学生了解ralph wiggum (去读https://ghuntley.com/ralph/),然后了解github这个repo: https://github.com/frankbria/ralph-claude-code 。我并不需要学生按这个repo设置,因为现在已官方集成,具体信息如下:Ralph Wiggum 已经是 Claude Code 的官方插件
好消息是,Ralph Wiggum 已经集成到 Claude Code 中,作为 Anthropic 官方插件提供。你不需要使用第三方项目。
安装方法
在 Claude Code 中执行以下命令:
bash# 1. 添加 Anthropic 官方插件市场
/plugin marketplace add anthropics/claude-code

2. 安装 Ralph Wiggum 插件

/plugin install ralph-wiggum@claude-plugins-official
基本用法
bash# 启动自主循环
/ralph-loop "你的任务描述" --max-iterations 20 --completion-promise "DONE"

取消正在运行的循环

/cancel-ralph
工作原理
Ralph Wiggum 使用 Stop hook 拦截 Claude 的退出尝试,然后重新注入原始 prompt,让 Claude 在同一个 session 中持续迭代,直到满足完成条件或达到最大迭代次数。
关于第三方项目
你提到的 frankbria/ralph-claude-code 是一个社区实现,提供了一些额外功能(如 rate limiting、circuit breaker),但对于大多数用例,官方插件已经足够用了,而且更新维护更有保障。
成本提醒
自主循环会快速消耗 tokens。一个 50 次迭代的循环在中等代码库上可能花费 $50-100+ API 费用。建议:

始终设置 --max-iterations 作为安全限制
先在小任务上测试 基于这些给我生成TP,英文的

Activity

  1. claude commented on Jan 15, 2026

    @claude

    Claude finished @zzcoolj's task in 2m 52s —— View job • claude/issue-5-20260115-1124 • Create PR ➔


    Ralph Wiggum TP Created Successfully!

    Todo List

    • Read CLAUDE.md for repository requirements
    • Explore existing repository structure for TP format
    • Create bilingual TP document about Ralph Wiggum
    • Commit and push changes
    • Provide PR creation link

    Summary

    I've successfully created TP2: Ralph Wiggum - Autonomous Loops with Claude Code, a comprehensive bilingual (English/French) practical work exercise for students.

    What's Included

    The TP covers:

    • Introduction to Ralph Wiggum: What it is and how autonomous iteration works
    • Background reading: References to the original ghuntley.com article and the community repo (for educational purposes only)
    • Installation guide: Using official Claude Code plugins
    • Basic usage: Command syntax, parameters, and workflow
    • Cost awareness: Critical warnings about token consumption and API costs
    • Best practices: When to use autonomous loops vs. manual interaction
    • Practical exercises: TDD loops, documentation generation, and debugging challenges
    • Troubleshooting: Common issues and solutions
    • Submission requirements: Screenshots, reflection questions, and cost analysis

    Key Features

    ✅ Fully bilingual: All content in English and French as required by CLAUDE.md
    ✅ Clear distinction: Explains why students should use the official plugin, not the third-party repo
    ✅ Safety-focused: Emphasizes cost implications and the importance of setting max-iterations
    ✅ Hands-on: Multiple practical exercises with clear completion criteria
    ✅ 45-minute duration: Appropriate for an intermediate-level practical session

    File Location

    exercises/TP2-Ralph-Wiggum-Autonomous-Loops.md


    Branch: claude/issue-5-20260115-1124 |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions