ralph-opencode-free-loop
Run an autonomous Open Ralph Wiggum coding loop using OpenCode Zen with free models and automatic fallback.
Best use case
ralph-opencode-free-loop is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Run an autonomous Open Ralph Wiggum coding loop using OpenCode Zen with free models and automatic fallback.
Teams using ralph-opencode-free-loop should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/open-ralph/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ralph-opencode-free-loop Compares
| Feature / Agent | ralph-opencode-free-loop | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Run an autonomous Open Ralph Wiggum coding loop using OpenCode Zen with free models and automatic fallback.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## 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 #4 (final fallback) If attempt #3 fails: --model opencode/big-pickle --- ## Tasks mode (for large projects) For multi-step execution: ralph "<BIG TASK PROMPT>" \ --agent opencode \ --model opencode/kimi-k2.5-free \ --tasks \ --max-iterations 50 Fallback model order still applies. --- ## Plugin troubleshooting If OpenCode plugins interfere with loop execution, rerun with: --no-plugins --- ## Sanity check available Zen models If free model availability changes, check: https://opencode.ai/zen/v1/models Update fallback order if needed. --- ## Safety notes - Always run inside a git repo - Set iteration limits to avoid runaway loops - Ensure prompts contain verifiable success criteria - Review diffs before merging autonomous changes --- ## Example usage Fix failing TypeScript errors: ralph "Fix all TypeScript errors in the repo. Success criteria: - tsc passes - Build succeeds Completion promise: <promise>COMPLETE</promise>" \ --agent opencode \ --model opencode/kimi-k2.5-free \ --completion-promise "COMPLETE" \ --max-iterations 20
Related Skills
opencode-controller
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
content-ideas-free
Free content brainstorming tool.
ralph-loop
Generate copy-paste bash scripts for Ralph Wiggum/AI agent loops (Codex, Claude Code, OpenCode, Goose). Use when asked for a “Ralph loop”, “Ralph Wiggum loop”, or an AI loop to plan/build code via PROMPT.md + AGENTS.md, SPECS, and IMPLEMENTATION_PLAN.md, including PLANNING vs BUILDING modes, backpressure, sandboxing, and completion conditions.
free-tool-strategy
When the user wants to plan, evaluate, or build a free.
coding-opencode
Memungkinkan penggunaan agen pengkodean OpenCode yang telah dikustomisasi dengan "Oh My OpenCode" untuk tugas pengembangan kode yang kompleks, eksplorasi codebase, debugging, refactoring, dan orkestrasi multi-model. Gunakan skill ini ketika Anda membutuhkan bantuan coding AI yang otonom dan canggih, terutama saat Anda ingin memanfaatkan fitur-fitur "Oh My OpenCode" seperti agen Sisyphus, Hephaestus, Oracle, Librarian, atau Explorer, serta alat LSP/AST.
opencode-omo
Turn coding requests into completed work.
free-groq-voice
FREE voice recognition using Groq's complimentary Whisper API.
Freelance Toolkit
Boîte à outils pour freelances/indépendants en France : factures, time tracking, clients, dashboard.
ralph-evolver
Recursive self-improvement engine. Think from first principles, let insights emerge.
free-ai-prompt-generator-for-chatgpt-gemini-more-q-6e800b2c
Write an AI prompt for a job description that attracts top talent
guruwalk-free-tours
Search GuruWalk free tours through the GuruWalk MCP server and return bookable options by city, dates, and language.
monitored-ralph-loop
Generate copy-paste bash scripts for Ralph Wiggum/AI agent loops (Codex, Claude Code, OpenCode, Goose)