/background

Detaches the current session to run as a background agent.

What /background does

Detaches the current session, allowing it to run as a background agent and freeing up your terminal. You can send one final instruction before detaching. Use `claude agents` to monitor the background session.

Syntax

/background

Quick drill

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

  1. Which command detaches the current session to run as a background agent?

    • Terminates the current session.
    • Forks the session into a new one.
    • Lists all active background agents.
    • Detaches session to run in background.
    Show answer

    /background: Detaches session to run in background.

  2. Which command orchestrates large-scale codebase changes in parallel using subagents?

    • Generates a project migration plan.
    • Orchestrates large-scale code changes.
    • Reverts all recent codebase changes.
    • Runs tests across the entire codebase.
    Show answer

    /batch: Orchestrates large-scale code changes.

  3. Which command creates a branch of the current conversation to explore different directions?

    • Deletes the current conversation.
    • Merges conversation branches.
    • Resumes a previous conversation.
    • Creates a conversation branch.
    Show answer

    /branch: Creates a conversation branch.

Drill all 112 commands in /cards

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