Search

PythonReactSEOPDF
OpenClaw

ralph-opencode-free-loop

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

bderiel0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install bderiel/open-ralph

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 information

Source
github
Repository
openclaw/skills
Path
skills/bderiel/open-ralph
Version
—
Commit
68f9228c766bd1ba0fa5c7b91287dc58358b1bb0
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

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 #...

Related skills

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.