sessions changedmanaged-agents/sessions
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+56added
Lines−72removed
From line
23
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits18to this page, all time
The whole hunk
from line 23, old and new numbered
/
from line 23
2323 -H "anthropic-version: 2023-06-01" \
2424 -H "anthropic-beta: managed-agents-2026-04-01" \
2525 -H "content-type: application/json" \
26 -d @- <<EOF
27 {
28 "agent": "$AGENT_ID",
29 "environment_id": "$ENVIRONMENT_ID"
30 }
31 EOF
26 -d '{
27 "agent": "'"$AGENT_ID"'",
28 "environment_id": "'"$ENVIRONMENT_ID"'"
29 }'
3230 ```
3331
3432 ```bash CLI
from line 100
102100 -H "anthropic-version: 2023-06-01" \
103101 -H "anthropic-beta: managed-agents-2026-04-01" \
104102 -H "content-type: application/json" \
105 -d @- <<EOF
106 {
107 "agent": {"type": "agent", "id": "$AGENT_ID", "version": 1},
108 "environment_id": "$ENVIRONMENT_ID"
109 }
110 EOF
103 -d '{
104 "agent": {"type": "agent", "id": "'"$AGENT_ID"'", "version": 1},
105 "environment_id": "'"$ENVIRONMENT_ID"'"
106 }'
111107 ```
112108
113109 ```bash CLI
from line 198
202198 -H "anthropic-version: 2023-06-01" \
203199 -H "anthropic-beta: managed-agents-2026-04-01" \
204200 -H "content-type: application/json" \
205 -d @- <<EOF
206 {
207 "agent": "$AGENT_ID",
208 "environment_id": "$ENVIRONMENT_ID",
209 "initial_events": [
210 {
211 "type": "user.message",
212 "content": [{"type": "text", "text": "List the files in the working directory."}]
213 }
214 ]
215 }
216 EOF
201 -d '{
202 "agent": "'"$AGENT_ID"'",
203 "environment_id": "'"$ENVIRONMENT_ID"'",
204 "initial_events": [
205 {
206 "type": "user.message",
207 "content": [{"type": "text", "text": "List the files in the working directory."}]
208 }
209 ]
210 }'
217211 )
218212 SEEDED_SESSION_ID=$(jq -r '.id' <<< "$seeded_session")
219213
from line 479
485479 -H "anthropic-version: 2023-06-01" \
486480 -H "anthropic-beta: managed-agents-2026-04-01" \
487481 -H "content-type: application/json" \
488 -d @- <<EOF
489 {
490 "agent": {
491 "type": "agent_with_overrides",
492 "id": "$AGENT_ID",
493 "model": {"id": "claude-sonnet-5-5"},
494 "system": null
495 },
496 "environment_id": "$ENVIRONMENT_ID"
497 }
498 EOF
482 -d '{
483 "agent": {
484 "type": "agent_with_overrides",
485 "id": "'"$AGENT_ID"'",
486 "model": {"id": "claude-sonnet-5-5"},
487 "system": null
488 },
489 "environment_id": "'"$ENVIRONMENT_ID"'"
490 }'
499491 ```
500492
501493 ```bash CLI
from line 645
653645 -H "anthropic-version: 2023-06-01" \
654646 -H "anthropic-beta: managed-agents-2026-04-01" \
655647 -H "content-type: application/json" \
656 -d @- <<EOF
657 {
658 "agent": {
659 "type": "agent_with_overrides",
660 "id": "$AGENT_ID",
661 "model": {"id": "claude-opus-5-5", "inference_geo": "us"}
662 },
663 "environment_id": "$ENVIRONMENT_ID"
664 }
665 EOF
648 -d '{
649 "agent": {
650 "type": "agent_with_overrides",
651 "id": "'"$AGENT_ID"'",
652 "model": {"id": "claude-opus-5-5", "inference_geo": "us"}
653 },
654 "environment_id": "'"$ENVIRONMENT_ID"'"
655 }'
666656 )
667657 echo "Inference geo: $(jq -r '.agent.model.inference_geo' <<< "$session")"
668658 ```
from line 801
811801 -H "anthropic-version: 2023-06-01" \
812802 -H "anthropic-beta: managed-agents-2026-04-01" \
813803 -H "content-type: application/json" \
814 -d @- <<EOF
815 {
816 "agent": "$AGENT_ID",
817 "environment_id": "$ENVIRONMENT_ID",
818 "budget": {
819 "type": "limit",
820 "max_list_cost": {"amount": "125", "currency": "USD"}
821 }
822 }
823 EOF
804 -d '{
805 "agent": "'"$AGENT_ID"'",
806 "environment_id": "'"$ENVIRONMENT_ID"'",
807 "budget": {
808 "type": "limit",
809 "max_list_cost": {"amount": "125", "currency": "USD"}
810 }
811 }'
824812 ```
825813
826814 ```bash CLI
from line 930
942930 -H "anthropic-version: 2023-06-01" \
943931 -H "anthropic-beta: managed-agents-2026-04-01" \
944932 -H "content-type: application/json" \
945 -d @- <<EOF
946 {
947 "agent": "$AGENT_ID",
948 "environment_id": "$ENVIRONMENT_ID",
949 "vault_ids": ["$VAULT_ID"]
950 }
951 EOF
933 -d '{
934 "agent": "'"$AGENT_ID"'",
935 "environment_id": "'"$ENVIRONMENT_ID"'",
936 "vault_ids": ["'"$VAULT_ID"'"]
937 }'
952938 ```
953939
954940 ```bash CLI
from line 1020
10341020 -H "anthropic-version: 2023-06-01" \
10351021 -H "anthropic-beta: managed-agents-2026-04-01" \
10361022 -H "content-type: application/json" \
1037 -d @- <<'EOF'
1038 {
1039 "events": [
1040 {
1041 "type": "user.message",
1042 "content": [{"type": "text", "text": "List the files in the working directory."}]
1043 }
1044 ]
1045 }
1046 EOF
1023 -d '{
1024 "events": [
1025 {
1026 "type": "user.message",
1027 "content": [{"type": "text", "text": "List the files in the working directory."}]
1028 }
1029 ]
1030 }'
10471031 ```
10481032
10491033 ```bash CLI
No line in this hunk matches that.