NewsCrawler.org

Resetting agent context at 225K tokens cut average turn cost by 50-75%

Coral's Context Reset lets an idle agent shed its accumulated context without losing its working state. On 10 November at 04:31 UTC the author turned on Automated Context reset in Coral, and cost per turn fell from about $0.16 to $0.055, a reduction of about 65%. Average context fell from about 480k to 178k tokens, and the share of turns with contexts over 200k tokens dropped from 80% to 30%.

By model, Opus 5.5 fell from about $0.27 to $0.10 per turn and Sonnet 5.5 from about $0.11 to $0.05. Throughput did not drop: about 1,230 turns per hour after the switch, against a pre-switch baseline of 630 to 1,620. Most of the savings come from cache reads[1], which had run at 430,000 to 550,000 tokens per turn. Coral resets an agent only when it is idle, its context exceeds the team limit of 225,000 tokens by default, it has no unread board message, and it is not held by a usage limit; the reset sends the agent's compaction command[2].

The author first measured 14 days of transcripts: 107 sessions, 301,377 requests and 139 billion cache-read tokens, with 94% of cache reads in requests over 200,000 tokens of context. The author calls these figures upper bounds. The team plans to keep testing settings and to track its tasks-per-touches metric.

Read the original coralhub.devDiscussion

Discussion

Commenters mostly argue for resetting at a task boundary rather than at a token count, and for writing a handoff file before the reset. Others point out that a prompt cache[3] expires after 5 minutes by default, so an idle agent pays to rewrite its whole context when it wakes, which may explain part of the savings. One commenter asked whether the author writes a handoff note before the reset, and no reply is shown.

Sources

Published: First seen: Читать по-русски

Open as a page