Cmd. /background
Detach the current session as a background agent (/bg).
Key takeaways
- Detach the current session as a background agent (
/bg). - Check the input surface and availability before using the examples below.
Purpose
Detach the current session as a background agent (/bg).
/background [prompt]Availability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | /bg |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Claude Code 2.1.278 |
The installed command menu and account or organization settings determine availability.
Examples
/backgroundEffects and persistence
The session keeps running in the background and releases the terminal. Monitor it with claude agents.
Cautions
Detaching keeps work running. Use Agent View to inspect it; leaving the terminal does not stop the agent.