Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

dreams changedmanaged-agents/dreams

Nearest release: v2.1.304, 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+6added
Lines−16removed
From line 204 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits13to this page, all time

The whole hunk

from line 204, old and new numbered
/
lines
from line 204
204204 
205205<CodeGroup>
206206 ```bash cURL
207 while true; do
208 dream=$(curl -s "https://api.anthropic.com/v1/dreams/$dream_id" \
209 -H "x-api-key: $ANTHROPIC_API_KEY" \
210 -H "anthropic-version: 2023-06-01" \
211 -H "anthropic-beta: managed-agents-2026-04-01,dreaming-2026-04-21")
212 status=$(jq -r '.status' <<< "$dream")
213 echo "status=$status input_tokens=$(jq -r '.usage.input_tokens' <<< "$dream")"
214 [[ "$status" == "pending" || "$status" == "running" ]] || break
215 sleep 10
216 done
207 curl -s "https://api.anthropic.com/v1/dreams/$dream_id" \
208 -H "x-api-key: $ANTHROPIC_API_KEY" \
209 -H "anthropic-version: 2023-06-01" \
210 -H "anthropic-beta: managed-agents-2026-04-01,dreaming-2026-04-21"
217211 ```
218212 
219213 ```bash CLI
from line 298
304298 
305299<CodeGroup>
306300 ```bash cURL
307 # After the dream ends, the memory_store output holds the rebuilt store
308 output_store_id=$(jq -r 'first(.outputs[] | select(.type == "memory_store")).memory_store_id' <<< "$dream")
309 
301 # $output_store_id is the memory_store_id of the completed dream's memory_store output
310302 curl -s https://api.anthropic.com/v1/sessions \
311303 -H "x-api-key: $ANTHROPIC_API_KEY" \
312304 -H "anthropic-version: 2023-06-01" \
from line 314
322314 ```
323315 
324316 ```bash CLI
325 output_store_id=$(ant beta:dreams retrieve --dream-id "$dream_id" --format json |
326 jq -r 'first(.outputs[] | select(.type == "memory_store")).memory_store_id')
327 
317 # $output_store_id is the memory_store_id of the completed dream's memory_store output
328318 ant beta:sessions create <<YAML
329319 agent: $agent_id
330320 environment_id: $environment_id
Feedback