Overview
snarktank/ralph is the most-starred implementation of the ralph-loop pattern, with 21,235 GitHub stars as of August 2026 (RonanCodes docs cited 15,861 in an earlier count, indicating rapid growth). Created by Ryan Carson (Snarktank), it runs AI coding tools (Amp or Claude Code) repeatedly until all PRD items are complete. Each iteration spawns a fresh AI instance with clean context. Memory persists via git history, progress.txt, and prd.json [S01][S04].
Key Facts
- Stars: 21,235+ (GitHub, August 2026)
- Forks: 2,056
- License: MIT
- Authors: Ryan Carson (Snarktank)
- Key files:
ralph.sh(main loop script),prd.json(user stories),progress.txt(learnings),prompt.md(system prompt) - Parallel execution: Ryan Carson runs 3 parallel instances
- Architecture: Agent reads PRD -> implements one feature -> verifies -> commits -> updates PRD -> repeats
Key Contributions
Each Iteration = Fresh Context
Each iteration spawns a new AI instance with clean context. The only memory between iterations is: git history (commits from previous iterations), progress.txt (learnings and context), and prd.json (which stories are done) [S01]. This design enables handling projects that would exceed any single context window.
Small Tasks and Backpressure
Each PRD item should be small enough to complete in one context window. If a task is too big, the LLM runs out of context before finishing and produces poor code [S01]. Ralph only works if there are feedback loops: typecheck catches type errors, tests verify behavior, CI must stay green [S01].
AGENTS.md as Inter-Iteration Memory
After each iteration, Ralph updates relevant AGENTS.md files with learnings. This is critical because AI coding tools automatically read these files, so future iterations (and future human developers) benefit from discovered patterns, gotchas, and conventions [S01].
Limitations
Context Window Burn
While each iteration gets fresh context, cumulative token cost across many iterations (often 15-50 for complex tasks) can become significant. Matt Pocock’s analysis estimates $30-60 for an MVP via Ralph vs. $50-100 without [S01].
Quality Depends on Criteria
If completion criteria are vague (“tests pass”), the agent may write trivial tests (assert True). Criteria must specify both quantity and quality metrics to prevent gaming [S15].
Relationship to This Vault
The vault’s orphaned ralph-converter skill was designed to bridge markdown PRDs to the snarktank/ralph prd.json format. RonanCodes/llm-wiki ronancodes-llm-wiki documentation explicitly states their LLM Wiki implementation was built using this pattern.
Implications
This vault is structurally identical to the RonanCodes implementation (Claude Code + Obsidian + markdown + raw sources + AGENTS.md schema). The snarktank/ralph approach provides a proven model for running the agent-loop pattern with external verification and fresh contexts. For llm-wiki operations specifically, the pattern enables per-source ingest with machine-verifiable lint passes.
Recent Updates (2026-10-12)
As of 2026-10-12, the repository reports 21,943 stars and 2,096 forks; last push 2026-02-02; 74 open issues. Recent commits: “fix(skill): enfore options indentation in prd SKILL.md (#64)” (2026-02-02); “feat: add Claude Code marketplace support (#9)” (2026-01-29); “Add MIT License” (2026-01-23); “Merge pull request #2 from denen99/main” (2026-01-20); “updated CLAUDE.md” (2026-01-16). 1
Star movement, as dated positions. The page’s existing figures stay put and the new one joins them rather than replacing them: 15,861 in the RonanCodes documentation originally cited, 21,235 as of August 2026 (page’s own figure, captured 2026-08-11), 21,943 at the 2026-10-12 capture — about +708 stars and +40 forks across roughly two months. That is a mild drift for a project the page describes as the fastest-growing ralph-loop implementation, and it must be read against the push date below rather than on its own.
Upstream dormancy — recorded honestly. This repository had not been pushed to since 2026-02-02, which is roughly eight months of inactivity at snapshot time and the longest dormancy of any github-backed page in this refresh. The page itself was last touched 2026-08-11, so both the stated metrics and the recent-history claims describe a project that has since been quiet. The practical consequence: the numbers above are carried by releases, marketplace listings and ecosystem attention from before February, not by active development, and a reader should treat “the most-starred implementation” as a stock-position claim rather than a current-momentum claim.
One forward-relevant signal in the commit list. Claude Code marketplace support (#9, 2026-01-29) landed before the repository went silent, so distribution through the Claude Code plugin channel was already available at the time this page was written — the pattern the rest of the ecosystem has since generalized (see superpowers, which now ships its own marketplace). The most recent commit, a skill-file indentation fix in the prd skill (#64, 2026-02-02), is consistent with the page’s description of the shipped artifacts (ralph.sh, prd.json, progress.txt, prompt.md) rather than contradicting it. No evidence here changes the page’s lifecycle standing: a second dated source is added, but the snapshot is metadata-only and carries none of the independent implementation or adoption analysis an l2 promotion requires. 2
External Links
- https://github.com/snarktank/ralph
- https://ronancodes.github.io/llm-wiki/docs/research/ralph-loop
- https://blakecrosley.com/blog/ralph-agent-architecture
Sources
- agent-loop — abstract pattern specialized by this implementation
- llm-wiki — parallel application to knowledge compilation
- ralph-loop — full technique documentation
- claude-code — the agent tool most commonly used