pi-ralph-wiggum

pi-ralph-wiggum is a skill for Claude Code, Codex from tmustier/pi-extensions. It costs 49 tokens per session (897 once invoked), scanned A, original, MIT.

A skill for running long, repeated development cycles with checkpoints and progress checks. Ralph Wiggum is the name of the looping workflow it defines.

In plain words
What is it for?
Use it for multi-step builds, refactors, or other tasks that need iteration, reflection, task tracking, and final verification.
Why use it?
It helps organize work that is too large or repetitive for one coding session and requires evidence before completion.

Skill for Claude CodeCodex

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

Good fit Use it for multi-step builds, refactors, or other tasks that need iteration, reflection, task tracking, and final verification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmustier/pi-extensions/pi-ralph-wiggum
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 tmustier/pi-extensions --skill pi-ralph-wiggum
Clone the repo
git clone --depth 1 https://github.com/tmustier/pi-extensions

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 pi-ralph-wiggum

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmustier/pi-extensions/pi-ralph-wiggum"><img src="https://agentmods.dev/badge/skills/tmustier/pi-extensions/pi-ralph-wiggum.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 897 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00049 $0.00897
Opus 5 $0.00024 $0.00449
Sonnet 5 $0.00010 $0.00179
Haiku 4.5 $0.00005 $0.00090

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

Security

Grade A, and why

pi-ralph-wiggum 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.

The scan reads SKILL.md. This mod also ships 2 executable files (index.ts, tests/session-boundary.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

pi-ralph-wiggum/SKILL.md · 97 lines

How it starts

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

Ralph Wiggum - Long-Running Development Loops

Use the ralph_start tool to begin a loop:

ralph_start({
  name: "loop-name",
  taskContent: "# Task\n\n## Goals\n- Goal 1\n\n## Checklist\n- [ ] Item 1\n- [ ] Item 2",
  maxIterations: 50,        // Default: 50
  itemsPerIteration: 3,     // Optional: suggest N items per turn
  reflectEvery: 10          // Optional: reflect every N iterations
})

Loop Behavior

  1. Write the task file: Create .ralph/<name>.md with the task content. The tool does NOT create this file—you must write it yourself using the Write tool.
  2. Work on the task and update the file each iteration.
  3. Record verification evidence (commands run, file paths, outputs) in the task file.
  4. Call ralph_done to proceed to the next iteration.
  5. Before outputting <promise>COMPLETE</promise>, run a final verification command that an external monitor can rerun from the same worktree.
  6. Stop when complete or when max iterations is reached (default 50).

Completion Gate

For build/test/refactor tasks, do not mark complete based only on checked checklist items.

Before emitting <promise>COMPLETE</promise>:

  • Preserve any build artifacts, generated files, virtualenvs, or environment setup required by the final verification command.
  • Record the exact final command, working directory, relevant environment variables, and output summary in the task file.
  • Ensure the command can be rerun by a separate monitor in a fresh shell from the same worktree.
  • If a test cannot be rerun externally, mark the item blocked or deferred instead of complete.
  • If cleanup removes required verification artifacts, recreate them or update the final command before completion.

Stale Prompt Guard

Before doing any work from a Ralph prompt, reload .ralph/<name>.state.json. If the loop state says "status": "completed", do not edit files, do not run task commands, and do not call ralph_done. Reply briefly that the stale prompt was ignored because the loop is already completed.

Read the full file on GitHub · 97 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 97 lines · 49 tokens per session scan A 6bb94e1154b4

Subscribe to this mod's changes

pi-ralph-wiggum is a skill published in the GitHub repository tmustier/pi-extensions (476 stars, last pushed 27d ago), licensed MIT. It adds 49 tokens to every session and 897 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

codebase-memory

Use the codebase knowledge graph for structural code queries. Triggers on: explore the codebase, understand the architecture, what functions exist, show me the structure, who calls this function, what does X call, trace the call chain, find callers of, show dependencies, impact analysis, dead code, unused functions…

narumiruna/pi-extensions · 98 tokens

using-pi-subagents

Operate pi-subagents jobs safely, including direct-work decisions, least-privilege tool selection, thinking-level selection, delegation, bidirectional messaging, parallel starts, timeout selection, waiting, cancellation, result handling, verification, and writer isolation.

narumiruna/pi-extensions · 54 tokens

configuring-pi-starship

Configure @narumitw/pi-starship and answer questions about its pi-starship.toml settings. Use when the user asks to create, edit, repair, migrate, or understand pi-starship.toml, or asks which pi-starship module, variable, option, style, palette, preset, or runtime behavior to use. Do not use for generic TOML, shell…

narumiruna/pi-extensions · 98 tokens

surf

Control Chrome browser via CLI for testing, automation, and debugging. Use when the user needs browser automation, screenshots, form filling, page inspection, network/CPU emulation, DevTools streaming, or AI queries via ChatGPT/Gemini/Perplexity/Grok/AI Studio.

w-winter/dot314 · 60 tokens

prose-review

Review prose written for others (e.g., user-facing documentation, prompts for other LLMs, reports, plans, inline comments, docstrings) for local jargon leakage, orphaned references, missing grounding, and audience or genre mismatch. Always run on prose you produce or materially edit, except for routine conversational…

w-winter/dot314 · 84 tokens

text-search

Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.

w-winter/dot314 · 22 tokens