agent-setup changedmanaged-agents/agent-setup
Nearest release: v2.1.283, published 3 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+8added
Lines−10removed
From line
54
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits12to this page, all time
The whole hunk
from line 54, old and new numbered
/
from line 54
5454 AGENT_VERSION=$(jq -r '.version' <<< "$agent")
5555 ```
5656
57 <MultiFileExample language="cli" label="CLI">
57 <CodeGroupItem>
5858 ```bash CLI
5959 ant apply coding-assistant.md
6060 ```
from line 71
7171 You are a helpful coding agent.
7272 ```
7373 </File>
74 </MultiFileExample>
7574
75 [`ant apply`](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/apply) creates the agent from `coding-assistant.md`, prints its ID, and records it in `claude-lock.json`. Commit `claude-lock.json` so the next `ant apply` updates this agent instead of creating a second one.
76 </CodeGroupItem>
77
7678 ```python Python
7779 agent = client.beta.agents.create(
7880 name="Coding Assistant",
from line 165
163165 tools: [{type: "agent_toolset_20260401"}]
164166 )
165167 ```
166
167 <ForLanguage tab="CLI">
168 [`ant apply`](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/apply) creates the agent from `coding-assistant.md`, prints its ID, and records it in `claude-lock.json`. Commit `claude-lock.json` so the next `ant apply` updates this agent instead of creating a second one.
169 </ForLanguage>
170168</CodeGroup>
171169
172170The response echoes your configuration and adds `id`, `type`, `version`, `created_at`, `updated_at`, and `archived_at` fields, and fills in `model` fields you omit, such as `effort`, with their defaults. The `version` starts at 1 and increments each time an update changes the agent.
from line 232
234232 echo "Inference geo: $(jq -r '.model.inference_geo' <<< "$agent")"
235233 ```
236234
237 <MultiFileExample language="cli" label="CLI">
235 <CodeGroupItem>
238236 ```bash CLI
239237 ant apply geo-pinned-assistant.md
240238 ```
from line 249
251249 You are a helpful assistant.
252250 ```
253251 </File>
254 </MultiFileExample>
252 </CodeGroupItem>
255253
256254 ```python Python
257255 agent = client.beta.agents.create(
from line 374
376374 echo "New version: $(jq -r '.version' <<< "$updated_agent")"
377375 ```
378376
379 <MultiFileExample language="cli" label="CLI">
377 <CodeGroupItem>
380378 ```bash CLI
381379 ant apply coding-assistant.md
382380 ```
from line 391
393391 You are a helpful coding agent. Always write tests.
394392 ```
395393 </File>
396 </MultiFileExample>
394 </CodeGroupItem>
397395
398396 ```python Python
399397 updated_agent = client.beta.agents.update(
No line in this hunk matches that.