Claude Code /goal
Keeps Claude working until a condition you can verify is true. The built-in version of the Ralph loop, no script needed.
How each pass goes
- You state the end condition (tests pass, a check exits 0, a file exists).
- Claude works, then checks the condition itself.
- If it is not met, it keeps going in the same session.
Stops when
The condition you set is verifiably true.
Command
/goal All tests in npm test pass and npx tsc --noEmit reports no errors