ralph

ralph is a command for Claude Code from joaquimscosta/arkhe-claude-plugins. It costs 10 tokens per session (2,692 once invoked), scanned A, original, MIT.

A command that runs the Ralph autonomous development loop, which works through one project task at a time using a fresh context for each iteration. It also manages task sets, progress, and saved project notes.

In plain words
What is it for?
Use it to run iterations, check task progress, create or switch task sets, add tasks, and save useful project learnings.
Why use it?
It reduces the need to repeatedly direct an agent through the same task workflow and helps keep long development work separated into smaller steps.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Good fit Use it to run iterations, check task progress, create or switch task sets, add tasks, and save useful project learnings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/joaquimscosta/arkhe-claude-plugins/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/joaquimscosta/arkhe-claude-plugins

Made for: Claude Code.

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/joaquimscosta/arkhe-claude-plugins/ralph/github.svg)](https://agentmods.dev/commands/joaquimscosta/arkhe-claude-plugins/ralph)
Your own site
<a href="https://agentmods.dev/commands/joaquimscosta/arkhe-claude-plugins/ralph"><img src="https://agentmods.dev/badge/commands/joaquimscosta/arkhe-claude-plugins/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/joaquimscosta/arkhe-claude-plugins/ralph"><img src="https://agentmods.dev/badge/commands/joaquimscosta/arkhe-claude-plugins/ralph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,692 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.00010 $0.02692
Opus 5.5 $0.00004 $0.01077
Sonnet 5.5 $0.00002 $0.00538
Haiku 4.5 $0.00001 $0.00269

Measured yesterday against content hash 2efbdc8700c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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.

plugins/ralph/commands/ralph.md · 376 lines

How it starts

The opening of the file, as written. The whole thing — 376 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ralph Command

Autonomous development loop with Hat-lite builder/verifier system and task set isolation.

Usage

/ralph run [N]              # Start loop with N iterations (default: 20)
/ralph status               # Show task completion progress
/ralph init                 # Initialize Ralph in existing project

# Task Set Management
/ralph taskset new <name>   # Create new task set and switch to it
/ralph taskset list         # List all task sets with status
/ralph taskset switch <name> # Switch active task set
/ralph taskset delete <name> # Remove a task set

# Task Management
/ralph add-task "description" # Add task to current task set

# Memory Management
/ralph remember "insight"   # Save learning to memories
/ralph memories             # View current task set's memories

Subcommands

/ralph run [iterations]

Start the Ralph autonomous loop.

Requirements:

  • PROMPT.md must exist (created by /create-prd)
  • .ralph/current-taskset symlink must exist
  • .ralph/current-taskset/tasks.json must exist

Process:

  1. Verify required files exist
  2. Display loop configuration
  3. Execute ./ralph.sh {iterations}

Example:

/ralph run 10     # Run up to 10 iterations
/ralph run        # Run up to 20 iterations (default)

/ralph status

Show current progress of the Ralph loop.

Output:

  • Current task set name
  • Total tasks
  • Completed tasks
  • Remaining tasks
  • Last activity timestamp
  • Current/next task

Example output:

Ralph Status
============
Task Set: initial (active)
Project: my-todo-app
Tasks: 4/6 complete (66%)

Completed:
  ✓ setup-001: Initialize project
  ✓ feat-001: Create todo list
  ✓ feat-002: Add todo creation
  ✓ feat-003: Add complete/delete

Remaining:
  ○ feat-004: Add localStorage
  ○ style-001: Apply styling

Last activity: 2026-02-01 14:30:00

/ralph init

Initialize Ralph in an existing project (without running /create-prd).

Creates:

  • .ralph/tasksets/initial/ directory structure
  • Empty .ralph/tasksets/initial/tasks.json with template
  • Empty .ralph/tasksets/initial/memories.md
  • Empty .ralph/tasksets/initial/activity.log
  • Symlink .ralph/current-taskset -> tasksets/initial
  • Default PROMPT.md
  • Copy of ralph.sh

Read the full file on GitHub · 376 lines

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. yesterday First seen · 376 lines · 10 tokens per session scan A 2efbdc8700c3

Subscribe to this mod's changes

ralph is a command published in the GitHub repository joaquimscosta/arkhe-claude-plugins (21 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 2,692 once invoked, about $0.0000 per session on Opus 5.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-10-16.