CommandsNew 2026-05
/background
Detaches the current session as a background agent.
Usage
/background
When to use it
When you want to free up the terminal while the work keeps running.
Source: https://code.claude.com/docs/en/commands
Related
agent viewShows all sessions (running, waiting, finished) in one list and lets you send tasks in parallel.Claude CodeFeaturesNew 2026-05Background sessions (claude --bg)Runs a session in the background and lets you attach to it later. It has attach, logs and stop subcommands.Claude CodeFeaturesNew 2026-05←← (agent view)In agent view, sends the current session to the background as an agent.Claude CodeShortcutsNew 2026-05
More Claude Code commands
/helpShows help and the commands you can use.Commands/clearStarts a new conversation with an empty context; if you give it a name, the previous conversation gets that label.Commands/compactSummarizes the conversation to free up context.Commands/contextShows context usage as a colored grid and suggests ways to optimize it.Commands/autocompactSets when automatic compaction kicks in.Commands/configOpens the settings screen, or sets a value directly with key=value.Commands
All Claude Code