setup-ralph

setup-ralph is a skill for Claude Code from glittercowboy/taches-cc-resources. It costs 33 tokens per session (975 once invoked), scanned C, original, MIT.

A setup guide for Ralph Wiggum, an autonomous coding method that repeatedly gives an AI agent a task, lets it implement and test the task, and starts the next iteration with fresh context.

In plain words
What is it for?
Use it to create the prompts, plan, scripts, and structure for an autonomous coding loop in a directory. It supports planning, repeated implementation tasks, tests, and commits.
Why use it?
It reduces context buildup during long coding efforts and adds a planned cycle of task selection, implementation, validation, and commits. The loop still requires a suitable project setup and monitoring.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the taches-cc-resources plugin — 12 skills, 19 commands, 3 agents shipped together

Good fit Use it to create the prompts, plan, scripts, and structure for an autonomous coding loop in a directory. It supports planning, repeated implementation tasks, tests, and commits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/glittercowboy/taches-cc-resources/setup-ralph
About the project

TÂCHES Claude Code Resources is a collection of custom commands, skills, and agents that structure Claude Code workflows such as planning, debugging, automation, and subagent creation. It is intended for developers who use Claude Code for real software projects. The catalogue entries are examples of the resources included in the collection.

glittercowboy/taches-cc-resources · 1,976 stars · on GitHub · youtube.com

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 glittercowboy/taches-cc-resources --skill setup-ralph
Clone the repo
git clone --depth 1 https://github.com/glittercowboy/taches-cc-resources

Made for: Claude Code.

Or install taches-cc-resources, the plugin that ships this one along with the rest of its 12 skills, 19 commands, 3 agents.

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 setup-ralph

README.md
[![agentmods](https://agentmods.dev/badge/skills/glittercowboy/taches-cc-resources/setup-ralph/github.svg)](https://agentmods.dev/skills/glittercowboy/taches-cc-resources/setup-ralph)
Your own site
<a href="https://agentmods.dev/skills/glittercowboy/taches-cc-resources/setup-ralph"><img src="https://agentmods.dev/badge/skills/glittercowboy/taches-cc-resources/setup-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 setup-ralph

Your own site · 80×15
<a href="https://agentmods.dev/skills/glittercowboy/taches-cc-resources/setup-ralph"><img src="https://agentmods.dev/badge/skills/glittercowboy/taches-cc-resources/setup-ralph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 975 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00033 $0.00975
Opus 5 $0.00016 $0.00487
Sonnet 5 $0.00007 $0.00195
Haiku 4.5 $0.00003 $0.00097

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

Security

Grade C, and why

setup-ralph scanned grade C 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/loop-docker.sh, templates/loop.sh), 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

**Safety Rules**: PROMPT_build.md includes critical safety rules prohibiting dangerous operations like `rm -rf` on project directories. Tests must run in isolated temp directories.
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/setup-ralph/SKILL.md · 95 lines

How it starts

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

<essential_principles>

What is Ralph?

Ralph is Geoffrey Huntley's autonomous AI coding methodology that uses iterative loops with task selection, execution, and validation. In its purest form, it's a Bash loop:

while :; do cat PROMPT.md | claude ; done

The loop feeds a prompt file to Claude, the agent completes one task, updates the implementation plan, commits changes, then exits. The loop restarts immediately with fresh context.

Core Philosophy

The Ralph Wiggum Technique is deterministically bad in an undeterministic world. Ralph solves context accumulation by starting each iteration with fresh context—the core insight behind Geoffrey's approach.

Three Phases, Two Prompts, One Loop

  1. Planning Phase: Gap analysis (specs vs code) outputs prioritized TODO list—no implementation, no commits
  2. Building Phase: Picks tasks from plan, implements, runs tests (backpressure), commits
  3. Observation Phase: You sit on the loop, not in it—engineer the setup and environment that allows Ralph to succeed

Key Principles

Your Role: Ralph does all the work, including deciding which planned work to implement next and how to implement it. Your job is to engineer the environment.

Backpressure: Create backpressure via tests, typechecks, lints, builds that reject invalid/unacceptable work.

Observation: Watch, especially early on. Prompts evolve through observed failure patterns.

Context Efficiency: With ~176K usable tokens from 200K window, allocating 40-60% to "smart zone" means tight tasks with one task per loop achieves maximum context utilization.

File I/O as State: The plan file persists between isolated loop executions, serving as deterministic shared state—no sophisticated orchestration needed.

Remote Backup: The loop automatically creates a private GitHub repo and pushes after each commit. This protects against accidental data loss from autonomous operations. Requires gh CLI authenticated. Disable with RALPH_BACKUP=false.

Read the full file on GitHub · 95 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. 10d ago First seen · 95 lines · 33 tokens per session scan C e36ac40f67f4

Subscribe to this mod's changes

setup-ralph is a skill published in the GitHub repository glittercowboy/taches-cc-resources (1,976 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 975 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

continual-learning

Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…

langchain-ai/open-swe · 89 tokens

Agentic UX Design - Relationship-Centric Interfaces

Design AI-first interfaces that build ongoing relationships through memory, trust evolution, and collaborative planning, not just isolated screen interactions.

bencium/bencium-marketplace · 33 tokens

claude-code-audit

Forensic audit of the user's recent Claude Code sessions to surface step-change workflow improvements — not marginal ones. Use when the user asks to "audit my Claude Code sessions", "analyze how I use Claude Code", "find patterns in my usage", "improve my Claude Code workflow", "review my sessions", "find leverage in…

petekp/claude-code-setup · 174 tokens

typography

Apply professional typography principles to create readable, hierarchical, and aesthetically refined interfaces. Use when setting type scales, choosing fonts, adjusting spacing, designing text-heavy layouts, implementing dark mode typography, or when asked about readability, font pairing, line height, measure…

petekp/claude-code-setup · 69 tokens

pumpfun

Complete PumpFun Protocol guide for building token launches, bonding curves, and AMM integrations on Solana. Covers Pump Program (token creation, buy/sell on bonding curves), PumpSwap AMM (liquidity pools, swaps), fee structures, creator fees, and SDK integration.

sendaifun/skills · 60 tokens