migration changedmanaged-agents/migration
Nearest release: v2.1.238, 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+49added
Lines−32removed
From line
300
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
The whole hunk
from line 300, old and new numbered
/
from line 300
300300 kill "${stream_pid}" 2>/dev/null || true
301301 ```
302302
303 ```bash CLI
304 { read -r _ agent_id; read -r _ agent_version; } < <(ant beta:agents create \
305 --name "Task Runner" \
306 --model claude-opus-5 \
307 --tool '{type: agent_toolset_20260401}' \
308 --transform '{id,version}' --format yaml)
303 <MultiFileExample language="cli" label="CLI">
304 ```bash CLI
305 { read -r _ agent_id; read -r _ agent_version; } < <(ant beta:agents create \
306 --transform '{id,version}' --format yaml < task-runner.agent.yaml)
309307
310 session_id=$(ant beta:sessions create \
311 --agent "{type: agent, id: $agent_id, version: $agent_version}" \
312 --environment-id "$environment_id" \
313 --transform id --raw-output)
308 session_id=$(ant beta:sessions create \
309 --agent "{type: agent, id: $agent_id, version: $agent_version}" \
310 --environment-id "$environment_id" \
311 --transform id --raw-output)
314312
315 # Open the stream first, then send the user message
316 exec {stream}< <(ant beta:sessions:events stream \
317 --session-id "$session_id" \
318 --transform type --raw-output)
313 # Open the stream first, then send the user message
314 exec {stream}< <(ant beta:sessions:events stream \
315 --session-id "$session_id" \
316 --transform type --raw-output)
319317
320 ant beta:sessions:events send \
321 --session-id "$session_id" \
322 --event "{type: user.message, content: [{type: text, text: \"$task\"}]}" \
323 > /dev/null
318 ant beta:sessions:events send \
319 --session-id "$session_id" \
320 --event "{type: user.message, content: [{type: text, text: \"$task\"}]}" \
321 > /dev/null
324322
325 # Wait for the session to go idle (grep exits at the first match)
326 grep -m1 -x 'session.status_idle' <&"$stream" > /dev/null
327 exec {stream}<&-
328 ```
323 # Wait for the session to go idle (grep exits at the first match)
324 grep -m1 -x 'session.status_idle' <&"$stream" > /dev/null
325 exec {stream}<&-
326 ```
329327
328 <File filename="task-runner.agent.yaml">
329 ```yaml
330 name: Task Runner
331 model: claude-opus-5
332 tools:
333 - type: agent_toolset_20260401
334 ```
335 </File>
336 </MultiFileExample>
337
330338 ```python Python
331339 agent = client.beta.agents.create(
332340 name="Task Runner",
from line 1332
13241332 --json "$(jq -n --argjson version "$AGENT_VERSION" '{version: $version, model: "claude-opus-5"}')"
13251333 ```
13261334
1327 ```bash CLI
1328 ant beta:agents update \
1329 --agent-id "$AGENT_ID" \
1330 --version "$AGENT_VERSION" \
1331 --model claude-opus-5
1332 ```
1335 <MultiFileExample language="cli" label="CLI">
1336 ```bash CLI
1337 ant beta:agents update --agent-id "$AGENT_ID" < agent.yaml
1338 ```
1339
1340 <File filename="agent.yaml">
1341 ```yaml
1342 name: Task Runner
1343 model: claude-opus-5
1344 system: You are a task automation agent. Complete the task you are given end to end.
1345 tools:
1346 - type: agent_toolset_20260401
1347 ```
1348 </File>
1349 </MultiFileExample>
13331350
13341351 ```python Python
13351352 client.beta.agents.update(
No line in this hunk matches that.