/fork

Copies the current conversation to a new background session.

What /fork does

This command copies the current conversation into a new background session, allowing you to continue working in the original session. If a prompt is provided, the copied session starts working immediately; otherwise, it waits for its first prompt.

Syntax

/fork

Now an alias for /branch.

Quick drill

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

  1. Which command copies the current conversation into a new background session, allowing you to continue working in the original?

    • Creates a new Git branch
    • Duplicates the current project folder
    • Starts a new, empty Claude session
    • Copies conversation to a new background session
    Show answer

    /fork: Copies conversation to a new background session

  2. 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

  3. 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

Drill all 112 commands in /cards

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