搜索

PythonReactSEOPDF
OpenClaw

ralph-opencode-free-loop

Run an autonomous Open Ralph Wiggum coding loop using OpenCode Zen with free models and automatic fallback.

bderiel0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install bderiel/open-ralph

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

What this skill does

This skill runs an autonomous Ralph Wiggum coding loop using the ralph CLI with OpenCode as the agent provider.

It repeatedly executes the same coding prompt until:

  • The success criteria are met, OR
  • The completion promise is printed, OR
  • Max iterations are reached

The loop is optimized for free OpenCode Zen models and includes a fallback chain in case models are rate-limited, disabled, or removed.


When to use

Use this skill when you want autonomous coding execution such as:

  • Fixing failing tests
  • Implementing scoped features
  • Refactoring codebases
  • Resolving lint/type errors
  • Running build-fix loops
  • Multi-iteration debugging

You MUST be inside a git repository before running Ralph.


Free model fallback order

Always attempt models in this order:

  1. opencode/kimi-k2.5-free ← Best coding performance (limited time free)
  2. opencode/minimax-m2.1-free
  3. opencode/glm-4.7-free
  4. opencode/big-pickle ← Free stealth model fallback

If a model fails due to availability or quota, immediately retry using the next model without changing the prompt or loop parameters.

Failure triggers for fallback

Fallback if you encounter errors like:

  • model disabled
  • model not found
  • insufficient quota
  • quota exceeded
  • payment required
  • rate limit
  • provider unavailable

How to run the loop

Attempt #1 (primary model)

Run:

ralph "<TASK PROMPT>

Success criteria:

  • Build passes
  • Tests pass

Completion promise: COMPLETE"
--agent opencode
--model opencode/kimi-k2.5-free
--completion-promise "COMPLETE"
--max-iterations 20


Attempt #2 (fallback)

If attempt #1 fails due to model issues, rerun with:

--model opencode/minimax-m2.1-free


Attempt #3 (fallback)

If attempt #2 fails:

--model opencode/glm-4.7-free


Attempt #...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/bderiel/open-ralph
Version
—
Commit
68f9228c766bd1ba0fa5c7b91287dc58358b1bb0
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
## What this skill does

This skill runs an autonomous **Ralph Wiggum** coding loop using the `ralph` CLI with OpenCode as the agent provider.

It repeatedly executes the same coding prompt until:

- The success criteria are met, OR
- The completion promise is printed, OR
- Max iterations are reached

The loop is optimized for **free OpenCode Zen models** and includes a fallback chain in case models are rate-limited, disabled, or removed.

---

## When to use

Use this skill when you want autonomous coding execution such as:

- Fixing failing tests
- Implementing scoped features
- Refactoring codebases
- Resolving lint/type errors
- Running build-fix loops
- Multi-iteration debugging

You MUST be inside a git repository before running Ralph.

---

## Free model fallback order

Always attempt models in this order:

1. `opencode/kimi-k2.5-free` ← Best coding performance (limited time free)
2. `opencode/minimax-m2.1-free`
3. `opencode/glm-4.7-free`
4. `opencode/big-pickle` ← Free stealth model fallback

If a model fails due to availability or quota, immediately retry using the next model without changing the prompt or loop parameters.

### Failure triggers for fallback

Fallback if you encounter errors like:

- model disabled
- model not found
- insufficient quota
- quota exceeded
- payment required
- rate limit
- provider unavailable

---

## How to run the loop

### Attempt #1 (primary model)

Run:

ralph "<TASK PROMPT>

Success criteria:

- <list verifiable checks>
- Build passes
- Tests pass

Completion promise:
<promise>COMPLETE</promise>" \
 --agent opencode \
 --model opencode/kimi-k2.5-free \
 --completion-promise "COMPLETE" \
 --max-iterations 20

---

### Attempt #2 (fallback)

If attempt #1 fails due to model issues, rerun with:

--model opencode/minimax-m2.1-free

---

### Attempt #3 (fallback)

If attempt #2 fails:

--model opencode/glm-4.7-free

---

### Attempt #...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.