APIUp to 28% cheaper than official pricesTry the API →
Hermes
Back to News

Anthropic's Message Threads Cut Agent Request Size from 800 KB to 1.8 KB

Anthropic launched message threads in public beta on the Messages API. Server caches conversation between turns, so clients send only new messages plus the previous response ID. Median time to first token drops about 35% on 500K to 1M token requests inside Claude Code.

Anthropic's Message Threads Cut Agent Request Size from 800 KB to 1.8 KB
Source
ClaudeDevs
Published
Author
ClaudeDevs
Read
3 min read

Takeaways

  • Anthropic launched message threads in public beta on the Messages API.
  • Server caches conversation between turns, so clients send only new messages plus the previous response ID.
  • Median time to first token drops about 35% on 500K to 1M token requests inside Claude Code.
  • Median request payload in long Claude Code sessions shrank from roughly 800 KB to 1.8 KB.
  • Threads are encrypted in memory, never written to disk, and expire 5 minutes after the last request.
  • Available on Claude Platform, AWS, Microsoft Foundry, and Google Cloud at standard token rates.

Anthropic has released message threads in public beta for the Messages API. The feature keeps active conversation state on Anthropic’s servers between turns, allowing clients to send only new messages instead of uploading the full history with every request.

Smaller payloads reduce serialization and upload time before Claude begins generating a response. The improvement becomes measurable in coding agents, computer-use loops, and other applications that accumulate hundreds of thousands of tokens across many turns.

Why large agent requests bog down

Messages API clients typically send every earlier message and tool result on each turn. A long-running coding agent may issue hundreds of requests while adding file contents, diffs, command output, and model responses to its context. At large context sizes, each request can contain megabytes of JSON that must be serialized and uploaded over HTTPS.

A message thread changes that request flow. The first request supplies the full conversation and starts a thread. Later requests contain the new messages and the ID returned by the previous response. Anthropic retains the earlier state and reconstructs the complete context for Claude.

Claude Code shows the gain

Anthropic tested message threads in Claude Code and reported the following median results:

MetricResult
Time to first token for requests containing 500,000 to 1 million tokensAbout 35% lower
Request size in long Claude Code conversationsReduced from about 800 KB to 1.8 KB
Token usageUnchanged

Claude still processes the complete conversation on every turn, so input-token charges remain the same. The savings come from moving less data between the client and Anthropic before inference starts.

Send the history once

Enabling the feature requires a thread parameter and the designated beta header. Anthropic’s API documentation provides the current schema.

  1. Send the full conversation in the initial Messages API request.
  2. Store the response ID returned by Anthropic.
  3. Send only the new messages on the next turn and reference the preceding response ID.
  4. Repeat the sequence while the thread remains active.
  5. Resend the full conversation if the thread expires.

Design for a five-minute lifetime

Threads provide short-lived server-side state, so production clients still need to retain a canonical conversation history for recovery.

Operational detailBehavior
StorageThread state is encrypted, held in memory, and not written to disk.
ExpirationA thread expires five minutes after its most recent request.
RecoveryThe client starts a new thread by resending the complete conversation.
AvailabilityMessage threads is available on the native Claude Platform, Claude Platform on AWS, Claude in Microsoft Foundry, and Claude Models on Google Cloud.
PricingStandard token rates apply.

Large, active contexts benefit most

Workloads with frequent turns and heavy payloads receive the largest latency reduction:

  • Long-running coding agents: File reads, diffs, command output, and tool results steadily enlarge the conversation.
  • Computer-use agents: Screenshots remain associated with the thread instead of being uploaded again on every turn.
  • Document and image workflows: Large attachments can stay in the active thread while users submit smaller follow-up requests.

Short conversations containing a few thousand tokens may see little difference. Agent loops carrying 500,000 tokens across dozens of steps can avoid substantial repeated uploads.

The model still reads every token

Message threads optimize request transport and short-lived session management. They leave several other API behaviors unchanged:

  • Token billing remains based on the full context processed by Claude.
  • The model’s context-window limit does not increase.
  • Prompt-caching behavior remains unchanged.
  • Applications must continue managing conversation length.
  • Clients must preserve enough state to recover from thread expiration.

Teams running high-context Claude agents can adopt the feature with a small request change and an expiration fallback. Measuring time to first token and request size will show whether a workload carries enough context to benefit.

Reporting is indexed from AlphaSignal. Rights remain with the original publisher and cited sources.

Read original report

Sources

  1. 01claude.com
  2. 02platform.claude.com
  3. 03x.com