| name | ralph-router |
| version | 1 |
| description | Entry point for the Ralph anti-loop system. The agent assesses the incoming task and loads the correct anti-loop skill level automatically. Invoke at the START of every task, before any other action.
|
Ralph Router ā Automatic level selection
Before you act, pick the right level. Never start a task without loading the correct skill.
Decision tree
I receive a task.
ā
āā How many steps do I expect?
ā ā
ā āā 1ā3 steps / single operation / lookup / quick edit
ā ā āā ā Load ralph-small
ā ā Path: /home/ubuntu/.openclaw/skills/ralph-small/SKILL.md
ā ā
ā āā 4ā10 steps / sequential workflow / moderate dependencies
ā ā āā ā Load ralph-medium
ā ā Path: /home/ubuntu/.openclaw/skills/ralph-medium/SKILL.md
ā ā
ā āā 10+ steps / debugging / refactor / architecture / high complexity
ā āā ā Load ralph-huge
ā Path: /home/ubuntu/.openclaw/skills/ralph-huge/SKILL.md
ā
āā Unsure about complexity?
ā āā ā Err on the side of more discipline. Prefer ralph-medium on a simple task
ā over ralph-small on a task that turns out complex.
ā
āā Already using ralph-small or ralph-medium and exhausted attempts?
āā ā Escalate to the next level immediately.
Do not wait. Do not retry the same tier. Escalate.
Automatic escalation rule
ralph-small ā 2 failed attempts ā ralph-medium
ralph-medium ā 3 failed attempts ā ralph-huge
ralph-huge ā 4 failed attempts ā Circuit breaker + wait for user
There is no escalation beyond ralph-huge. After four failed unique attempts, stop, emit the diagnostic, and wait for human input.
After success (self-improvement)
When the task was run under ralph-small, ralph-medium, or ralph-huge and you have verified success (evidence in the same turn):
- Follow the Closure: self-improvement section at the end of whichever Ralph level you used ā it links to
self-improvement and .learnings/ without blocking the user reply.
- Skill path (OpenClaw):
/home/ubuntu/.openclaw/skills/self-improvement/SKILL.md
This is optional but high-value for recurring patterns, non-obvious fixes, and tool/gateway gotchas.
Note for the agent
Never tell the user āIām using ralph-[level]ā ā that is internal operations detail.
Select, load, act. The user wants outcomes, not narration of your selection process.