/goal

Sets a persistent goal for Claude to work towards across turns.

What /goal does

This command sets a persistent goal for Claude. Claude will continue working across multiple turns until the specified condition is met or the goal is cleared. Running it without arguments shows the current or most recently achieved goal.

Syntax

/goal

Resuming a session from the `claude --resume` picker now restores its active goal.

Quick drill

Three cards from the /cards deck. Open each to check your answer.

  1. Which command sets a persistent goal for Claude to work towards across multiple turns?

    • Prioritizes a specific task
    • Creates a new project milestone
    • Sets a persistent goal for Claude
    • Displays your daily task list
    Show answer

    /goal: Sets a persistent goal for Claude

  2. Which command writes a JavaScript heap snapshot and memory breakdown to your desktop for diagnosing high memory usage?

    • Optimizes JavaScript code performance
    • Writes a JavaScript heap snapshot
    • Clears the application's memory cache
    • Analyzes code for memory leaks
    Show answer

    /heapdump: Writes a JavaScript heap snapshot

  3. Which command shows help information and lists all available commands?

    • Shows help and available commands
    • Opens the Claude Code documentation
    • Provides usage examples for a command
    • Suggests commands based on context
    Show answer

    /help: Shows help and available commands

Drill all 112 commands in /cards

Spaced repetition so the right command comes to mind in your terminal.