Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

multiagent-orchestration changedmanaged-agents/multiagent-orchestration

Nearest release: v2.1.336, published under an hour 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+111added
Lines−0removed
From line 362 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits46to this page, all time

The whole hunk

from line 362, old and new numbered
/
lines
from line 362
362362 }
363363 )
364364 ```
365 
366 ```hcl Terraform
367 resource "anthropic_beta_agent" "reviewer" {
368 name = "reviewer"
369 model = { id = "claude-haiku-5-5" }
370 system = "You are a code reviewer."
371 }
372 
373 resource "anthropic_beta_agent" "test_writer" {
374 name = "test-writer"
375 model = { id = "claude-haiku-5-5" }
376 system = "You write unit tests."
377 }
378 
379 resource "anthropic_beta_agent" "engineering_lead" {
380 name = "Engineering Lead"
381 model = { id = "claude-opus-5-5" }
382 tools = [
383 { agent_toolset_20260401 = {} },
384 ]
385 multiagent = {
386 multiagent_20261001 = {
387 subagents = {
388 enabled = {
389 predefined_agents = [
390 { agent = { id = anthropic_beta_agent.reviewer.id, version = anthropic_beta_agent.reviewer.version } },
391 { agent = { id = anthropic_beta_agent.test_writer.id, version = anthropic_beta_agent.test_writer.version } },
392 ]
393 }
394 }
395 }
396 }
397 system = "You coordinate engineering work. Delegate code review to the reviewer agent and test writing to the test agent."
398 }
399 ```
365400</CodeGroup>
366401 
367402The agent can also delegate to inline agents unless you turn them off. For that setting, and for the forms that an entry of the `predefined_agents` (java, php: `predefinedAgents`; csharp, go: `PredefinedAgents`) list of `subagents` (csharp, go: `Subagents`) takes, see [Predefined and inline agents](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#predefined-and-inline-agents).
from line 788
753788 }
754789 )
755790 ```
791 
792 ```hcl Terraform
793 resource "anthropic_beta_agent" "researcher" {
794 name = "researcher"
795 model = { id = "claude-haiku-5-5" }
796 mcp_servers = [
797 { url = { name = "github", url = "https://api.githubcopilot.com/mcp/" } },
798 ]
799 tools = [
800 {
801 mcp_toolset = {
802 mcp_server_name = "github"
803 }
804 },
805 ]
806 }
807 
808 resource "anthropic_beta_agent" "lead" {
809 name = "lead"
810 model = { id = "claude-opus-5-5" }
811 tools = [
812 { agent_toolset_20260401 = {} },
813 ]
814 multiagent = {
815 multiagent_20261001 = {
816 subagents = {
817 enabled = {
818 predefined_agents = [
819 { agent = { id = anthropic_beta_agent.researcher.id, version = anthropic_beta_agent.researcher.version } },
820 ]
821 }
822 }
823 }
824 }
825 }
826 ```
756827</CodeGroup>
757828 
758829Then create the session with the vault that holds the GitHub credential:
from line 1153
10821153 multiagent: {type: "multiagent_20261001", workflows: {type: "enabled"}}
10831154 )
10841155 ```
1156 
1157 ```hcl Terraform
1158 resource "anthropic_beta_agent" "contract_reviewer" {
1159 name = "Contract Reviewer"
1160 model = { id = "claude-opus-5-5" }
1161 system = "You review contracts. When you're asked to review more than a few contracts, start a workflow run that reads them in parallel and combines the findings. Review one or two contracts yourself, without a run."
1162 tools = [
1163 {
1164 agent_toolset_20260401 = {
1165 configs = [
1166 { web_search = { enabled = false } },
1167 { web_fetch = { enabled = false } },
1168 ]
1169 }
1170 },
1171 ]
1172 multiagent = {
1173 multiagent_20261001 = {
1174 workflows = { enabled = {} }
1175 }
1176 }
1177 }
1178 ```
10851179</CodeGroup>
10861180 
10871181To let a workflow use agents you’ve already created, list them in `workflows.predefined_agents`. The `subagents` and `advisor` settings go in the same `multiagent` block. To list subagents, see [Delegate to subagents](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#delegate-to-subagents). To set an advisor, see [Give the session an advisor](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#give-the-session-an-advisor). This agent lets a workflow use one agent you created, lists two subagents, and has an advisor:
from line 1397
13031397 }
13041398 )
13051399 puts agent.id
1400 ```
1401 
1402 ```hcl Terraform
1403 resource "anthropic_beta_agent" "backend_engineer" {
1404 name = "Backend engineer"
1405 model = { id = "claude-sonnet-5" }
1406 system = "You implement backend features end to end. Consult the advisor before major backend design decisions."
1407 multiagent = {
1408 multiagent_20261001 = {
1409 advisor = {
1410 enabled = {
1411 model = "claude-opus-5-5"
1412 }
1413 }
1414 }
1415 }
1416 }
13061417 ```
13071418</CodeGroup>
13081419 
Feedback