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

FileReset to
docs/next-ralph-tasks.mdEmpty template with "Future Tasks" header
scripts/ralph/prd.jsonEmpty PRD shell (default ralphInstructions, empty userStories)
scripts/ralph/progress.txtClean progress log (preserved ## Codebase Patterns section migrated over)

Flow

  1. Extract the ## Codebase Patterns section from the current progress.txt
  2. Reset all three files to their templates
  3. Re-insert the preserved patterns
  4. 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