setup-ralph
Skill2k starsChanged 12 months agoMITView on GitHub
Set up and configure Geoffrey Huntley's original Ralph Wiggum autonomous coding loop in any directory with proper structure, prompts, and backpressure.
- Deletes or force-pushes
Trending
More talk lately.thin dataabout the whole repository
Who's talking about glittercowboy/taches-cc-resources
- sudosubin/agents.nix“claude-code-plugins.github.glittercowboy.taches-cc-resources: init at 0-unstable-2026-04-01”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.glittercowboy.taches-cc-resources: init at 0-unstable-2026-04-01”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.glittercowboy.taches-cc-resources: init at 0-unstable-2026-04-01”GitHub · Sep 27, 2026
- hesreallyhim/awesome-claude-code“Add resource: TÂCHES Claude Code Resources”GitHub · Dec 21, 2025
- hesreallyhim/awesome-claude-code“[Resource]: taches-cc-resources”GitHub · Dec 21, 2025
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository11 other files it gives its agents.
- create-agent-skillsSkill
- create-hooksSkill
- create-mcp-serversSkill
- create-meta-promptsSkill
- create-plansSkill
- create-slash-commandsSkill
- create-subagentsSkill
- debug-like-expertSkill
- build-iphone-appsSkill
- build-macos-appsSkill
- the-pirate-baySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Backpressure: Create backpressure via tests, typechecks, lints, builds that reject invalid/unacceptable work.
- Distinctive: line 52
Wait for response before proceeding.
- Distinctive: line 64
After reading the workflow, follow it exactly.
- Distinctive: line 92
All required references loaded by workflow
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<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 ; doneThe 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
- Planning Phase: Gap analysis (specs vs code) outputs prioritized TODO list—no implementation, no commits
- Building Phase: Picks tasks from plan, implements, runs tests (backpressure), commits
- 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.
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.
</essential_principles>
<intake>
What would you like to do?- Set up a new Ralph loop - Initialize Ralph structure in a directory
- Understand Ralph concepts - Learn about the technique and how it works
- Customize existing loop - Modify prompts or configuration
- Troubleshoot Ralph - Debug loop issues or improve performance
Wait for response before proceeding.
</intake>
<routing>
| Response | Workflow |
|----------|----------|
| 1, "set up", "setup", "new", "initialize", "create" | `workflows/setup-new-loop.md` |
| 2, "understand", "learn", "concepts", "explain", "how" | `workflows/understand-ralph.md` |
| 3, "customize", "modify", "change", "update", "edit" | `workflows/customize-loop.md` |
| 4, "troubleshoot", "debug", "fix", "problem", "issue" | `workflows/troubleshoot-loop.md` |
| Other | Clarify intent, then select appropriate workflow |After reading the workflow, follow it exactly.
</routing>
<reference_index>
Domain Knowledge
All in references/:
Core Concepts: ralph-fundamentals.md - Three phases, two prompts, one loop Structure: project-structure.md - Required files and directory layout Prompts: prompt-design.md - Planning vs building mode instructions Backpressure: validation-strategy.md - Tests, lints, builds as steering Best Practices: operational-learnings.md - AGENTS.md guidance and evolution </reference_index>
<workflows_index>
| Workflow | Purpose |
| setup-new-loop.md | Initialize Ralph structure in a directory |
| understand-ralph.md | Learn Ralph concepts and philosophy |
| customize-loop.md | Modify prompts or loop configuration |
| troubleshoot-loop.md | Debug loop issues and improve performance |
| </workflows_index> |
<success_criteria> Skill is successful when:
- User understands which workflow they need
- Appropriate workflow loaded based on intent
- All required references loaded by workflow
- User can set up and run Ralph loops independently </success_criteria>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

