How It Works
Each iteration, Ralph will:
- Pick the first incomplete task in
.agent/tasks.jsonwhose dependencies pass (array order = priority) - Check the prerequisites the task needs in
.agent/prd/PREREQUISITES.md - Work through the task steps defined in
.agent/tasks/TASK-{ID}.json - Smoke test every task: UI changes with agent-browser (falling back to the Playwright MCP, then a throwaway Playwright script), with a clean console and a screenshot; CLIs and APIs by running or curling them. UI tasks also get a happy-path Playwright e2e spec
- Run tests, linting, and type checking
- Update task status, log progress and commit changes
- Repeat until all tasks pass or max iterations reached
If the app can’t be smoke tested for environmental reasons (no smoke option can open it, or the dev server or port is unreachable because of missing system deps, a port conflict or the sandbox network), Ralph outputs BLOCKED and doesn’t mark the task done. A dev server that fails on a code error, or an app that loads but is broken, is a bug that Ralph fixes.