multiagent-orchestration changedmanaged-agents/multiagent-orchestration
Nearest release: v2.1.304, published under an hour after 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+82added
Lines−86removed
From line
111
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits27to this page, all time
The whole hunk
from line 111, old and new numbered
/
from line 111
111111
112112<CodeGroup defaultLanguage="CLI">
113113 ```bash cURL
114 lead_agent=$(curl -fsS https://api.anthropic.com/v1/agents \
114 curl -fsS https://api.anthropic.com/v1/agents \
115115 -H "x-api-key: $ANTHROPIC_API_KEY" \
116116 -H "anthropic-version: 2023-06-01" \
117117 -H "anthropic-beta: managed-agents-2026-04-01" \
from line 136
136136 }
137137 }
138138 }'
139 )
140139 ```
141140
142141 <CodeGroupItem>
143142 ```bash CLI
144 # Create the subagents, then read their IDs from the lockfile.
145 ant apply reviewer.md test-writer.md
146 REVIEWER_AGENT_ID=$(jq -er '.resources["./reviewer.md"].id' claude-lock.json)
147 TEST_WRITER_AGENT_ID=$(jq -er '.resources["./test-writer.md"].id' claude-lock.json)
148
149 # Write the agent's definition, listing each subagent by ID.
150 cat > engineering-lead.md <<EOF
151 ---
152 name: Engineering Lead
153 model: claude-opus-5-5
154 tools:
155 - type: agent_toolset_20260401
156 multiagent:
157 type: multiagent_20261001
158 subagents:
159 type: enabled
160 predefined_agents:
161 - type: agent
162 id: $REVIEWER_AGENT_ID
163 - type: agent
164 id: $TEST_WRITER_AGENT_ID
165 ---
166
167 You coordinate engineering work. Delegate code review to the reviewer agent
168 and test writing to the test agent.
169 EOF
170
171 # Create the agent.
172143 ant apply engineering-lead.md reviewer.md test-writer.md
173144 ```
174145
146 <File filename="engineering-lead.md">
147 ```markdown
148 ---
149 name: Engineering Lead
150 model: claude-opus-5-5
151 tools:
152 - type: agent_toolset_20260401
153 multiagent:
154 type: multiagent_20261001
155 subagents:
156 type: enabled
157 predefined_agents: # ant apply replaces each path with {type: agent, id, version}
158 - ./reviewer.md
159 - ./test-writer.md
160 ---
161
162 You coordinate engineering work. Delegate code review to the reviewer agent
163 and test writing to the test agent.
164 ```
165 </File>
166
175167 <File filename="reviewer.md">
176168 ```markdown
177169 ---
from line 368
376368
377369<CodeGroup>
378370 ```bash cURL
379 session=$(curl -fsSL https://api.anthropic.com/v1/sessions \
371 curl -fsSL https://api.anthropic.com/v1/sessions \
380372 -H "x-api-key: $ANTHROPIC_API_KEY" \
381373 -H "anthropic-version: 2023-06-01" \
382374 -H "anthropic-beta: managed-agents-2026-04-01" \
from line 377
385377 "agent": "'"$LEAD_AGENT_ID"'",
386378 "environment_id": "'"$ENVIRONMENT_ID"'"
387379 }'
388 )
389 SESSION_ID=$(jq -r '.id' <<< "$session")
390380 ```
391381
392382 ```bash CLI
from line 456
466456
467457<CodeGroup defaultLanguage="CLI">
468458 ```bash cURL
469 research_agent_id=$(curl --fail-with-body -sS "$BASE/v1/agents" "${H[@]}" --data '{
470 "name": "researcher",
471 "model": "claude-haiku-5-5",
472 "mcp_servers": [{"type": "url", "name": "github", "url": "https://api.githubcopilot.com/mcp/"}],
473 "tools": [{"type": "mcp_toolset", "mcp_server_name": "github"}]
474 }' | jq -er '.id'
475 )
459 # Create the researcher
460 curl --fail-with-body -sS https://api.anthropic.com/v1/agents \
461 -H "x-api-key: $ANTHROPIC_API_KEY" \
462 -H "anthropic-version: 2023-06-01" \
463 -H "anthropic-beta: managed-agents-2026-04-01" \
464 -H "content-type: application/json" \
465 -d '{
466 "name": "researcher",
467 "model": "claude-haiku-5-5",
468 "mcp_servers": [{"type": "url", "name": "github", "url": "https://api.githubcopilot.com/mcp/"}],
469 "tools": [{"type": "mcp_toolset", "mcp_server_name": "github"}]
470 }'
476471
477 lead_agent_id=$(curl --fail-with-body -sS "$BASE/v1/agents" "${H[@]}" --data '{
478 "name": "lead",
479 "model": "claude-opus-5-5",
480 "tools": [{"type": "agent_toolset_20260401"}],
481 "multiagent": {
482 "type": "multiagent_20261001",
483 "subagents": {
484 "type": "enabled",
485 "predefined_agents": [{"type": "agent", "id": "'"$research_agent_id"'"}]
472 # Create the agent that delegates to it: research_agent_id is the id from the first response
473 curl --fail-with-body -sS https://api.anthropic.com/v1/agents \
474 -H "x-api-key: $ANTHROPIC_API_KEY" \
475 -H "anthropic-version: 2023-06-01" \
476 -H "anthropic-beta: managed-agents-2026-04-01" \
477 -H "content-type: application/json" \
478 -d '{
479 "name": "lead",
480 "model": "claude-opus-5-5",
481 "tools": [{"type": "agent_toolset_20260401"}],
482 "multiagent": {
483 "type": "multiagent_20261001",
484 "subagents": {
485 "type": "enabled",
486 "predefined_agents": [{"type": "agent", "id": "'"$research_agent_id"'"}]
487 }
486488 }
487 }
488 }' | jq -er '.id'
489 )
489 }'
490490 ```
491491
492492 <CodeGroupItem>
493493 ```bash CLI
494 # Create the researcher, then read its ID from the lockfile.
495 ant apply researcher.md
496 research_agent_id=$(jq -er '.resources["./researcher.md"].id' claude-lock.json)
497
498 # Write the agent's definition, listing the researcher by ID.
499 cat > lead.md <<EOF
500 ---
501 name: lead
502 model: claude-opus-5-5
503 tools:
504 - type: agent_toolset_20260401
505 multiagent:
506 type: multiagent_20261001
507 subagents:
508 type: enabled
509 predefined_agents:
510 - type: agent
511 id: $research_agent_id
512 ---
513 EOF
514
515 # Create the agent.
516494 ant apply lead.md researcher.md
517495 ```
518496
497 <File filename="lead.md">
498 ```markdown
499 ---
500 name: lead
501 model: claude-opus-5-5
502 tools:
503 - type: agent_toolset_20260401
504 multiagent:
505 type: multiagent_20261001
506 subagents:
507 type: enabled
508 predefined_agents: # ant apply replaces each path with {type: agent, id, version}
509 - ./researcher.md
510 ---
511 ```
512 </File>
513
519514 <File filename="researcher.md">
520515 ```markdown
521516 ---
from line 777
782777
783778<CodeGroup>
784779 ```bash cURL
785 session_id=$(curl --fail-with-body -sS "$BASE/v1/sessions" "${H[@]}" --data '{
786 "agent": "'"$lead_agent_id"'",
787 "environment_id": "'"$environment_id"'",
788 "vault_ids": ["'"$vault_id"'"]
789 }' | jq -er '.id'
790 )
791 echo "$session_id"
780 curl --fail-with-body -sS https://api.anthropic.com/v1/sessions \
781 -H "x-api-key: $ANTHROPIC_API_KEY" \
782 -H "anthropic-version: 2023-06-01" \
783 -H "anthropic-beta: managed-agents-2026-04-01" \
784 -H "content-type: application/json" \
785 -d '{
786 "agent": "'"$lead_agent_id"'",
787 "environment_id": "'"$environment_id"'",
788 "vault_ids": ["'"$vault_id"'"]
789 }'
792790 ```
793791
794792 ```bash CLI
795 session_id=$(ant beta:sessions create \
793 ant beta:sessions create \
796794 --agent "$lead_agent_id" \
797795 --environment-id "$environment_id" \
798 --vault-id "$vault_id" \
799 --transform id --raw-output)
800 echo "$session_id"
796 --vault-id "$vault_id"
801797 ```
802798
803799 ```python Python
No line in this hunk matches that.