Loading video...

Video Failed to Load

Go Home

Message threads are now in public beta on the Messages API. The API caches your conversation on the server between turns, so instead of resending the full conversation, you send only new messages and the previous message ID, and Claude starts responding sooner.

667,181 views • 18 hours ago •via X (Twitter)

34 Comments

ClaudeDevs's profile picture
ClaudeDevs18 hours ago

We recently integrated message threads in Claude Code. On requests with 500K to 1M tokens, median time to first token is about 35% lower. In long conversations, the median request went from about 800 KB to 1.8 KB.

ClaudeDevs's profile picture
ClaudeDevs18 hours ago

To use it, add the thread parameter and beta header to your requests. It's available on the Claude Platform, Claude Platform on AWS, Claude in Microsoft Foundry, and Claude on Google Cloud at standard token rates. Full blog:

venzeti's profile picture
venzeti18 hours ago

i wake up and new update

Vishal Singh's profile picture
Vishal Singh18 hours ago

TL;DR 👇

Iam_'s profile picture
Iam_18 hours ago

here's a breakdown of this big improvement, put together by Opus 5.5!

Krystian Gadomski's profile picture
Krystian Gadomski18 hours ago

That is what I was looking for. But you produce new features so fast that I cannot make it on testing 😅😅

Jonathan Gibson's profile picture
Jonathan Gibson18 hours ago

No shots at all, love Claude. This week I noticed usage burned the entire thing. Is this from duet not allowing thinking effort to be selected or the follow up?

ShadowAguy's profile picture
ShadowAguy18 hours ago

everyone spent the last two years writing custom sqlite wrappers to juggle context arrays just for Anthropic to finally hold the state server side.

RHEA's profile picture
RHEA18 hours ago

Need weekly reset plsss

matthias's profile picture
matthias18 hours ago

Where is the rust sdk?

Yashas's profile picture
Yashas18 hours ago

Wow this is huge for my on device personal agent powered by Claude

Intius's profile picture
Intius18 hours ago

not a day without a claude release

Charts By Andy's profile picture
Charts By Andy18 hours ago

is it cheaper as well?

tamimbuilds's profile picture
tamimbuilds18 hours ago

That means less token consumption right?

CRusty's profile picture
CRusty18 hours ago

Is this similar to what codex does with websockets?

Layton Gott's profile picture
Layton Gott18 hours ago

Chill everyone, Fable 5.5 will come tomorrow.

dr. ai (unlicensed)'s profile picture
dr. ai (unlicensed)18 hours ago

does the cached thread bill at the 10% cache-read rate or full price

Nick Halverson's profile picture
Nick Halverson18 hours ago

@maudegregori something for our agents to look at

Harshil Jani's profile picture
Harshil Jani18 hours ago

On my way to improve performance of customer support agent 🏃‍♂️🏃‍♂️

gisu's profile picture
gisu18 hours ago

so is the cached history billed like a prompt cache read or as full input every turn? that's what decides if this is a speed feature or a cost feature

Kamil's profile picture
Kamil18 hours ago

Sending only new messages plus the previous message ID is a clean fix for long sessions. The 35% lower median time to first token on 500K to 1M token requests shows how much of the wait was resending context. Practical gain for anyone building agents.

Adrian Castellar's profile picture
Adrian Castellar18 hours ago

Five minutes at the coffee machine and the thread expires

Jeff Bruchado's profile picture
Jeff Bruchado18 hours ago

if the server holds the history, reproducing a bad turn means pulling what it actually had for that message ID, not what your app thinks it sent

PK's profile picture
PK18 hours ago

the server remembers so my wallet can forget

Mohamed Magdy's profile picture
Mohamed Magdy18 hours ago

Nice update

Bekir's profile picture
Bekir18 hours ago

sending only the new message instead of the whole history is a big deal for anything with long conversations. first-token time is the whole feel of a chat product. can’t wait to test this.

Browser OS's profile picture
Browser OS18 hours ago

the gotcha in the docs: a thread doesnt cache your prompt for you you still want a top-level cache_control on every request, otherwise each turn sends less but nothing gets cached

Fireply.ai's profile picture
Fireply.ai18 hours ago

not resending the whole conversation every turn is a nice quality of life thing for anyone building chat tools!

Binkg's profile picture
Binkg18 hours ago

Did fable 5.5 compose this music?

Rusty Shackleford's profile picture
Rusty Shackleford18 hours ago

hmm interesting ok I did wonder why we were sending the whole thing back every time, seemed like it was easy to screw up compared to some kind of session id token

Dusan 🐧 AI agents · dad's profile picture
Dusan 🐧 AI agents · dad18 hours ago

i can't trim old tool output from the history anymore

Simo's profile picture
Simo18 hours ago

Server side conversation caching can reduce repeated context transmission but developers also need clear guarantees around state isolation retention deletion and consistency across sessions

Nick Shilov's profile picture
Nick Shilov18 hours ago

previous message id as the cursor

Mykhailo Chalyi's profile picture
Mykhailo Chalyi18 hours ago

Why not just use OpenResponses format?

Related Videos