quickstart changedmanaged-agents/quickstart
Nearest release: v2.1.301, published 5 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+35added
Lines−39removed
From line
146
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits35to this page, all time
The whole hunk
from line 146, old and new numbered
/
from line 146
146146 -H "anthropic-version: 2023-06-01" \
147147 -H "anthropic-beta: managed-agents-2026-04-01" \
148148 -H "content-type: application/json" \
149 -d @- <<'EOF'
150 {
151 "name": "Coding Assistant",
152 "model": "claude-opus-5-5",
153 "system": "You are a helpful coding assistant. Write clean, well-documented code.",
154 "tools": [
155 {"type": "agent_toolset_20260401"}
156 ]
157 }
158 EOF
149 -d '{
150 "name": "Coding Assistant",
151 "model": "claude-opus-5-5",
152 "system": "You are a helpful coding assistant. Write clean, well-documented code.",
153 "tools": [
154 {"type": "agent_toolset_20260401"}
155 ]
156 }'
159157 )
160158
161159 AGENT_ID=$(jq -er '.id' <<<"$agent")
from line 383
385383 -H "anthropic-version: 2023-06-01" \
386384 -H "anthropic-beta: managed-agents-2026-04-01" \
387385 -H "content-type: application/json" \
388 -d @- <<'EOF'
389 {
390 "name": "quickstart-env",
391 "config": {
392 "type": "cloud",
393 "networking": {"type": "limited", "allow_package_managers": true}
394 }
395 }
396 EOF
386 -d '{
387 "name": "quickstart-env",
388 "config": {
389 "type": "cloud",
390 "networking": {"type": "limited", "allow_package_managers": true}
391 }
392 }'
397393 )
398394
399395 ENVIRONMENT_ID=$(jq -er '.id' <<<"$environment")
from line 541
545541 </CodeGroup>
546542
547543 <Tip>
548 To run the sandbox on your own infrastructure instead of a cloud sandbox, see
544 This quickstart uses a cloud environment. To decide whether to run tools on your own infrastructure with a
549545
550 [Self-hosted sandboxes](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes)
546 [self-hosted sandbox](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes)
551547
548 instead, see
549
550 [Choosing an agent environment](https://platform.claude.com/docs/en/managed-agents/choosing-an-environment)
551
552552 .
553553 </Tip>
554554 </Step>
from line 564
564564 -H "anthropic-version: 2023-06-01" \
565565 -H "anthropic-beta: managed-agents-2026-04-01" \
566566 -H "content-type: application/json" \
567 -d @- <<EOF
568 {
569 "agent": "$AGENT_ID",
570 "environment_id": "$ENVIRONMENT_ID",
571 "title": "Quickstart session"
572 }
573 EOF
567 -d '{
568 "agent": "'"$AGENT_ID"'",
569 "environment_id": "'"$ENVIRONMENT_ID"'",
570 "title": "Quickstart session"
571 }'
574572 )
575573
576574 SESSION_ID=$(jq -er '.id' <<<"$session")
from line 665
667665 <Step title="Send a message and stream the response">
668666 Open a stream, send a user event, then process events as they arrive:
669667
670 <CodeGroup>
671 ```bash cURL
672 # This workflow does not translate well to a one-off shell command.
673 # Use one of the SDK examples in this code group instead.
674 ```
668 <CodeGroup exclude="shell">
669 <CodeGroupItem language="cURL">
670 This workflow needs more logic than a single shell command. Use the [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) to run it.
671 </CodeGroupItem>
675672
676 ```bash CLI
677 # This workflow does not translate well to a one-off shell command.
678 # Use one of the SDK examples in this code group instead.
679 ```
673 <CodeGroupItem language="CLI">
674 This workflow needs more logic than a single shell command. Use the [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) to run it.
675 </CodeGroupItem>
680676
681677 ```python Python
682678 with client.beta.sessions.events.stream(session.id) as stream:
No line in this hunk matches that.