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

DCF Model Rubric changedmanaged-agents/define-outcomes

Nearest release: v2.1.239, published 2 hours before 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+7added
Lines−11removed
From line 238 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits19to this page, all time

The whole hunk

from line 238, old and new numbered
/
lines
from line 238
238238 ```
239239 
240240 ```php PHP
241 // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
242241 use Anthropic\Client;
243242 use Anthropic\Core\FileParam;
244243 
from line 255
256255 MD;
257256 file_put_contents('/tmp/rubric.md', $rubricText);
258257 
259 $rubric = $client->beta->files->upload(
258 $rubric = $client->files->upload(
260259 file: FileParam::fromResource(fopen('/tmp/rubric.md', 'r'), contentType: 'text/markdown'),
261260 );
262261 echo "Uploaded rubric: {$rubric->id}\n";
from line 335
336335 --transform id --raw-output)
337336 
338337 # Define the outcome — agent starts working on receipt
339 ant beta:sessions:events send \
340 --session-id "$SESSION_ID" <<YAML
338 ant beta:sessions:events send --session-id "$SESSION_ID" <<YAML
341339 events:
342340 - type: user.define_outcome
343341 description: Build a DCF model for Costco in .xlsx
from line 710
712710 
713711## Retrieve deliverables
714712 
715The agent writes output files to `/mnt/session/outputs/` inside the sandbox. Once the session is idle, fetch them through the [Files API](https://platform.claude.com/docs/en/build-with-claude/files) scoped to the session. Filtering by `scope_id` requires the `managed-agents-2026-04-01` beta header on the list request, so the SDK and CLI examples make that call through the `beta` namespace and pass the header explicitly.
713The agent writes output files to `/mnt/session/outputs/` inside the sandbox. To retrieve them, list files through the [Files API](https://platform.claude.com/docs/en/build-with-claude/files) with the session ID as the `scope_id`, then download them by ID. Filtering by `scope_id` requires the `managed-agents-2026-04-01` beta header on the list request, so the SDK and CLI examples make that call through the `beta` namespace and pass the header explicitly. Files appear in the list shortly after the agent finishes writing them, sometimes a few seconds after the session goes idle. If a file you expect is not listed yet, list again after a short delay; once it appears in the list, its upload has finished.
716714 
717715<CodeGroup>
718716 ```bash cURL
from line 736
738736 ```bash CLI
739737 # List files produced by this session
740738 # scope_id filtering requires the managed-agents beta on the files request
741 ant beta:files list --scope-id "$SESSION_ID" \
742 --beta managed-agents-2026-04-01
739 ant beta:files list --scope-id "$SESSION_ID" --beta managed-agents-2026-04-01
743740 
744741 # Download a file
745742 FILE_ID=$(ant beta:files list --scope-id "$SESSION_ID" \
from line 855
858855 ```
859856 
860857 ```php PHP
861 // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
862858 // List files produced by this session
863859 // scope_id filtering requires the managed-agents beta on the files request
864860 $files = $client->beta->files->list(scopeID: $session->id, betas: ['managed-agents-2026-04-01']);
865 foreach ($files->data as $file) {
861 foreach ($files->getItems() as $file) {
866862 echo "{$file->id} {$file->filename}\n";
867863 }
868864 
869865 // Download a file
870 if (count($files->data) > 0) {
871 $content = $client->beta->files->download($files->data[0]->id);
866 if (count($files->getItems()) > 0) {
867 $content = $client->files->download($files->getItems()[0]->id);
872868 file_put_contents('/tmp/output.txt', $content);
873869 }
874870 ```
Feedback