# snarktank/ralph

Ralph is an autonomous AI agent loop that runs repeatedly until all PRD items are complete.

Repository: https://github.com/snarktank/ralph
Canonical: https://ross.abutalabs.com/products/ralph
Homepage: https://x.com/ryancarson/status/2008548371712135632
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-02-02T01:46:21+00:00

## Health v2 (maintenance only)
Score: 45/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 65, release rhythm 35, longevity 17
- inputs: {"age_days": 238, "days_push": 213, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 21627, forks 2085 (observed 2026-08-28T04:11:31.887608+00:00)

## What it is
Ralph is an autonomous AI agent loop that repeatedly runs AI coding tools like Amp or Claude Code until all items in a product requirements document (PRD) are complete. Each iteration starts with a fresh context, with memory persisted through git history, progress.txt, and prd.json.

## Use cases
- run an AI coding agent autonomously until my PRD is done
- automate implementing user stories with Claude Code
- loop an AI coding tool with fresh context each iteration
- generate PRDs and convert them to JSON for autonomous execution
- let an AI agent work through a backlog of features unattended
- orchestrate Amp or Claude Code in a repeatable loop

## When to choose
- you already use Amp or Claude Code and want autonomous multi-iteration execution
- you work PRD-driven and want tasks tracked in prd.json with git-based memory
- you want a simple shell-based loop rather than a heavy agent framework

## When to avoid
- you need a general-purpose agent framework with custom tooling and APIs
- you don't use Amp or Claude Code as your coding assistant
- you want fine-grained human review at every step rather than autonomous loops

## Facets
- artifact type: cli-tool
- maturity: active
- function: agent-framework, workflow-automation, developer-tools, cli
- domain: developer-tools, large-language-models
- platform: cli
- tags: ai-coding-agent, autonomous-loop, prd-driven-development, claude-code, amp, bash-script, agentic-coding, ai-agents, automation, macos, linux, nodejs

## Member repositories
- snarktank/ralph (main) score 45

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:31.887608+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:57:51.288339+00:00, confidence not recorded.
  - readme: https://github.com/snarktank/ralph (fetched 2026-08-28T04:11:31.887608+00:00, sha 0d675a6f0640)
- Data as of 2026-08-30T08:39:29.467469+00:00.
