The /goal command tells Claude Code to keep working until it judges a specified condition met. It is useful for a long task in an active session where Claude already has relevant project context. section 5.10
Set a goal and a test gate
After discussing an authentication MVP, the prompt was: “go for it /goal get the mvp working and tested with unit and integration tests”. Claude Code’s evaluator checks progress and can prompt another turn if it judges the goal incomplete. Ambiguous goals can consume more turns and tokens; add a limit such as “don’t go beyond 10 turns” and review the results. section 5.10
