The whole hunk
from line 45, old and new numbered
/
lines
from line 45
4545 -H "content-type: application/json" \
4646 -d '{
4747 "name": "Coding Assistant",
48 "model": "claude-opus-5",
48 "model": "claude-opus-5-5",
4949 "system": "You are a helpful coding agent.",
5050 "tools": [{"type": "agent_toolset_20260401"}]
5151 }')
from line 63
6363 ```markdown
6464 ---
6565 name: Coding Assistant
66 model: claude-opus-5
66 model: claude-opus-5-5
6767 tools:
6868 - type: agent_toolset_20260401
6969 ---
from line 76
7676 ```python Python
7777 agent = client.beta.agents.create(
7878 name="Coding Assistant",
79 model="claude-opus-5",
79 model="claude-opus-5-5",
8080 system="You are a helpful coding agent.",
8181 tools=[
8282 {"type": "agent_toolset_20260401"},
from line 87
8787 ```typescript TypeScript
8888 const agent = await client.beta.agents.create({
8989 name: "Coding Assistant",
90 model: "claude-opus-5",
90 model: "claude-opus-5-5",
9191 system: "You are a helpful coding agent.",
9292 tools: [{ type: "agent_toolset_20260401" }],
9393 });
from line 97
9797 var agent = await client.Beta.Agents.Create(new()
9898 {
9999 Name = "Coding Assistant",
100 Model = BetaManagedAgentsModel.ClaudeOpus5,
100 Model = BetaManagedAgentsModel.ClaudeOpus5_5,
101101 System = "You are a helpful coding agent.",
102102 Tools =
103103 [
from line 113
113113 agent, err := client.Beta.Agents.New(ctx, anthropic.BetaAgentNewParams{
114114 Name: "Coding Assistant",
115115 Model: anthropic.BetaManagedAgentsModelConfigParams{
116 ID: anthropic.BetaManagedAgentsModelClaudeOpus5,
116 ID: anthropic.BetaManagedAgentsModelClaudeOpus5_5,
117117 },
118118 System: anthropic.String("You are a helpful coding agent."),
119119 Tools: []anthropic.BetaAgentNewParamsToolUnion{{
from line 131
131131 var agent = client.beta().agents().create(
132132 AgentCreateParams.builder()
133133 .name("Coding Assistant")
134 .model(BetaManagedAgentsModel.CLAUDE_OPUS_5)
134 .model(BetaManagedAgentsModel.CLAUDE_OPUS_5_5)
135135 .system("You are a helpful coding agent.")
136136 .addTool(
137137 BetaManagedAgentsAgentToolset20260401Params.builder()
from line 145
145145 ```php PHP
146146 $agent = $client->beta->agents->create(
147147 name: 'Coding Assistant',
148 model: 'claude-opus-5',
148 model: 'claude-opus-5-5',
149149 system: 'You are a helpful coding agent.',
150150 tools: [
151151 BetaManagedAgentsAgentToolset20260401Params::with(
from line 158
158158 ```ruby Ruby
159159 agent = client.beta.agents.create(
160160 name: "Coding Assistant",
161 model: "claude-opus-5",
161 model: "claude-opus-5-5",
162162 system_: "You are a helpful coding agent.",
163163 tools: [{type: "agent_toolset_20260401"}]
164164 )
from line 177
177177 "type": "agent",
178178 "name": "Coding Assistant",
179179 "model": {
180 "id": "claude-opus-5",
180 "id": "claude-opus-5-5",
181181 "effort": { "type": "high" },
182182 "speed": "standard"
183183 },
from line 205
205205The `default_config` on the toolset shows its default [permission policy](https://platform.claude.com/docs/en/managed-agents/permission-policies), `always_allow`, which applies unless you configure one.
206206
207207<Tip>
208 To use Claude Opus 5 or Claude Opus 4.8 with [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode), pass `model` as an object, for example: `{"id": "claude-opus-5", "speed": "fast"}`. See the fast mode page's [supported models](https://platform.claude.com/docs/en/build-with-claude/fast-mode#supported-models).
208 To use Claude Opus 5.5, Claude Opus 5, or Claude Opus 4.8 with [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode), pass `model` as an object, for example: `{"id": "claude-opus-5", "speed": "fast"}`. See the fast mode page's [supported models](https://platform.claude.com/docs/en/build-with-claude/fast-mode#supported-models).
209209</Tip>
210210
211211<Tip>
from line 227
227227 -H "content-type: application/json" \
228228 -d '{
229229 "name": "Geo-pinned assistant",
230 "model": {"id": "claude-opus-5", "inference_geo": "us"},
230 "model": {"id": "claude-opus-5-5", "inference_geo": "us"},
231231 "system": "You are a helpful assistant."
232232 }')
233233
from line 244
244244 ---
245245 name: Geo-pinned assistant
246246 model:
247 id: claude-opus-5
247 id: claude-opus-5-5
248248 inference_geo: us
249249 ---
250250
from line 257
257257 agent = client.beta.agents.create(
258258 name="Geo-pinned assistant",
259259 model={
260 "id": "claude-opus-5",
260 "id": "claude-opus-5-5",
261261 "inference_geo": "us",
262262 },
263263 system="You are a helpful assistant.",
from line 269
269269 ```typescript TypeScript
270270 const agent = await client.beta.agents.create({
271271 name: "Geo-pinned assistant",
272 model: { id: "claude-opus-5", inference_geo: "us" },
272 model: { id: "claude-opus-5-5", inference_geo: "us" },
273273 system: "You are a helpful assistant.",
274274 });
275275
from line 282
282282 Name = "Geo-pinned assistant",
283283 Model = new BetaManagedAgentsModelConfigParams
284284 {
285 ID = BetaManagedAgentsModel.ClaudeOpus5,
285 ID = BetaManagedAgentsModel.ClaudeOpus5_5,
286286 InferenceGeo = "us",
287287 },
288288 System = "You are a helpful assistant.",
from line 295
295295 agent, err := client.Beta.Agents.New(ctx, anthropic.BetaAgentNewParams{
296296 Name: "Geo-pinned assistant",
297297 Model: anthropic.BetaManagedAgentsModelConfigParams{
298 ID: anthropic.BetaManagedAgentsModelClaudeOpus5,
298 ID: anthropic.BetaManagedAgentsModelClaudeOpus5_5,
299299 InferenceGeo: anthropic.String("us"),
300300 },
301301 System: anthropic.String("You are a helpful assistant."),
from line 313
313313 .name("Geo-pinned assistant")
314314 .model(
315315 BetaManagedAgentsModelConfigParams.builder()
316 .id(BetaManagedAgentsModel.CLAUDE_OPUS_5)
316 .id(BetaManagedAgentsModel.CLAUDE_OPUS_5_5)
317317 .inferenceGeo("us")
318318 .build()
319319 )
from line 328
328328 $agent = $client->beta->agents->create(
329329 name: 'Geo-pinned assistant',
330330 model: BetaManagedAgentsModelConfigParams::with(
331 id: 'claude-opus-5',
331 id: 'claude-opus-5-5',
332332 inferenceGeo: 'us',
333333 ),
334334 system: 'You are a helpful assistant.',
from line 340
340340 ```ruby Ruby
341341 agent = client.beta.agents.create(
342342 name: "Geo-pinned assistant",
343 model: {id: "claude-opus-5", inference_geo: "us"},
343 model: {id: "claude-opus-5-5", inference_geo: "us"},
344344 system_: "You are a helpful assistant."
345345 )
346346
from line 385
385385 ```markdown
386386 ---
387387 name: Coding Assistant
388 model: claude-opus-5
388 model: claude-opus-5-5
389389 tools:
390390 - type: agent_toolset_20260401
391391 ---