Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 18 Stunden •via X (Twitter)

34 Kommentare

Profilbild von ClaudeDevs
ClaudeDevsvor 18 Stunden

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.

Profilbild von ClaudeDevs
ClaudeDevsvor 18 Stunden

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:

Profilbild von venzeti
venzetivor 18 Stunden

i wake up and new update

Profilbild von Vishal Singh
Vishal Singhvor 18 Stunden

TL;DR 👇

Profilbild von Iam_
Iam_vor 18 Stunden

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

Profilbild von Krystian Gadomski
Krystian Gadomskivor 18 Stunden

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

Profilbild von Jonathan Gibson
Jonathan Gibsonvor 18 Stunden

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?

Profilbild von ShadowAguy
ShadowAguyvor 18 Stunden

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

Profilbild von RHEA
RHEAvor 18 Stunden

Need weekly reset plsss

Profilbild von matthias
matthiasvor 18 Stunden

Where is the rust sdk?

Profilbild von Yashas
Yashasvor 18 Stunden

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

Profilbild von Intius
Intiusvor 18 Stunden

not a day without a claude release

Profilbild von Charts By Andy
Charts By Andyvor 18 Stunden

is it cheaper as well?

Profilbild von tamimbuilds
tamimbuildsvor 18 Stunden

That means less token consumption right?

Profilbild von CRusty
CRustyvor 18 Stunden

Is this similar to what codex does with websockets?

Profilbild von Layton Gott
Layton Gottvor 18 Stunden

Chill everyone, Fable 5.5 will come tomorrow.

Profilbild von dr. ai (unlicensed)
dr. ai (unlicensed)vor 18 Stunden

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

Profilbild von Nick Halverson
Nick Halversonvor 18 Stunden

@maudegregori something for our agents to look at

Profilbild von Harshil Jani
Harshil Janivor 18 Stunden

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

Profilbild von gisu
gisuvor 18 Stunden

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

Profilbild von Kamil
Kamilvor 18 Stunden

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.

Profilbild von Adrian Castellar
Adrian Castellarvor 18 Stunden

Five minutes at the coffee machine and the thread expires

Profilbild von Jeff Bruchado
Jeff Bruchadovor 18 Stunden

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

Profilbild von PK
PKvor 18 Stunden

the server remembers so my wallet can forget

Profilbild von Mohamed Magdy
Mohamed Magdyvor 18 Stunden

Nice update

Profilbild von Bekir
Bekirvor 18 Stunden

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.

Profilbild von Browser OS
Browser OSvor 18 Stunden

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

Profilbild von Fireply.ai
Fireply.aivor 18 Stunden

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

Profilbild von Binkg
Binkgvor 18 Stunden

Did fable 5.5 compose this music?

Profilbild von Rusty Shackleford
Rusty Shacklefordvor 18 Stunden

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

Profilbild von Dusan 🐧 AI agents · dad
Dusan 🐧 AI agents · dadvor 18 Stunden

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

Profilbild von Simo
Simovor 18 Stunden

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

Profilbild von Nick Shilov
Nick Shilovvor 18 Stunden

previous message id as the cursor

Profilbild von Mykhailo Chalyi
Mykhailo Chalyivor 18 Stunden

Why not just use OpenResponses format?

Ähnliche Videos