quickstart changedmanaged-agents/quickstart
Nearest release: v2.1.318, published 5 hours 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+79added
Lines−10removed
From line
175
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits50to this page, all time
The whole hunk
from line 175, old and new numbered
/
from line 175
175175 "model": "claude-opus-5-5",
176176 "system": "You are a helpful coding assistant. Write clean, well-documented code.",
177177 "tools": [
178 {"type": "agent_toolset_20260401"}
178 {
179 "type": "agent_toolset_20260401",
180 "configs": [
181 {"name": "web_search", "enabled": false},
182 {"name": "web_fetch", "enabled": false}
183 ]
184 }
179185 ]
180186 }'
181187 ```
from line 201
195201 model: claude-opus-5-5
196202 tools:
197203 - type: agent_toolset_20260401
204 configs:
205 - name: web_search
206 enabled: false
207 - name: web_fetch
208 enabled: false
198209 ---
199210
200211 You are a helpful coding assistant. Write clean, well-documented code.
from line 226
215226 model="claude-opus-5-5",
216227 system="You are a helpful coding assistant. Write clean, well-documented code.",
217228 tools=[
218 {"type": "agent_toolset_20260401"},
229 {
230 "type": "agent_toolset_20260401",
231 "configs": [
232 {"name": "web_search", "enabled": False},
233 {"name": "web_fetch", "enabled": False},
234 ],
235 },
219236 ],
220237 )
221238
from line 252
235252 name: "Coding Assistant",
236253 model: "claude-opus-5-5",
237254 system: "You are a helpful coding assistant. Write clean, well-documented code.",
238 tools: [{ type: "agent_toolset_20260401" }]
255 tools: [
256 {
257 type: "agent_toolset_20260401",
258 configs: [
259 { name: "web_search", enabled: false },
260 { name: "web_fetch", enabled: false }
261 ]
262 }
263 ]
239264 });
240265
241266 console.log(`Agent ID: ${agent.id}, version: ${agent.version}`);
from line 284
259284 Name = "Coding Assistant",
260285 Model = BetaManagedAgentsModel.ClaudeOpus5_5,
261286 System = "You are a helpful coding assistant. Write clean, well-documented code.",
262 Tools = [new BetaManagedAgentsAgentToolset20260401Params()],
287 Tools =
288 [
289 new BetaManagedAgentsAgentToolset20260401Params
290 {
291 Configs =
292 [
293 new BetaManagedAgentsWebSearchToolConfigParams { Enabled = false },
294 new BetaManagedAgentsWebFetchToolConfigParams { Enabled = false },
295 ],
296 },
297 ],
263298 });
264299
265300 Console.WriteLine($"Agent ID: {agent.ID}, version: {agent.Version}");
from line 325
290325 },
291326 System: anthropic.String("You are a helpful coding assistant. Write clean, well-documented code."),
292327 Tools: []anthropic.BetaAgentNewParamsToolUnion{{
293 OfAgentToolset20260401: &anthropic.BetaManagedAgentsAgentToolset20260401Params{},
328 OfAgentToolset20260401: &anthropic.BetaManagedAgentsAgentToolset20260401Params{
329 Configs: []anthropic.BetaManagedAgentsAgentToolConfigParamsUnion{
330 {OfWebSearch: &anthropic.BetaManagedAgentsWebSearchToolConfigParams{
331 Enabled: anthropic.Bool(false),
332 }},
333 {OfWebFetch: &anthropic.BetaManagedAgentsWebFetchToolConfigParams{
334 Enabled: anthropic.Bool(false),
335 }},
336 },
337 },
294338 }},
295339 })
296340 if err != nil {
from line 353
309353 import com.anthropic.models.beta.agents.AgentCreateParams;
310354 import com.anthropic.models.beta.agents.BetaManagedAgentsAgentToolset20260401Params;
311355 import com.anthropic.models.beta.agents.BetaManagedAgentsModel;
356 import com.anthropic.models.beta.agents.BetaManagedAgentsWebFetchToolConfigParams;
357 import com.anthropic.models.beta.agents.BetaManagedAgentsWebSearchToolConfigParams;
312358 import com.anthropic.models.beta.environments.BetaCloudConfigParams;
313359 import com.anthropic.models.beta.environments.BetaLimitedNetworkParams;
314360 import com.anthropic.models.beta.environments.EnvironmentCreateParams;
from line 370
324370 .name("Coding Assistant")
325371 .model(BetaManagedAgentsModel.CLAUDE_OPUS_5_5)
326372 .system("You are a helpful coding assistant. Write clean, well-documented code.")
327 .addTool(BetaManagedAgentsAgentToolset20260401Params.builder().build())
373 .addTool(BetaManagedAgentsAgentToolset20260401Params.builder()
374 .addConfig(BetaManagedAgentsWebSearchToolConfigParams.builder()
375 .enabled(false)
376 .build())
377 .addConfig(BetaManagedAgentsWebFetchToolConfigParams.builder()
378 .enabled(false)
379 .build())
380 .build())
328381 .build());
329382
330383 IO.println("Agent ID: " + agent.id() + ", version: " + agent.version());
from line 388
335388
336389 <CodeGroupItem>
337390 ```php PHP
391 use Anthropic\Beta\Agents\BetaManagedAgentsAgentToolset20260401Params;
338392 use Anthropic\Beta\Agents\BetaManagedAgentsModel;
393 use Anthropic\Beta\Agents\BetaManagedAgentsWebFetchToolConfigParams;
394 use Anthropic\Beta\Agents\BetaManagedAgentsWebSearchToolConfigParams;
339395 use Anthropic\Client;
340396
341397 $client = new Client();
from line 401
345401 model: BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
346402 system: 'You are a helpful coding assistant. Write clean, well-documented code.',
347403 tools: [
348 ['type' => 'agent_toolset_20260401'],
404 BetaManagedAgentsAgentToolset20260401Params::with(
405 configs: [
406 BetaManagedAgentsWebSearchToolConfigParams::with(enabled: false),
407 BetaManagedAgentsWebFetchToolConfigParams::with(enabled: false),
408 ],
409 ),
349410 ],
350411 );
351412
from line 426
365426 name: "Coding Assistant",
366427 model: Anthropic::Beta::BetaManagedAgentsModel::CLAUDE_OPUS_5_5,
367428 system_: "You are a helpful coding assistant. Write clean, well-documented code.",
368 tools: [{type: "agent_toolset_20260401"}]
429 tools: [
430 {
431 type: "agent_toolset_20260401",
432 configs: [
433 {name: "web_search", enabled: false},
434 {name: "web_fetch", enabled: false}
435 ]
436 }
437 ]
369438 )
370439
371440 puts "Agent ID: #{agent.id}, version: #{agent.version}"
from line 444
375444 </CodeGroupItem>
376445 </CodeGroup>
377446
378 The `agent_toolset_20260401` tool type enables the full set of pre-built agent tools (bash, file operations, web search, and more). See [Tools](https://platform.claude.com/docs/en/managed-agents/tools) for the complete list and per-tool configuration options.
447 The `agent_toolset_20260401` tool type enables the prebuilt agent tools (bash, file operations, web search, and more). This example disables web search and web fetch because the task in this guide, writing a short Python script, doesn’t use the web. Give an agent [only the tools it needs](https://platform.claude.com/docs/en/managed-agents/secure-deployment#give-the-agent-the-smallest-tool-set). See [Tools](https://platform.claude.com/docs/en/managed-agents/tools) for the complete list and per-tool configuration options.
379448 </Step>
380449
381450 <Step title="Create an environment">
382 An environment defines the sandbox where your agent runs. This one uses `limited` [networking](https://platform.claude.com/docs/en/managed-agents/environments#networking) with package managers allowed, so code running in the sandbox can reach public [package registries and code hosts](https://platform.claude.com/docs/en/managed-agents/environments#package-manager-hosts). Web search and web fetch run outside the sandbox, and this quickstart does not need them. With `limited` networking, the [`allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`) list](https://platform.claude.com/docs/en/managed-agents/environments#networking) applies to them too. They return no pages or search results in this environment, because it lists no hosts. For your own agent, list the hosts it needs in `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`).
451 An environment defines the sandbox where your agent runs. This one uses `limited` [networking](https://platform.claude.com/docs/en/managed-agents/environments#networking) with package managers allowed, so code running in the sandbox can reach public [package registries and code hosts](https://platform.claude.com/docs/en/managed-agents/environments#package-manager-hosts). With `limited` networking, the [`allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`) list](https://platform.claude.com/docs/en/managed-agents/environments#networking) also applies to web search and web fetch, even though they run outside the sandbox. With no hosts listed, as in this environment, they return no pages or search results. If your own agent uses these tools, add the hosts it needs to that list.
383452
384453 <CodeGroup defaultLanguage="CLI">
385454 <CodeGroupItem>
No line in this hunk matches that.