Claude Codeparallel-agentsbuilt-in

/background

Detach the current session to run as a background agent and free this terminal. Optionally pass a final instruction before detaching.

Syntax

/background [prompt]

Example

/background finish the migration and open a PR when done

When to use

  • Freeing your terminal while Claude continues a long task
  • Running autonomous work overnight
  • Kicking off a background task and switching to a new session

More Claude Code commands