37 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
…nments/cloud.yaml`. ```bash ant beta:sessions create \ --agent agent_011CYm1BLqPXpQRk5khsSXrs \ --environment-id env_01595EKxaaTTGwwY3kyXdtbs \ --title "Summarization task"…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…-model claude-opus-5-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
…ews code." }' ``` ```bash CLI ant beta:agents update \ --agent-id "$AGENT_ID" \ --description "Writes and reviews code." ``` ```python Python unconditional_agent = client.bet…
budgets
Claude Developer Platform · in the page
managed-agents/budgets
…t is sent as a string, not a number. 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
…```bash CLI # Create a session ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --title "Financial analysis on Costco" # Define the outcome:…
environments
Claude Developer Platform · in the page
managed-agents/environments
…IRONMENT_ID"'" }' ``` ```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 ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" <<EOF resources: - type: file file_id: $FILE_ID mou…
github
Claude Developer Platform · in the page
managed-agents/github
…] } JSON ``` ```bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" <<'EOF' resources: - type: github_repository url: https:/…
mcp-connector
Claude Developer Platform · in the page
managed-agents/mcp-connector
…t_id"'"] }' ``` ```bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --vault-id "$VAULT_ID" ``` ```python Python session = cl…
multiagent-orchestration
Claude Developer Platform · in the page
managed-agents/multiagent-orchestration
…NT_ID"'" }' ``` ```bash CLI ant beta:sessions create \ --agent "$LEAD_AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.creat…
onboarding
Claude Developer Platform · in the page
managed-agents/onboarding
…session" }' ``` ```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 ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --title "Quickstart session" ``` ```python…
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"}…
self-hosted-sandboxes-workers
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-workers
…ta.csv"} }' ``` ```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
…auto-paginates and emits only the sessions. ant beta:sessions list --agent-id "$AGENT_ID" --limit 1 --format raw # Pass next_page back as --page to fetch the next page, or prev_page to go back.…
sessions
Claude Developer Platform · in the page
managed-agents/sessions
…IRONMENT_ID"'" }' ``` ```bash CLI ant beta:sessions create --agent "$AGENT_ID" --environment-id "$ENVIRONMENT_ID" ``` ```python Python session = client.beta.sessions.create( ag…
skills
Claude Developer Platform · in the page
managed-agents/skills
…] } JSON ``` ```bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" <<'EOF' resources: - type: github_repository url: https:/…
vaults
Claude Developer Platform · in the page
managed-agents/vaults
…r Alice" }' ``` ```bash CLI ant beta:sessions create \ --agent "$AGENT_ID" \ --environment-id "$ENVIRONMENT_ID" \ --vault-id "$VAULT_ID" \ --title "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. When Claude…
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
…gateway mode * Added `autoCompactWindow` to subagent frontmatter and `--agents` definitions, so a subagent can auto-compact earlier than the main conversation's window * Added `CLAUDE_CODE_WORKFLOW_SU…
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`, `-…
Error reference
Claude Code CLI · in the page
errors
…the-json-schema-value-is-not-a-valid-json-schema) | | `Error: Invalid --agents configuration:` | [Command-line errors](#invalid-agents-configuration) | | `Error: --agents takes a JSON object, or a fil…
Fullscreen rendering
Claude Code CLI · in the page
fullscreen
…or `--disallowed-tools`](/docs/en/cli-reference#cli-flags), and your `--agent`, `--agents`, `--append-system-prompt`, and `--system-prompt-snapshot` flags * A `--chrome` or `--no-chrome` flag you laun…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…[Custom agents](/docs/en/sub-agents.md#choose-the-subagent-scope) | `--agents <file-or-json>` | | A plugin | `--plugin-dir <path>`, `--plugin-url <url>` | Bare mode also limits what happens while th…
Hooks reference
Claude Code CLI · in the page
hooks
…n/agent-teams.md#choose-a-display-mode), or the agent you chose with `--agent`: | Field | Description | | :- | :- | | `agent_id` | Unique identifier for the subagent or in-process teammate the hook f…
Deploy managed settings
Claude Code CLI · in the page
managed-settings
…e#disablesideloadflags) | Reject the `--plugin-dir`, `--plugin-url`, `--agents`, and `--mcp-config` flags at startup. In cloud sessions, Claude Code instead starts the session and drops the server-del…
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 lo…
Manage mods for your organization
Claude Code CLI · in the page
plugins/mods/admin
…laude writes during a session from loading. The setting also rejects `--agents` and `--mcp-config`. Read [`disableSideloadFlags`](/docs/en/settings-reference#disablesideloadflags) before you set it.…
Manage Claude Code plugins for your organization
Claude Code CLI · in the page
plugins/org
…| | `disableSideloadFlags` | Rejects `--plugin-dir`, `--plugin-url`, `--agents`, the Agent SDK `plugins` option, and non-SDK `--mcp-config` at startup, and rejects folders named in the [`CLAUDE_CODE_P…
Troubleshoot plugins
Claude Code CLI · in the page
plugins/troubleshooting
…adFlags)` You started `claude` with `--plugin-dir`, `--plugin-url`, `--agents`, or `--mcp-config`. Claude Code exited with this message and `Plugins, custom agents, and MCP servers can only be loaded…
Manage sessions
Claude Code CLI · in the page
sessions
…odel-config.md#setting-your-model). * Agent: a session started with [`--agent`](/docs/en/sub-agents#invoke-subagents-explicitly) or the `agent` setting continues as that agent, keeping its tool restri…
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…
All settings
Claude Code CLI · in the page
settings-reference
…e it when you run a custom agent with its own prompt, selected with [`--agent`](/docs/en/sub-agents#invoke-subagents-explicitly) or the [`agent`](#agent) setting. Outside [bare mode](/docs/en/headless…
Customize your status line
Claude Code CLI · in the page
statusline
…mode) is enabled | | `agent.name` | Agent name when running with the `--agent` flag or agent settings configured | | `pr.number`, `pr.url` | Open pull request for the current branch. Mirrors the PR ba…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…highest) | Deployed via [managed settings](/docs/en/settings.md) | | `--agents` CLI flag | Current session | 2 | Pass JSON when launching Claude Code | | `.claude/agents/` | Current project | 3 | Ask…
Tools reference
Claude Code CLI · in the page
tools-reference
…or the whole session when it runs as the main session agent through [`--agent`](/docs/en/sub-agents#invoke-subagents-explicitly) or the `agent` setting. Glob supports standard glob syntax including `…