Skip to content

Command reference

--exec<command>

Runs a shell command as a PTY-backed background job instead of starting a Claude session.

FlagsSession and conversationcurrent

What the documentation does not say

The job is PTY-backed, so a test runner or a build prints exactly as it would in your terminal, colors included, and agent view lists it beside the sessions.

Arguments
<command>