ralph

ralph is a command for Claude Code from an8079/take-skills. It costs 22 tokens per session (661 once invoked), scanned A, original, MIT.

A persistent work loop that repeatedly executes a coding task, verifies the result, and fixes problems until an architecture check passes.

In plain words
What is it for?
Use it for coding tasks that need repeated implementation, testing or verification, and correction before they are considered complete.
Why use it?
It reduces the chance of stopping after an incomplete or unverified implementation.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-dev-assistant plugin — 21 skills, 39 commands shipped together

Good fit Use it for coding tasks that need repeated implementation, testing or verification, and correction before they are considered complete.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/an8079/take-skills/takes-ralph
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.

Clone the repo
git clone --depth 1 https://github.com/an8079/take-skills

Made for: Claude Code.

Or install claude-dev-assistant, the plugin that ships this one along with the rest of its 21 skills, 39 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/an8079/take-skills/takes-ralph/github.svg)](https://agentmods.dev/commands/an8079/take-skills/takes-ralph)
Your own site
<a href="https://agentmods.dev/commands/an8079/take-skills/takes-ralph"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-ralph/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/an8079/take-skills/takes-ralph"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-ralph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 661 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.00022 $0.00661
Opus 5 $0.00011 $0.00331
Sonnet 5 $0.00004 $0.00132
Haiku 4.5 $0.00002 $0.00066

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

Security

Grade A, and why

ralph 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 9d 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.

commands/takes-ralph.md · 85 lines

What it actually says

/ralph - Ralph 持久循环模式

持续执行-验证-修复循环,直到 Architect 验证通过才退出。

使用方式

/ralph "任务描述"

RALPH
拉尔夫
持久模式

工作流程

┌─────────────────────────────────────┐
│           Ralph Loop                │
├─────────────────────────────────────┤
│                                     │
│  ┌─────────────────────────────┐   │
│  │      Execution Phase       │   │
│  │   代码实现 / 任务执行       │   │
│  └─────────────┬───────────────┘   │
│                │                   │
│                ▼                   │
│  ┌─────────────────────────────┐   │
│  │       Ultrawork            │   │
│  │    并行任务执行             │   │
│  └─────────────┬───────────────┘   │
│                │                   │
│                ▼                   │
│  ┌─────────────────────────────┐   │
│  │       Verification          │   │
│  │      Architect 验证         │   │
│  └─────────────┬───────────────┘   │
│                │                   │
│          验证通过?                │
│          ┌─────┴─────┐            │
│          │           │            │
│         是          否             │
│          │           │            │
│       退出      继续循环           │
│                                     │
└─────────────────────────────────────┘

特点

特点 说明
持久循环 不断执行-验证-修复直到完成
包含 Ultrawork 自动调用 ultrawork 进行并行执行
Architect 验证 必须通过 Architect 的验证才退出
自我迭代 每次循环都会改进

退出条件

  • 通过 Architect 验证 - 任务完成质量达标
  • 达到最大循环次数 - 防止无限循环
  • 用户手动取消 - 使用 /cancel 终止

与 /ultrawork 的关系

维度 /ralph /ultrawork
模式 持久循环 单独并行执行
包含 包含 ultrawork 独立运行
退出 Architect 验证 任务完成
适用 复杂迭代任务 高吞吐量任务

提示: /ralph 适合需要多次迭代优化的复杂任务,它会一直工作直到达到高质量标准。

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. 9d ago First seen · 85 lines · 22 tokens per session scan A 46ed638bc7c5

Subscribe to this mod's changes

ralph is a command published in the GitHub repository an8079/take-skills (4 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 661 once invoked, about $0.0001 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-31.