Set a goal and Claude Code keeps working until it is met

The new /goal command takes a completion condition and keeps Claude looping across turns until it is true.

Surface
CLI
Department
Engineering
Related links
Share
Claude Code terminal: /goal the tests pass, not yet met, then Goal achieved

Run /goal with a completion condition, like all tests passing, and Claude keeps looping until the condition is met, letting you step away instead of needing to continually instruct Claude. An overlay shows elapsed time, turns, and tokens as it goes.

It works in interactive sessions, with -p, and over Remote Control.

Earlier updates

May 11, 2026
May 7, 2026
May 6, 2026
May 5, 2026
May 4, 2026
All updates