Ralph loops for agentic engineering
23-02-2026
-
RALPH: add ralph.sh, progress.txt
- https://x.com/alxfazio/status/2027473676690665745
- https://traycer.ai/blog/ralph-loops-bart-orchestrates
- https://www.anthropic.com/engineering/building-c-compiler
- https://github.com/mattpocock/ralph-workshop-repo-001/blob/main/plans/afk-claude.sh
- https://github.com/snarktank/ralph/blob/main/ralph.sh
- https://github.com/mattpocock/ai-hero-cli/blob/9ed1a07e036cd2efb22ab5360bff2408488210aa/plans/ralph.sh
-
RALPH: writing a PRD
-
RALP: prd.json (converting from PRD to PRD.json)
-
tasks
- setup workspace
- create git worktree, cd worktree, done, cd project root, remove git worktree
- setup hooks
- pre tool use hooks (gaurds for bash and git and files)
- setup agents
- PLANNER AGENT
- ask user about all requirements; follow conventions, taste, implementation, tests
- use opus, then spawn agent teams using sonnet for implementation
- REVIEWER AGENT
- BUILDER AGENT
- build, test, evaluate, repeat
- PLANNER AGENT
- verification
- common template of requirements to meet (unit, integration, contract, e2e, typecheck)
- add examples for each test category (good vs bad, things to consider)
- common template of requirements to meet (unit, integration, contract, e2e, typecheck)
- setup workspace