/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 cleanAbout
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
parallel-agents
/agents
Manage agent configurations and monitor background agents running in parallel.
parallel-agents
/background
Detach the current session to run as a background agent and free this terminal. Optionally pass a final instruction before detaching.
parallel-agents
/batch
Orchestrate large-scale changes across a codebase in parallel. Decomposes work into 5–30 independent units, each in its own git worktree with its own PR.
context-management
/btw
Ask a quick side question without adding it to the main conversation history.