# /background Command

> It sends this session to run in the back. Your terminal is free.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** /background, /bg, Background a session

## Think of it like

It is like a cake that bakes in the oven. You go and do other things.

## Definition

/background moves the current session into the background and frees your terminal. Claude keeps working there, with the same chat and the same settings. Pass a prompt to give it one more instruction first. You watch and open background sessions in agent view, which claude agents opens. Alias /bg.

## Example

Emma has asked Claude to update every test file, which will take a while. She types /bg and uses the same terminal to start a new task.

## Example code

```console
/bg run the tests and fix any failures
```

Give one last task, then let it run in the background.

## Why it matters

A long job does not hold your terminal, so one person can keep many tasks going.

## Common mistake

Closing the terminal and thinking that stopped the work. A background session keeps going until you stop it.

## Three principles

- **Moves this chat.** Not a copy.
- **Frees the terminal.** Start something else.
- **Watch in agent view.** claude agents.

## Related terms

- [Background Session](https://learn.benibix.com/term/ai/background-session)
- [/fork Command](https://learn.benibix.com/term/ai/fork-command)
- [/stop Command](https://learn.benibix.com/term/ai/stop-command)
- [/tasks Command](https://learn.benibix.com/term/ai/tasks-command)

## Taught in

- [Background Session Commands](https://learn.benibix.com/learn/ai-claude-code-commands/background-session-commands): Claude Code Commands, 7/17

![Four rows. /branch splits the chat and moves you into the copy. /fork sends a copy to the background and you stay. /subtask sends a helper that brings its answer back. /background moves the whole chat to the background.](https://learn.benibix.com/diagrams/cmd-session-moves.svg)

---

Source: https://learn.benibix.com/term/ai/background-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
