正在加载视频...

视频加载失败

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.

747,932 次观看 • 1 天前 •via X (Twitter)

34 条评论

ClaudeDevs 的头像
ClaudeDevs1 天前

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 的头像
ClaudeDevs1 天前

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 的头像
venzeti1 天前

i wake up and new update

Vishal Singh 的头像
Vishal Singh1 天前

TL;DR 👇

Iam_ 的头像
Iam_1 天前

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

Krystian Gadomski 的头像
Krystian Gadomski1 天前

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

Jonathan Gibson 的头像
Jonathan Gibson1 天前

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 的头像
ShadowAguy1 天前

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 的头像
RHEA1 天前

Need weekly reset plsss

matthias 的头像
matthias1 天前

Where is the rust sdk?

Yashas 的头像
Yashas1 天前

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

Intius 的头像
Intius1 天前

not a day without a claude release

Charts By Andy 的头像
Charts By Andy1 天前

is it cheaper as well?

tamimbuilds 的头像
tamimbuilds1 天前

That means less token consumption right?

CRusty 的头像
CRusty1 天前

Is this similar to what codex does with websockets?

Layton Gott 的头像
Layton Gott1 天前

Chill everyone, Fable 5.5 will come tomorrow.

dr. ai (unlicensed) 的头像
dr. ai (unlicensed)1 天前

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

Nick Halverson 的头像
Nick Halverson1 天前

@maudegregori something for our agents to look at

Harshil Jani 的头像
Harshil Jani1 天前

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

gisu 的头像
gisu1 天前

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 的头像
Kamil1 天前

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 的头像
Adrian Castellar1 天前

Five minutes at the coffee machine and the thread expires

Jeff Bruchado 的头像
Jeff Bruchado1 天前

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 的头像
PK1 天前

the server remembers so my wallet can forget

Mohamed Magdy 的头像
Mohamed Magdy1 天前

Nice update

Bekir 的头像
Bekir1 天前

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 的头像
Browser OS1 天前

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 的头像
Fireply.ai1 天前

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

Binkg 的头像
Binkg1 天前

Did fable 5.5 compose this music?

Rusty Shackleford 的头像
Rusty Shackleford1 天前

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 的头像
Dusan 🐧 AI agents · dad1 天前

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

Simo 的头像
Simo1 天前

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 的头像
Nick Shilov1 天前

previous message id as the cursor

Mykhailo Chalyi 的头像
Mykhailo Chalyi1 天前

Why not just use OpenResponses format?

相关视频