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 doneWhen 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
parallel-agents
/agents
Manage agent configurations and monitor background agents running in parallel.
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.
session-management
/clear
Start a new conversation with empty context. The previous conversation stays available in /resume. Optionally name the previous conversation.