/install open-ralph
\r \r
What this skill does\r
\r
This skill runs an autonomous Ralph Wiggum coding loop using the ralph CLI with OpenCode as the agent provider.\r
\r
It repeatedly executes the same coding prompt until:\r
\r
- The success criteria are met, OR\r
- The completion promise is printed, OR\r
- Max iterations are reached\r \r The loop is optimized for free OpenCode Zen models and includes a fallback chain in case models are rate-limited, disabled, or removed.\r \r ---\r \r
When to use\r
\r Use this skill when you want autonomous coding execution such as:\r \r
- Fixing failing tests\r
- Implementing scoped features\r
- Refactoring codebases\r
- Resolving lint/type errors\r
- Running build-fix loops\r
- Multi-iteration debugging\r \r You MUST be inside a git repository before running Ralph.\r \r ---\r \r
Free model fallback order\r
\r Always attempt models in this order:\r \r
opencode/kimi-k2.5-free← Best coding performance (limited time free)\ropencode/minimax-m2.1-free\ropencode/glm-4.7-free\ropencode/big-pickle← Free stealth model fallback\r \r If a model fails due to availability or quota, immediately retry using the next model without changing the prompt or loop parameters.\r \r
Failure triggers for fallback\r
\r Fallback if you encounter errors like:\r \r
- model disabled\r
- model not found\r
- insufficient quota\r
- quota exceeded\r
- payment required\r
- rate limit\r
- provider unavailable\r \r ---\r \r
How to run the loop\r
\r
Attempt #1 (primary model)\r
\r Run:\r \r ralph "\x3CTASK PROMPT>\r \r Success criteria:\r \r
- \x3Clist verifiable checks>\r
- Build passes\r
- Tests pass\r \r Completion promise:\r \x3Cpromise>COMPLETE\x3C/promise>" \r --agent opencode \r --model opencode/kimi-k2.5-free \r --completion-promise "COMPLETE" \r --max-iterations 20\r \r ---\r \r
Attempt #2 (fallback)\r
\r If attempt #1 fails due to model issues, rerun with:\r \r --model opencode/minimax-m2.1-free\r \r ---\r \r
Attempt #3 (fallback)\r
\r If attempt #2 fails:\r \r --model opencode/glm-4.7-free\r \r ---\r \r
Attempt #4 (final fallback)\r
\r If attempt #3 fails:\r \r --model opencode/big-pickle\r \r ---\r \r
Tasks mode (for large projects)\r
\r For multi-step execution:\r \r ralph "\x3CBIG TASK PROMPT>" \r --agent opencode \r --model opencode/kimi-k2.5-free \r --tasks \r --max-iterations 50\r \r Fallback model order still applies.\r \r ---\r \r
Plugin troubleshooting\r
\r If OpenCode plugins interfere with loop execution, rerun with:\r \r --no-plugins\r \r ---\r \r
Sanity check available Zen models\r
\r If free model availability changes, check:\r \r https://opencode.ai/zen/v1/models\r \r Update fallback order if needed.\r \r ---\r \r
Safety notes\r
\r
- Always run inside a git repo\r
- Set iteration limits to avoid runaway loops\r
- Ensure prompts contain verifiable success criteria\r
- Review diffs before merging autonomous changes\r \r ---\r \r
Example usage\r
\r Fix failing TypeScript errors:\r \r ralph "Fix all TypeScript errors in the repo.\r \r Success criteria:\r \r
- tsc passes\r
- Build succeeds\r \r Completion promise:\r \x3Cpromise>COMPLETE\x3C/promise>" \r --agent opencode \r --model opencode/kimi-k2.5-free \r --completion-promise "COMPLETE" \r --max-iterations 20\r
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install open-ralph - 安装完成后,直接呼叫该 Skill 的名称或使用
/open-ralph触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
open-ralph 是什么?
Run an autonomous Open Ralph Wiggum coding loop using OpenCode Zen with free models and automatic fallback. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1849 次。
如何安装 open-ralph?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install open-ralph」即可一键安装,无需额外配置。
open-ralph 是免费的吗?
是的,open-ralph 完全免费(开源免费),可自由下载、安装和使用。
open-ralph 支持哪些平台?
open-ralph 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 open-ralph?
由 Bderiel(@bderiel)开发并维护,当前版本 v1.0.0。