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 loop is optimized for free OpenCode Zen models and includes a fallback chain in case models are rate-limited, disabled, or removed.
Use this skill when you want autonomous coding execution such as:
You MUST be inside a git repository before running Ralph.
Always attempt models in this order:
opencode/kimi-k2.5-free ← Best coding performance (limited time free)
opencode/minimax-m2.1-free
opencode/glm-4.7-free
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.
Fallback if you encounter errors like:
Run:
ralph "
Success criteria:
Completion promise:
--agent opencode \
--model opencode/kimi-k2.5-free \
--completion-promise "COMPLETE" \
--max-iterations 20
If attempt #1 fails due to model issues, rerun with:
--model opencode/minimax-m2.1-free
If attempt #2 fails:
--model opencode/glm-4.7-free
If attempt #3 fails:
--model opencode/big-pickle
For multi-step execution:
ralph "" \
--agent opencode \
--model opencode/kimi-k2.5-free \
--tasks \
--max-iterations 50
Fallback model order still applies.
If OpenCode plugins interfere with loop execution, rerun with:
--no-plugins
If free model availability changes, check:
https://opencode.ai/zen/v1/models
Update fallback order if needed.
Fix failing TypeScript errors:
ralph "Fix all TypeScript errors in the repo.
Success criteria:
Completion promise:
--agent opencode \
--model opencode/kimi-k2.5-free \
--completion-promise "COMPLETE" \
--max-iterations 20
共 1 个版本