Search the documentation
31 pages for --agent.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
scripting
Claude Developer Platform · in the page
cli-sdks-libraries/cli/scripting
…ent version as flags: ```bash CLI ant beta:agents update --agent-id agent_011CYm1BLqPXpQRk5khsSXrs --version 1 < summarizer.agent.yaml ``` </Tip> </Step> <Step title="Defin…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…--model claude-opus-5 --max-tokens 1024 ... ant beta:agents retrieve --agent-id agent_01... ant beta:sessions:events list --session-id session_01... ``` ### Global flags | Flag…
agent-setup
Claude Developer Platform · in the page
managed-agents/agent-setup
…anguage="cli" label="CLI"> ```bash CLI ant beta:agents update --agent-id "$AGENT_ID" < coding-assistant.agent.yaml ``` <File filename="coding-assistant.agent.yaml"> ```yaml…
budgets
Claude Developer Platform · in the page
managed-agents/budgets
…a string, not a number. SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --budget '{type: limit, max_list_cost: {amount: "125", currency…
DCF Model Rubric
Claude Developer Platform · in the page
managed-agents/define-outcomes
…LI # Create a session SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --title "Financial analysis on Costco" \ --transform id --r…
environments
Claude Developer Platform · in the page
managed-agents/environments
…ent_id" } EOF ) ``` ```bash CLI ant beta:sessions create --agent "$AGENT_ID" --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.create( ag…
files
Claude Developer Platform · in the page
managed-agents/files
…") ``` ```bash CLI SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --transform id --raw-output <<EOF resources: - type: file…
github
Claude Developer Platform · in the page
managed-agents/github
…) ``` ```bash CLI SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --transform id --raw-output <<'EOF' resources: - type: gi…
mcp-connector
Claude Developer Platform · in the page
managed-agents/mcp-connector
…") ``` ```bash CLI SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --vault-id "$VAULT_ID" \ --transform id --raw-output) ```…
migration
Claude Developer Platform · in the page
managed-agents/migration
…runner.agent.yaml) session_id=$(ant beta:sessions create \ --agent "{type: agent, id: $agent_id, version: $agent_version}" \ --environment-id "$environment_id" \ --transform id…
multiagent-orchestration
Claude Developer Platform · in the page
managed-agents/multiagent-orchestration
…<<< "$session") ``` ```bash CLI ant beta:sessions create \ --agent "$COORDINATOR_ID" \ --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.crea…
onboarding
Claude Developer Platform · in the page
managed-agents/onboarding
…ession" }') ``` ```bash CLI ant beta:sessions create \ --agent agent_01J8XkN5uT3vHpLqRfWdY2 \ --environment-id env_01K2mPsT7hNwR4jXuLvCqD8 \ --title "My first session" ```…
quickstart
Claude Developer Platform · in the page
managed-agents/quickstart
…```bash CLI SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --title "Quickstart session" \ --transform id -…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…csv"} } EOF ``` ```bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ANTHROPIC_ENVIRONMENT_ID" \ --metadata '{"input_file": "s3://my-bucket/data.csv"}…
session-operations
Claude Developer Platform · in the page
managed-agents/session-operations
…and emits only the sessions. cursors=$(ant beta:sessions list \ --agent-id "$AGENT_ID" \ --limit 1 \ --format raw \ --transform '{prev_page,next_page}') printf '%s\n' "$cursors"…
sessions
Claude Developer Platform · in the page
managed-agents/sessions
…<<< "$session") ``` ```bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.create(…
skills
Claude Developer Platform · in the page
managed-agents/skills
…) ``` ```bash CLI SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --transform id --raw-output <<'EOF' resources: - type: gi…
vaults
Claude Developer Platform · in the page
managed-agents/vaults
…) ``` ```bash CLI SESSION_ID=$(ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --vault-id "$VAULT_ID" \ --title "Alice's Slack digest" \…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…scope-mcp-servers-to-a-subagent), which cover a session started with `--agent` as well. An in-process teammate ignores the field and loads MCP servers from your project and user settings. ### Permiss…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…a `code-reviewer`, as the session's main agent, combine `--bg` with `--agent`: ```bash theme={null} claude --agent code-reviewer --bg "address review comments on PR 1234" ``` If the name doesn't ma…
Claude Code changelog
Claude Code CLI · in the page
changelog
…Fixed `/compact` and "Summarize from here" in sessions started with `--agent` summarizing under the default system prompt instead of the conversation's own * Fixed a background session showing "ope…
CLI reference
Claude Code CLI · in the page
cli-reference
…round sessions). Pass `--permission-mode`, `--model`, `--effort`, or `--agent` to set [defaults for dispatched sessions](/docs/en/agent-view#permission-mode-model-and-effort). Accepts `--settings`, `-…
Fullscreen rendering
Claude Code CLI · in the page
fullscreen
…or `--disallowed-tools`](/docs/en/cli-reference#cli-flags), and your `--agent`, `--agents`, and `--append-system-prompt` flags Claude Code declines to relaunch if the session has a restriction it can…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…le-or-json>` | | Custom agents | `--agents <json>` | | A plugin | `--plugin-dir <path>`, `--plugin-url <url>`…
Hooks reference
Claude Code CLI · in the page
hooks
…| When running with `--agent` or inside a subagent, two additional fields are included: | Field | Description…
Deploy managed settings
Claude Code CLI · in the page
managed-settings
…| Reject the `--plugin-dir`, `--plugin-url`, `--agents`, and `--mcp-config` flags at startup. In cloud sessions, Claude Code drops the MCP servers the server delivered through…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…file from `~/.claude/agents/`, from managed settings, or passed with `--agents` Apart from Git's `GIT_CONFIG_KEY_<n>` variables, Claude Code removes every variable from your environment whose name ha…
Manage sessions
Claude Code CLI · in the page
sessions
…ur-model) for the resolution order. * Agent: a session started with [`--agent`](/docs/en/sub-agents#invoke-subagents-explicitly) or the `agent` setting continues as that agent, keeping its system prom…
Claude Code settings
Claude Code CLI · in the page
settings
…| (Managed settings only) Reject the `--plugin-dir`, `--plugin-url`, `--agents`, and `--mcp-config` CLI flags at startup, which users could otherwise pass to bypass [`strictKnownMarketplaces`](#strict…
Customize your status line
Claude Code CLI · in the page
statusline
…| Agent name when running with the `--agent` flag or agent settings configured…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…1 (highest) | Deployed via [managed settings](/docs/en/settings) | | `--agents` CLI flag | Current session | 2 | Pass JSON when launching Claude Code | | `.claude/a…