promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Claude Code

/goal

Sets a goal: Claude keeps working across multiple turns until the condition is met.

Without an argument, the command shows the current or most recently achieved goal. clear/stop/off/reset/none/cancel remove an active goal early.

โœ… WHEN TO USE IT?

Multi-step task with a clear completion condition

/goal get all tests passing

Stop an active goal early

/goal stop

โ›” WHEN NOT TO?

Recurring standing task

/goal is meant for a goal with a completion condition, not for a check that should keep recurring across sessions.

Better: /loop (e.g. /loop 30m check for new support tickets)

Exploring a fundamentally different direction

Setting a new goal only changes the completion condition, not the approach taken so far.

Better: /branch, to branch off a different approach from this point

SOURCES