
Long-running AI agents have a data-transfer problem: every turn can force a client to resend the full conversation, including files, tool results and images already shared. Anthropic’s new message threads feature changes that exchange pattern. It can cut the time Claude takes to start responding in large Claude Code sessions, though it doesn’t reduce the number of tokens the model processes or the associated token charges.
Anthropic says median time to first token fell by about 35% for Claude Code requests containing between 500,000 and 1 million tokens. Message threads are available in public beta through the Messages API, and Anthropic says the feature is already enabled by default for “most” Claude Code users. The company described the release in an article published Monday.
The change also matters to teams building their own agents. Any application that makes repeated calls while accumulating conversation history—whether it edits code, operates a computer or analyzes large collections of documents—could send less repeated data over the network.
Smaller requests, the same model context
Traditionally, each request to the Messages API has carried the full conversation so far. That includes prior messages and tool calls, even when Anthropic has already received them. A coding agent that has made hundreds of calls may therefore be uploading a large, increasingly repetitive history on every turn.
At 500,000 tokens of conversation history, for instance, each subsequent request would include those tokens again, plus whatever new instructions or results the agent has generated. The API must validate and tokenize the submitted data before Claude can respond. Repeating that work can add delay as a session grows.
With message threads, the initial request still supplies the full conversation, system prompt and tool definitions. The API then retains the thread temporarily. Later requests can send only new messages and a reference to the previous response. Anthropic rebuilds the conversation on its servers before passing it to Claude.
That distinction sets the feature’s value and its limit. The client uploads less, but Claude still receives the full conversation on each turn. Anthropic puts it plainly: “While each request is smaller with message threads, Claude still reads the full conversation on every turn, so token usage stays the same.” The feature can improve response startup time and reduce repeated transmission; on its own, it doesn’t lower model token costs.
Teams looking to reduce processing costs can pair threads with prompt caching support for message threads and Anthropic’s existing prompt caching feature. The approaches address different parts of the workload: threads reduce repeated uploads, while caching lets developers reuse previously processed content at discounted token rates.
Image-heavy agents could see the largest transfer savings
The potential savings become clearer when an agent repeatedly sends large files. Anthropic points to long-running coding agents that collect edits and tool results, computer-use agents that capture screenshots, and applications that handle many documents or images.
Guillaume Lebedel, co-founder and CTO of AI agent infrastructure company StackOne, used a simulation to estimate the effect for computer-use agents. His example assumes one 150 KB screenshot per step. Without threads, the 50th request would include about 7.5 MB of accumulated screenshots. With threads, that request would carry just the latest image: about 0.15 MB.
Across all 50 steps, Lebedel’s estimate puts cumulative screenshot uploads at roughly 191 MB without threads and 7.5 MB with them, a reduction of about 25 times. These figures are a simulation, not measurements from a live API test, but they show why agents that transmit a large image at every step may benefit more than agents exchanging mostly short text.
Lebedel expects computer-use agents to adopt the feature early. “My bet — computer-use agents adopt it before coding agents do, since a screenshot per step is what makes the resend heavy,” he wrote on LinkedIn, adding that he expects widespread uptake before the end of December. That remains a prediction, while the data-transfer example illustrates the underlying advantage.
Setting up a thread
At the API level, a new thread parameter starts and continues a conversation. The first request creates a thread with thread={"type": "create"} and supplies the complete conversation history, system prompt and tools.
To continue, a client sends thread={"type": "continue", "previous_message_id": first.id}, using the response ID returned by the initial request. Follow-up calls contain only new messages; the API holds the earlier messages, prompt and tool definitions in the thread.
Because the feature is in beta, direct API requests also need the anthropic-beta header set to message-threads-2026-08-12. Developers using the Python SDK can pass the same value with betas=["message-threads-2026-08-12"].
The SDK offers a thread helper for clients that don’t want to manage these details themselves. A developer creates a client with client = anthropic.Anthropic(), then initializes a thread with client.beta.messages.thread(). That method accepts settings such as the model, maximum output tokens and initial system prompt.
From there, thread.send() submits messages. The helper creates the thread on the first call, continues it on later turns, adds the beta header and keeps a local copy of the conversation history. That local history also matters when a thread expires.

Five-minute expiry shapes the workflow
Threads expire after five minutes without activity. One user on X observed, “Five minutes at the coffee machine and the thread expires.” Another user called the short expiry “almost useless,” apparently referring to message threads rather than the separate prompt caching feature.
“Five minutes at the coffee machine and the thread expires.”
A pause doesn’t necessarily mean an agent loses its context. If a developer returns after ten minutes, the old thread is gone, but the SDK helper can use its local conversation history to start a replacement thread. The first request after the break will need to send that history again, so it may take longer. Once the new thread is established, later requests can again carry only new messages.
For agents that make regular calls, the time limit may be less disruptive: each successful request refreshes the five-minute window. Developers managing threads directly need to detect expiry themselves. Continuing an expired thread returns a 404 error, after which the client must resend the conversation and create a new thread.
Anthropic says thread contents are encrypted and held in server memory rather than written to persistent storage. Although the thread expires after five minutes of inactivity, its contents may remain in memory for up to an hour after the last use. The feature isn’t eligible for zero data retention or HIPAA, and it doesn’t support some context-management functions, including on-demand compaction.
Message threads work with all Claude models in beta. They’re also available through Claude Platform on AWS, Claude in Microsoft Foundry and Anthropic-managed Claude Models on Google Cloud. For developers, the practical calculation is clear: threads can reduce repeated data transfer and speed up long sessions, while prompt caching addresses token costs. The five-minute timeout and data-handling requirements will shape where teams choose to deploy them.