# Ralph - 모든 PRD 항목이 완료될 때까지 반복 실행되는 자율형 AI 에이전트

> Clean Markdown view of GeekNews topic #26146. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=26146](https://news.hada.io/topic?id=26146)
- GeekNews Markdown: [https://news.hada.io/topic/26146.md](https://news.hada.io/topic/26146.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2026-01-27T09:31:01+09:00
- Updated: 2026-01-27T09:31:01+09:00
- Original source: [github.com/snarktank](https://github.com/snarktank/ralph)
- Points: 18
- Comments: 2

## Summary

**Ralph**는 제품 요구사항 문서(PRD)를 기반으로 코드를 자동 생성·검증·커밋하는 **자율형 AI 개발 루프**를 구현합니다. 각 반복은 새로운 Amp 인스턴스에서 깨끗한 컨텍스트로 시작하며, **실패한 항목만 재처리**해 완성도를 높입니다. 실행 과정에서 축적된 **패턴과 코드 컨벤션**을 학습해 다음 사이클에 반영함으로써, 개발 프로세스 자체가 점진적으로 진화하는 구조를 갖습니다.

## Topic Body

- **제품 요구사항 문서(PRD)** 기반 개발을 자동화하기 위해 설계된 **Autonomous AI 루프 에이전트**  
- **Amp CLI**와 **jq**를 활용해 프로젝트 내에서 자동화된 개발 사이클 수행  
- 각 반복(iteration)은 **새로운 Amp 인스턴스**로 시작하며, **깨끗한 컨텍스트**에서 실행  
  - **git 이력**, **progress.txt**, **prd.json** 을 통해 메모리 저장  
- **PRD → JSON 변환 → 구현 → 검증 → 커밋**의 순환 구조로 동작  
  - 각 PRD 항목은 **하나의 컨텍스트 윈도우 내에서 완결 가능한 크기**로 유지  
  - PRD 항목별로 우선순위를 평가하고, 미완료 항목(`passes: false`)부터 처리  
  - 코드 생성 후 **타입 검사**, **테스트 실행**, **품질 검증**을 자동 수행  
  - 성공 시 커밋 및 상태 갱신, 실패 시 반복 수행  
  - 모든 스토리가 `passes: true` 로 표시되면 `COMPLETE` 출력 후 종료  
  - 반복 실행 후 발견된 **패턴, 주의사항, 코드베이스 컨벤션**을 기록하고, Amp가 이후 실행 시 이를 학습해 **지속적 개선 루프** 형성  
- **[Geoffrey Huntley의 Ralph 패턴](https://ghuntley.com/ralph/)** 을 토대로 구현

## Comments



### Comment 50142

- Author: ragingwind
- Created: 2026-01-28T20:10:43+09:00
- Points: 1

Claude Code Plugin version - claude-code/plugins/ralph-wiggum at main · anthropics/claude-code - https://github.com/anthropics/claude-code/tree/main/plugins/ralph-wiggum

### Comment 49984

- Author: xguru
- Created: 2026-01-27T09:32:02+09:00
- Points: 1

[Amp - 에이전틱 코딩 도구](https://news.hada.io/topic?id=23618)
