CLI commands and flags

--agents

Passes custom subagent specifications dynamically using raw JSON or a JSON file path.

Syntax

--agents

Example

Terminal
claude --agents '{"reviewer":{"description":"Reviews code","prompt":"You are a code reviewer"}}'

Type to search the reference, templates and lessons.