Claude Codeplanningbuilt-in

/goal

Set a persistent goal — Claude keeps working across turns until the condition is met. View, pause, resume, or clear with subcommands.

Syntax

/goal [condition|clear|pause|resume]

Example

/goal all unit tests pass and lint is clean

About

Set a goal: Claude keeps working across turns until the condition is met. With no argument, shows the current or most recently achieved goal. Use /goal clear, /goal stop, /goal pause, or /goal resume to manage the active goal. Goal objectives must be non-empty and at most 4,000 characters.

When to use

  • Long-running tasks like 'make all tests pass'
  • Persistent targets across multiple conversation turns
  • Autonomous coding runs where you want Claude to self-direct toward a condition

More Claude Code commands