ralph-mode

ralph-mode is a skill for Claude Code, Codex from richardcb/oh-my-gemini. It costs 44 tokens per session (362 once invoked), scanned A, original, MIT.

Instructions for a persistence mode that keeps working through a software task in repeated, orderly attempts. It emphasizes one task at a time, verification, fixing failures, and recording a blocker after three unsuccessful attempts.

In plain words
What is it for?
Use it when a task needs sustained autonomous implementation, testing, troubleshooting, and completion.
Why use it?
It provides a clear process for continuing when tests or other checks fail, rather than stopping at the first error. It also limits extra work and requires passing checks before committing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a task needs sustained autonomous implementation, testing, troubleshooting, and completion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richardcb/oh-my-gemini/ralph-mode
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add richardcb/oh-my-gemini --skill ralph-mode
Clone the repo
git clone --depth 1 https://github.com/richardcb/oh-my-gemini

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ralph-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/richardcb/oh-my-gemini/ralph-mode/github.svg)](https://agentmods.dev/skills/richardcb/oh-my-gemini/ralph-mode)
Your own site
<a href="https://agentmods.dev/skills/richardcb/oh-my-gemini/ralph-mode"><img src="https://agentmods.dev/badge/skills/richardcb/oh-my-gemini/ralph-mode/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ralph-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/richardcb/oh-my-gemini/ralph-mode"><img src="https://agentmods.dev/badge/skills/richardcb/oh-my-gemini/ralph-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 362 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00362
Opus 5 $0.00022 $0.00181
Sonnet 5 $0.00009 $0.00072
Haiku 4.5 $0.00004 $0.00036

Measured 10d ago against content hash 403194461a63, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ralph-mode scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ralph-mode/SKILL.md · 49 lines

What it actually says

Ralph Mode — Persistent Task Completion

You are in persistence mode. Your job is to complete the task through systematic iteration. Software is clay on the pottery wheel — if something isn't right, throw it back on the wheel.

Working Protocol

  1. Identify the current task from the plan or user request
  2. Implement the solution
  3. Run verification (tests, typecheck, lint) before considering it done
  4. If checks pass: commit and move to the next task
  5. If checks fail: analyze the error, try a different approach
  6. If stuck after 3 attempts on the same error: document the blocker and move to the next task

Rules

  • Work on ONE task at a time
  • Never skip failing tests — fix them or move on
  • Commit only passing code
  • Each commit should be a working state
  • Do not add features beyond what was requested
  • If the plan has multiple items, work through them in priority order

Backpressure Signals

The oh-my-gemini hooks provide automatic backpressure:

  • after-tool.js runs typecheck/lint after every file change
  • If errors are injected into your context, fix them before proceeding
  • These signals are your primary feedback mechanism

Completion

When the task (or all plan items) are complete:

  • All tests pass
  • No typecheck errors
  • Code is committed

State clearly what was accomplished and what (if anything) was deferred.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 49 lines · 44 tokens per session scan A 403194461a63

Subscribe to this mod's changes

ralph-mode is a skill published in the GitHub repository richardcb/oh-my-gemini (16 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 362 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

intuitive-tests

Use this skill whenever the user asks about unit test best practices, test organization, flat test suites, redundant tests, test refactors, pytest/JUnit/Jest/xUnit layout, test taxonomy, flaky tests, coverage quality, fixtures, mocks, parametrization, pruning existing UTs, or "which tests are worth keeping." It…

MiaoDX/intuitive-flow · 154 tokens

intuitive-preflight

Turn a vague task, plan, issue, or "LGTM/go ahead" request into an approval-ready preflight contract before implementation starts. Use when the user wants prompt preflight, clearer scope, non-goals, context package, acceptance criteria, definition of done, verification, stop gates, the exact execution command, or…

MiaoDX/intuitive-flow · 112 tokens

intuitive-doc

Create and maintain an intuitive human documentation surface for AI-agent-developed repos. Use when humans should only need README.md, ARCHITECTURE.md, STATUS.md, and docs/human/ while planning logs, generated docs, retrospectives, ADR detail, and implementation evidence stay in AI-agent-only folders.

MiaoDX/intuitive-flow · 64 tokens

intuitive-refactor

Refactor and cleanup router for known code/module/API seams, stale surfaces, compatibility shims, architecture cleanup targets, changed-code quality review, oversized modules, repeated cleanup campaigns, and recurring whole-repo architecture maintenance goals. Use this when the user names a concrete seam, wants…

MiaoDX/intuitive-flow · 185 tokens

intuitive-shape

Shape a raw product or project idea into a bounded decision before planning or implementation. Use when deciding whether an idea deserves a bet, setting an appetite, comparing candidate bets under finite capacity, cutting scope, exposing rabbit holes and no-gos, or choosing BET, RESEARCH, RESHAPE, or PASS. This skill…

MiaoDX/intuitive-flow · 126 tokens

skill-runner

Run a bounded development task through named skills in an isolated, tmux-backed Codex or Claude session. Use for durable or artifact-sensitive worker phases, supervised skill runs, and post-run skill evaluation.

MiaoDX/intuitive-flow · 45 tokens