My First Run with Ralph: Shipping a Feature Using an Autonomous AI Coding Loop
I ran Ralph for the first time and shipped a feature last night, and yeah, I love it. If you’ve been hearing the buzz, Ralph is an autonomous AI coding loop that ships features while you sleep. Created by @GeoffreyHuntley, it runs an agent (AmpCode or your choice) repeatedly until tasks are done, keeping each iteration small so Threads don’t explode.
How it works, in plain terms: you run a bash loop that pipes a prompt into your agent. The agent picks the next story from prd.json, implements it, runs typecheck and tests, commits if everything passes, marks the story done, and logs learnings. Repeat until done. Memory sticks only through git commits, progress.txt (learnings), and prd.json (task status). Small, simple, and surprisingly resilient.
Key files you’ll care about:
- ralph.sh — the loop (make executable).
- prompt.md — instructions for each iteration.
- prd.json — your task list (branchName, priority, passes).
- progress.txt — session memory that Ralph appends to.
Critical success factors: keep stories tiny (fit one context window), provide tight feedback loops (npm run typecheck, npm test), and give explicit success criteria. Learnings compound: by story 10, Ralph knows patterns from stories 1–9, and it updates AGENTS.md when it finds reusable patterns.
Common gotchas include idempotent migrations, interactive prompts, and schema changes (you’ll need to check server actions, UI, and API routes). For UI work, use the dev-browser skill and verify with a screenshot.
Real results from an evaluation: 13 user stories, about 15 iterations, 2–5 minutes each, roughly an hour total. Pretty wild, right?
If you want to see the original announcement and discussion, check this link: https://x.com/ryancarson/status/2008548371712135632?s=52
It’s not for exploratory work or security-critical changes, but for incremental feature work it’s a game changer. I’m excited to keep using it, and I think you will be too (with a bit of careful setup).



Kommentar abschicken