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

task-budgets changedbuild-with-claude/task-budgets

Nearest release: v2.1.301, published 5 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+17added
Lines−2removed
From line 514 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 514, old and new numbered
/
lines
from line 514
514514 
515515Run a representative sample of tasks **without** `task_budget` set and record the total tokens Claude spends per task. For an agentic loop, sum `usage.output_tokens` across every request in the loop, plus the tokens of the tool results you append between requests:
516516 
517<CodeGroup exclude="shell:cURL">
517<CodeGroup>
518 ```bash cURL
519 curl https://api.anthropic.com/v1/messages \
520 -H "x-api-key: $ANTHROPIC_API_KEY" \
521 -H "anthropic-version: 2023-06-01" \
522 -H "content-type: application/json" \
523 -d '{
524 "model": "claude-opus-5-5",
525 "max_tokens": 4096,
526 "messages": [{
527 "role": "user",
528 "content": "Review the codebase and propose a refactor plan."
529 }]
530 }'
531 ```
532 
518533 ```bash CLI
519 ant messages create --transform 'usage.output_tokens' <<'YAML'
534 ant messages create <<'YAML'
520535 model: claude-opus-5-5
521536 max_tokens: 4096
522537 messages:
Feedback