ralph-invoke

ralph-invoke is a skill for Claude Code from muyen/vibe-to-prod. It costs 0 tokens per session (883 once invoked), scanned B, original, MIT.

A skill that lets the agent start Ralph-Wiggum autonomous loops for a task. A loop repeatedly works on the task until a stated completion condition is reached or an iteration limit is hit.

In plain words
What is it for?
Use it for tasks that benefit from repeated attempts, such as asking the agent to keep working until a defined result is complete.
Why use it?
It avoids requiring a separate user command for every iteration of a task. Limits and completion text provide a way to control when the loop stops.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery.

Part of the vibe-to-prod-skills plugin — 8 skills shipped together

Good fit Use it for tasks that benefit from repeated attempts, such as asking the agent to keep working until a defined result is complete.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/muyen/vibe-to-prod/ralph-invoke
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 muyen/vibe-to-prod --skill ralph-invoke
Clone the repo
git clone --depth 1 https://github.com/muyen/vibe-to-prod

Made for: Claude Code.

Or install vibe-to-prod-skills, the plugin that ships this one along with the rest of its 8 skills.

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-invoke

README.md
[![agentmods](https://agentmods.dev/badge/skills/muyen/vibe-to-prod/ralph-invoke/github.svg)](https://agentmods.dev/skills/muyen/vibe-to-prod/ralph-invoke)
Your own site
<a href="https://agentmods.dev/skills/muyen/vibe-to-prod/ralph-invoke"><img src="https://agentmods.dev/badge/skills/muyen/vibe-to-prod/ralph-invoke/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-invoke

Your own site · 80×15
<a href="https://agentmods.dev/skills/muyen/vibe-to-prod/ralph-invoke"><img src="https://agentmods.dev/badge/skills/muyen/vibe-to-prod/ralph-invoke.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00000 $0.00883
Opus 5.5 $0.00000 $0.00353
Sonnet 5.5 $0.00000 $0.00177
Haiku 4.5 $0.00000 $0.00088

Measured 12d ago against content hash 4a024f2992a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ralph-invoke scanned grade B with 1 finding 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 12d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

4. **Monitor progress** - `head -10 .claude/ralph-loop.local.md`
.claude/skills/ralph-invoke/SKILL.md · 110 lines

How it starts

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

Ralph Invoke Skill

Allows Claude to directly start Ralph-Wiggum autonomous loops without user commands.

Prerequisites

The ralph-wiggum plugin must be installed and enabled:

/plugin install ralph-wiggum@claude-code-plugins
/plugin enable ralph-wiggum@claude-code-plugins

Triggers

Use this skill when:

  • User asks to "start a ralph loop" or "run ralph"
  • User wants autonomous iteration on a task
  • User says "keep working until done" or "iterate until complete"
  • A complex task would benefit from multiple iterations
  • User explicitly requests Claude to invoke ralph

How to Start a Ralph Loop

Run this bash command:

"$HOME/.claude/plugins/cache/claude-code-plugins/ralph-wiggum/1.0.0/scripts/setup-ralph-loop.sh" \
  "<TASK_DESCRIPTION>" \
  --max-iterations <N> \
  --completion-promise "<PROMISE_TEXT>"

Parameters

Parameter Required Default Description
TASK_DESCRIPTION Yes - The task to work on
--max-iterations Recommended unlimited Safety limit (use 20-100)
--completion-promise Recommended null Text to output when truly done

Example Invocations

Simple task:

"$HOME/.claude/plugins/cache/claude-code-plugins/ralph-wiggum/1.0.0/scripts/setup-ralph-loop.sh" \
  "Fix all TypeScript type errors" \
  --max-iterations 50 \
  --completion-promise "ALL_ERRORS_FIXED"

Complex refactor:

"$HOME/.claude/plugins/cache/claude-code-plugins/ralph-wiggum/1.0.0/scripts/setup-ralph-loop.sh" \
  "Migrate all API handlers to the new v2 pattern" \
  --max-iterations 100 \
  --completion-promise "MIGRATION_COMPLETE"

How the Loop Works

  1. Claude runs the setup script → Creates state file at .claude/ralph-loop.local.md
  2. Claude works on the task → Normal operation
  3. Claude tries to exit → Stop hook intercepts
  4. Hook re-injects prompt → Claude continues with same task
  5. Repeat until:
    • Max iterations reached, OR
    • Claude outputs <promise>PROMISE_TEXT</promise>

Read the full file on GitHub · 110 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. 12d ago First seen · 110 lines · 0 tokens per session scan B 4a024f2992a8

Subscribe to this mod's changes

ralph-invoke is a skill published in the GitHub repository muyen/vibe-to-prod (34 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 883 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.