Ralph — clean
ralph-clean resets Ralph's PRD + task queue + progress log to start a fresh phase or batch. Preserves the ## Codebase Patterns section of the progress log — those learnings carry over.
Files reset
| File | Reset to |
|---|---|
docs/next-ralph-tasks.md | Empty template with "Future Tasks" header |
scripts/ralph/prd.json | Empty PRD shell (default ralphInstructions, empty userStories) |
scripts/ralph/progress.txt | Clean progress log (preserved ## Codebase Patterns section migrated over) |
Flow
- Extract the
## Codebase Patternssection from the currentprogress.txt - Reset all three files to their templates
- Re-insert the preserved patterns
- Confirm what was cleaned
When to use
- Starting a new batch of tasks
- Clearing out completed work
- Need a fresh slate after a chaotic run
Related
- Ralph — task — add tasks to the new queue
- Ralph — deploy — turn queued tasks into prd.json
- Ralph — archive — preserve old artefacts before cleaning