from line 361
361361
362362You can dispatch new background sessions from agent view, send or copy an existing interactive session to the background, or start one directly from the shell.
363363
364### From agent view
364<span id="from-agent-view" />
365365
366### Dispatch an agent from agent view
367
366368Type a prompt in the input at the bottom of agent view and press `Enter` to start a new background session. The session is named automatically from the prompt; rename it later with `Ctrl+R`.
367369
368370The automatic name is a short label written by a [Haiku-class model](/docs/en/model-config). A name the session gets later also appears on its row, including the [generated title](/docs/en/sessions#name-your-sessions) the session gets when you [accept a plan](/docs/en/permission-modes#review-and-approve-a-plan) in that session.
from line 414
412414
413415When agent view is grouped by directory, dispatching sends the prompt to the selected row's directory, so you can select a group and dispatch into it without retyping the path.
414416
415### From inside a session
417<span id="from-inside-a-session" />
416418
419### Send or copy a session to the background
420
417421Two commands move work from the session you're in to the background: `/background` sends the current conversation there and frees your terminal, and `/fork` sends a copy while you keep working where you are.
418422
419423#### Send the session to the background
from line 473
469473
470474Directories you added during the session with [`/add-dir`](/docs/en/permissions#additional-directories-grant-file-access-not-configuration) also carry through. Carrying `--allow-dangerously-skip-permissions` keeps `bypassPermissions` reachable in the backgrounded session, but it doesn't grant anything new: the mode still requires the one-time interactive acceptance described in [Permission mode, model, and effort](#permission-mode-model-and-effort).
471475
472### From your shell
476<span id="from-your-shell" />
477
478### Dispatch an agent from your shell
473479
474480Pass `--bg` or its long form `--background` to start a session that goes straight to the background:
475481
No line in this hunk matches that.