← marketplace
engineersconceptsha:a62557c2fc537d98manual
ralph-loop
Use when you want Geoffrey Huntley's 'while true' autonomous agent loop — a monolithic single-process pattern that throws tokens at a goal until the codebase converges.
Install confidence
curl --create-dirs -fsSL https://skillmake.xyz/i/ralph-loop -o ~/.claude/skills/ralph-loop/SKILL.md
Pinned content
sha:a62557c2fc537d98
Generated with
manual
Source
ghuntley.com
The file served at /api/marketplace/ralph-loop-a62557c2/raw matches this hash. Inspect before install, then copy the command.
3,165 chars · ~791 tokens
--- name: ralph-loop description: "Use when you want Geoffrey Huntley's 'while true' autonomous agent loop — a monolithic single-process pattern that throws tokens at a goal until the codebase converges." source: https://ghuntley.com/loop/ generated: 2026-05-17T04:18:32.039Z category: concept audience: engineers --- ## When to use - You have a clear PRD-style goal and want the agent to iterate toward it unattended - You want one task per loop, one repo, one process — instead of microservice agent swarms - Building self-healing systems where the agent identifies, fixes, and verifies issues automatically - You're ready to 'watch the loop' manually before letting it run continuously - Treating software as clay on a pottery wheel rather than brick-by-brick Jenga - You want a pattern that scales by spending more LLM tokens, not more architecture ## Key concepts ### Monolithic single-process design Huntley states: 'Ralph is monolithic. Ralph works autonomously in a single repository as a single process that performs one task per loop.' This deliberately avoids the non-deterministic complexity of microservice or multi-agent architectures. ### One task per loop iteration Each iteration tackles exactly one task drawn from the backing specifications array. The loop body is small — Huntley describes it as '300 lines of code running in a loop with LLM tokens' — and the work compounds across iterations. ### Pottery wheel vs Jenga The architectural metaphor: instead of building vertically brick-by-brick (Jenga, where one bad block topples everything), treat the codebase as clay on a pottery wheel that you continuously shape across loop iterations. ### Backing specifications array You allocate an array of required specifications and define a single goal, then loop the goal. The array drives what 'done' looks like; the loop drives convergence toward it. ### Manual observation before automation Engineers should run the loop manually first — pausing with CTRL+C between iterations — to understand failure domains before letting it run unattended. 'Watch the loop' is explicit guidance, not optional. ### Token-throwing as a strategy 'You just keep throwing tokens at the loop.' The pattern bets on LLM capability and continuous iteration over upfront cleverness — convergence comes from cycles, not from a perfect first pass. ## Gotchas - Huntley explicitly cautions: 'don't use it if your name is not Geoffrey Huntley' — the pattern demands maturity with autonomous agents - No formal convergence guarantees — the loop can churn forever on goals that aren't well-specified - Requires continuous supervision at first; the 'watch the loop' phase is mandatory before automation - The essay gives no explicit cost controls or safety guardrails — runaway token spend is on you - Monolithic single-process design is a feature, not a limitation; resist the urge to fan out into microservice agents - Without a tight backing specifications array, 'one task per loop' degenerates into aimless tinkering --- Generated by SkillMake from https://ghuntley.com/loop/ on 2026-05-17T04:18:32.039Z. Verify against source before relying on details.
File: ~/.claude/skills/ralph-loop/SKILL.md