The --rotation flag allows you to cycle through different agent/model combinations across iterations. This is useful for leveraging the strengths of multiple models. When --rotation is used, the individual --agent and --model flags are ignored. The list cycles back to the first entry after the last one is used.
Supported agents: opencode, claude-code, codex, copilot, cursor-agent, and qwen-code.
Format: agent:model entries separated by commas.
# Alternate between OpenCode and Claude Code
ralph "Build a REST API" \
--rotation "opencode:claude-sonnet-4,claude-code:claude-sonnet-4" \
--max-iterations 10
# Three-way rotation
ralph "Refactor the auth module" \
--rotation "opencode:claude-sonnet-4,claude-code:claude-sonnet-4,codex:gpt-5-codex" \
--max-iterations 15