CLI commands and flags

--bg

Spawns the agent as a background task and immediately returns control to the shell.

Syntax

--bg

Example

Terminal
claude --bg "investigate the flaky test"

Type to search the reference, templates and lessons.